summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2007-06-20 02:22:33 +0000
committerjlam <jlam>2007-06-20 02:22:33 +0000
commit7899c0a02579d9fe492bfbf7a3cc880b5443bd0d (patch)
tree4af8139e79ed34714d57e1dfbc4c6a2382d60550
parent927a8f229f88e5db11ccfdb80a9f951db8f97734 (diff)
downloadpkgsrc-7899c0a02579d9fe492bfbf7a3cc880b5443bd0d.tar.gz
Use the subst framework instead of a manual sed loop.
-rw-r--r--mail/cucipop/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/mail/cucipop/Makefile b/mail/cucipop/Makefile
index 9c9543ea574..7327a195259 100644
--- a/mail/cucipop/Makefile
+++ b/mail/cucipop/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2007/06/19 21:07:42 jlam Exp $
+# $NetBSD: Makefile,v 1.30 2007/06/20 02:22:33 jlam Exp $
#
DISTNAME= cucipop-1.31
@@ -52,13 +52,13 @@ MAKE_ENV+= CFLAGS_INET6=-DINET6
LDFLAGS.SunOS+= -lnsl -lsocket
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= post-configure
+SUBST_MESSAGE.prefix= Fixing prefix definitions.
+SUBST_FILES.prefix= cucipop.8 makevpopdb.8
+SUBST_SED.prefix= -e "s|@prefix@|${PREFIX}|g"
+
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
-pre-configure:
- @(cd ${WRKSRC}; \
- for f in config.h cucipop.8 makevpopdb.8; do \
- ${SED} -e 's|@prefix@|${PREFIX}|g' $$f > $$f.fixed && \
- ${MV} $$f.fixed $$f; \
- done)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cucipop ${PREFIX}/sbin