summaryrefslogtreecommitdiff
path: root/mail/mush/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-08 17:04:58 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-08 17:04:58 +0000
commit41fca1ef551f0c1923adbf6b16dcd12b3965f987 (patch)
treeea8ae1b7af5b02a306c398af8bb2b0b601c1a524 /mail/mush/Makefile
parent8ac66da67c23278a3b68bc2007779fb22e4d1237 (diff)
downloadpkgsrc-41fca1ef551f0c1923adbf6b16dcd12b3965f987.tar.gz
Honour PKGMANDIR. Use SUBST framework. Add DragonFly support. Fix errno.
Diffstat (limited to 'mail/mush/Makefile')
-rw-r--r--mail/mush/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/mail/mush/Makefile b/mail/mush/Makefile
index 2948a5e8330..183d36b2c7e 100644
--- a/mail/mush/Makefile
+++ b/mail/mush/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2005/05/29 05:16:27 minskim Exp $
+# $NetBSD: Makefile,v 1.16 2006/01/08 17:04:58 joerg Exp $
DISTNAME= mush-7.2.5
PKGNAME= mush-7.2.6.b4.pl1
@@ -27,8 +27,22 @@ WRKSRC= ${WRKDIR}
DIST_SUBDIR= mush
BUILD_TARGET= mush
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "DragonFly"
+PLAT_MAKEFILE= makefile.netbsd
+.else
+PLAT_MAKEFILE= makefile.${LOWER_OPSYS}
+.endif
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= config.h-dist ${PLAT_MAKEFILE}
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@MANDIR@,${PREFIX}/${PKGMANDIR},g'
+SUBST_STAGE.paths= post-patch
+
pre-configure:
- ${SED} -e 's:__PREFIX:'${PREFIX}':g'< ${WRKSRC}/config.h-dist > ${WRKSRC}/config.h
- ${SED} -e 's:__PREFIX:'${PREFIX}':g'< ${WRKSRC}/makefile.${LOWER_OPSYS} > ${WRKSRC}/Makefile
+ ${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h
+ ${CP} ${WRKSRC}/${PLAT_MAKEFILE} ${WRKSRC}/Makefile
.include "../../mk/bsd.pkg.mk"