diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-17 12:52:35 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-17 12:52:35 +0000 |
commit | de1a6a8e6e2a9f086dc0c619f1ffa909220be4b1 (patch) | |
tree | dd586da0a29d91a92365140399f25915710f2118 /print/psutils | |
parent | 5ed0260ea6117bd76464c2fe19ff7ff80b5a98fd (diff) | |
download | pkgsrc-de1a6a8e6e2a9f086dc0c619f1ffa909220be4b1.tar.gz |
bl3ify
Diffstat (limited to 'print/psutils')
-rw-r--r-- | print/psutils/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/print/psutils/Makefile b/print/psutils/Makefile index 089d5b019f1..3a1d9af7663 100644 --- a/print/psutils/Makefile +++ b/print/psutils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2004/01/20 12:24:29 agc Exp $ +# $NetBSD: Makefile,v 1.28 2004/02/17 12:52:35 jlam Exp $ # FreeBSD Id: Makefile,v 1.15 1998/01/08 18:52:13 fenner Exp # @@ -15,6 +15,7 @@ COMMENT= Utilities for manipulating PostScript documents DEPENDS+= papersize-[0-9]*:../../print/papersize WRKSRC= ${WRKDIR}/psutils +USE_BUILDLINK3= yes USE_PERL5= yes USE_PKGINSTALL= yes @@ -22,13 +23,19 @@ USE_PKGINSTALL= yes PAPERSIZE?= A4 -MAKE_ENV+= CC="${CC}" PERL5="${PERL5}" +MAKE_ENV+= PERL5="${PERL5}" MAKE_FLAGS+= PAPER=`${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]'` MAKEFILE= Makefile.unix EGDIR= ${PREFIX}/share/examples/psutils CONF_FILES= ${EGDIR}/psutils.cfg ${PKG_SYSCONFDIR}/psutils.cfg +post-patch: + cd ${WRKSRC}; for file in psutil.c; do \ + ${MV} -f $$file $$file.in; \ + ${SED} -e "s|@prefix@|${PREFIX}|g" $$file.in > $$file; \ + done + pre-configure: @case "X${PAPERSIZE}" in \ XA4|XLetter) \ @@ -46,10 +53,6 @@ pre-configure: ;; \ esac -post-patch: - ${MV} ${WRKSRC}/psutil.c ${WRKSRC}/psutil.c.in - ${SED} -e 's|@prefix@|${PREFIX}|g' ${WRKSRC}/psutil.c.in > ${WRKSRC}/psutil.c - post-install: for f in epsffit psbook psnup psresize psselect pstops; do \ strip ${PREFIX}/bin/$$f; \ |