pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/psutils bl3ify
details: https://anonhg.NetBSD.org/pkgsrc/rev/fc3ac9420905
branches: trunk
changeset: 468865:fc3ac9420905
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Feb 17 12:52:35 2004 +0000
description:
bl3ify
diffstat:
print/psutils/Makefile | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r 345a914f9104 -r fc3ac9420905 print/psutils/Makefile
--- a/print/psutils/Makefile Tue Feb 17 12:51:03 2004 +0000
+++ b/print/psutils/Makefile Tue Feb 17 12:52:35 2004 +0000
@@ -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 @@
DEPENDS+= papersize-[0-9]*:../../print/papersize
WRKSRC= ${WRKDIR}/psutils
+USE_BUILDLINK3= yes
USE_PERL5= yes
USE_PKGINSTALL= yes
@@ -22,13 +23,19 @@
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 @@
;; \
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; \
Home |
Main Index |
Thread Index |
Old Index