pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/cucipop Use the subst framework instead of a manu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54e65c7226af
branches:  trunk
changeset: 530255:54e65c7226af
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Jun 20 02:22:33 2007 +0000

description:
Use the subst framework instead of a manual sed loop.

diffstat:

 mail/cucipop/Makefile |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r 028ed5c518a9 -r 54e65c7226af mail/cucipop/Makefile
--- a/mail/cucipop/Makefile     Tue Jun 19 23:51:18 2007 +0000
+++ b/mail/cucipop/Makefile     Wed Jun 20 02:22:33 2007 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index