diff options
Diffstat (limited to 'games/nethack-lib/Makefile')
-rw-r--r-- | games/nethack-lib/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/games/nethack-lib/Makefile b/games/nethack-lib/Makefile index 9c94c1aedb8..fe05b1c47f8 100644 --- a/games/nethack-lib/Makefile +++ b/games/nethack-lib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2000/04/14 14:06:52 pooka Exp $ +# $NetBSD: Makefile,v 1.7 2000/07/17 14:31:12 agc Exp $ # DISTNAME= nethack-3.3.0 @@ -16,16 +16,23 @@ INSTALL_TARGET= manpages install-dat DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +MAKE_FLAGS+= CC=gcc +.endif + pre-configure: @${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh post-patch: - @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/foo - @${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' <${WRKSRC}/foo> ${WRKSRC}/include/config.h - @${RM} -f ${WRKSRC}/foo + @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/config.h-pre + @${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' \ + -e 's|@GZIP_PROGRAM@|'`${ECHO} ${GZIP_CMD} | ${AWK} '{ print $$1 }'`'|g' \ + ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h + @${RM} -f ${WRKSRC}/config.h-pre post-build: - @cd ${PKGDIR} ; \ - ${SED} -e 's#@PREFIX@#${PREFIX}#' < DEINSTALL > ${DEINSTALL_FILE} + ${SED} -e 's|@PREFIX@|${PREFIX}|' ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} .include "../../mk/bsd.pkg.mk" |