summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-06-20 02:22:33 +0000
committerjlam <jlam@pkgsrc.org>2007-06-20 02:22:33 +0000
commit69958ad5fb53d4cd0f224919378d531c867dc78c (patch)
tree4af8139e79ed34714d57e1dfbc4c6a2382d60550
parent0b04c80905272ac4bee43856b5625d813eefdcf5 (diff)
downloadpkgsrc-69958ad5fb53d4cd0f224919378d531c867dc78c.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