diff --git a/print/perlftlib/Makefile b/print/perlftlib/Makefile index acb1467a296e..0bf9587556b8 100644 --- a/print/perlftlib/Makefile +++ b/print/perlftlib/Makefile @@ -13,12 +13,10 @@ MASTER_SITES= http://www.io.com/~kazushi/xtt/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= sada -MAINTAINER= ports@FreeBSD.org +MAINTAINER= freebsd@galle.com.br COMMENT= Libraries to use the FreeType library from the perl language -RUN_DEPENDS= ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/jcode.pl:${PORTSDIR}/japanese/jcode.pl - -BROKEN= Installs perllocal.pod +RUN_DEPENDS= ${SITE_PERL}/jcode.pl:${PORTSDIR}/japanese/jcode.pl USE_FREETYPE= yes USE_PERL5= yes @@ -30,17 +28,11 @@ MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAKE_ENV= PERL_VER=${PERL_VER} PERL5=${PERL5} pre-patch: - ${MV} ${WRKSRC}/FreeType/Makefile.PL ${WRKSRC}/FreeType/Makefile.PL.bak - ${SED} 's,/usr/local/X11R6.3,${PREFIX},' \ - ${WRKSRC}/FreeType/Makefile.PL.bak \ - > ${WRKSRC}/FreeType/Makefile.PL + @${PERL} -pi -e 's!/usr/local/X11R6.3!${PREFIX}!' ${WRKSRC}/FreeType/Makefile.PL post-build: - cd ${WRKSRC}; \ - for DIST in ftinfo mkttfdir; do \ - ${MV} $${DIST} $${DIST}.bak; \ - ${SED} -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' \ - $${DIST}.bak > $${DIST}; \ - done +.for DIST in ftinfo mkttfdir + @${PERL} -pi -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' ${WRKSRC}/${DIST} +.endfor .include diff --git a/print/perlftlib/files/patch-ab b/print/perlftlib/files/patch-FreeType_FreeType.xs similarity index 100% rename from print/perlftlib/files/patch-ab rename to print/perlftlib/files/patch-FreeType_FreeType.xs diff --git a/print/perlftlib/files/patch-ac b/print/perlftlib/files/patch-FreeType_Makefile.PL similarity index 100% rename from print/perlftlib/files/patch-ac rename to print/perlftlib/files/patch-FreeType_Makefile.PL diff --git a/print/perlftlib/files/patch-aa b/print/perlftlib/files/patch-Makefile similarity index 79% rename from print/perlftlib/files/patch-aa rename to print/perlftlib/files/patch-Makefile index 239c351c40db..37ff19d2b249 100644 --- a/print/perlftlib/files/patch-aa +++ b/print/perlftlib/files/patch-Makefile @@ -1,5 +1,5 @@ ---- ./Makefile.orig Mon Dec 14 14:13:26 1998 -+++ ./Makefile Tue Dec 22 16:14:46 1998 +--- Makefile.orig Mon Dec 14 02:13:26 1998 ++++ Makefile Wed Apr 20 16:31:11 2005 @@ -1,8 +1,8 @@ -BINDIR = /usr/local/bin @@ -24,11 +24,13 @@ rm -f $(MANDIR)/ftinfo.1 ln -s $(BINDIR)/ftinfo $(MANDIR)/ftinfo.1 rm -f $(MANDIR)/mkttfdir.1 -@@ -43,7 +45,7 @@ +@@ -42,8 +44,8 @@ + cp $? $@ installlib: $(FREETYPELIB) - cd FreeType; $(MAKE) $(MFLAGS) install +- cd FreeType; $(MAKE) $(MFLAGS) install - cp FreeTypeWrapper.pm $(PERLLIBDIR) ++ cd FreeType; $(MAKE) $(MFLAGS) pure_install + cp FreeTypeWrapper.pm $(PERLLIBDIR)/${PERL_VER} $(FREETYPELIB): FreeType/Makefile diff --git a/print/perlftlib/pkg-plist b/print/perlftlib/pkg-plist index 05d9a4e36ff4..014da54bc4d2 100644 --- a/print/perlftlib/pkg-plist +++ b/print/perlftlib/pkg-plist @@ -6,6 +6,4 @@ bin/ftinfo %%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeType/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeType/autosplit.ix %%SITE_PERL%%/%%PERL_ARCH%%/FreeType.pm -@comment I do not know how to treat the next files -@comment lib/perl5/%%PERL_VERSION%%/i386-freebsd/perllocal.pod @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeType