summaryrefslogtreecommitdiff
path: root/games/nethack-lib
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-04-24 22:14:36 +0000
committerjmc <jmc@pkgsrc.org>2003-04-24 22:14:36 +0000
commit1b7292f8cc0d8640c99543990f0f17ab7fb10e49 (patch)
tree6db90ffbaaf99cc7f5e152a26ee0e2068b6461f9 /games/nethack-lib
parent2b6c920ce143ba191b36f9ef7f29f0ecc49f88b1 (diff)
downloadpkgsrc-1b7292f8cc0d8640c99543990f0f17ab7fb10e49.tar.gz
Rework to not do configure/patch rules if NO_CONFIGURE or NO_BUILD is set
Diffstat (limited to 'games/nethack-lib')
-rw-r--r--games/nethack-lib/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/games/nethack-lib/Makefile.common b/games/nethack-lib/Makefile.common
index 8834fc24e99..cb26f3d4981 100644
--- a/games/nethack-lib/Makefile.common
+++ b/games/nethack-lib/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.10 2003/03/29 12:41:06 jmmv Exp $
+# $NetBSD: Makefile.common,v 1.11 2003/04/24 22:14:36 jmc Exp $
#
NETHACK_BASEVER= 3.4.1
@@ -20,9 +20,12 @@ CONFIGURE_SCRIPT= ./sys/unix/setup.sh
.include "../../mk/bsd.prefs.mk"
+.if !defined(NO_CONFIGURE)
pre-configure:
@${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh
+.endif
+.if !defined(NO_BUILD)
post-patch:
@${MV} ${WRKSRC}/include/config.h ${WRKSRC}/config.h-pre
@${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' \
@@ -30,3 +33,4 @@ post-patch:
| ${AWK} '{ print $$1 }'`'|g' \
< ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h
@${RM} -f ${WRKSRC}/config.h-pre
+.endif