diff options
author | pooka <pooka> | 2006-10-29 21:12:46 +0000 |
---|---|---|
committer | pooka <pooka> | 2006-10-29 21:12:46 +0000 |
commit | 35dd09abf548ddb1e76e78ca9e12cf4380ac3f94 (patch) | |
tree | ef8f5374e40d2760493312487f7188ca8705ffbe | |
parent | 53d2691c5dba757946558573f6a9d5641755f37b (diff) | |
download | pkgsrc-35dd09abf548ddb1e76e78ca9e12cf4380ac3f94.tar.gz |
wrap most of this file around !NO_BUILD so that inclusion from
games/nethack doesn't confuse pkgsrc into trying to do configuration
even when NO_CONFIGURE is specified there. fixes build of
games/nethack (well, "build", actually)
-rw-r--r-- | games/nethack-lib/Makefile.common | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/nethack-lib/Makefile.common b/games/nethack-lib/Makefile.common index f128af521e4..a6b3d54200f 100644 --- a/games/nethack-lib/Makefile.common +++ b/games/nethack-lib/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.21 2006/10/10 14:51:44 ben Exp $ +# $NetBSD: Makefile.common,v 1.22 2006/10/29 21:12:46 pooka Exp $ # NETHACK_BASEVER= 3.4.3 @@ -14,6 +14,8 @@ EXTRACT_SUFX= .tgz MAINTAINER= pooka@NetBSD.org HOMEPAGE= http://www.nethack.org/ +.if !defined(NO_BUILD) # following stuff not needed for nethack meta pkg + WRKSRC= ${WRKDIR}/nethack-${NETHACK_BASEVER} HAS_CONFIGURE= yes CONFIGURE_SCRIPT= ./sys/unix/setup.sh @@ -44,12 +46,9 @@ SUBST_SED.os= -e 's,__NETHACK_OS__,${NETHACK_OS},' NETHACK_GROUP= games PKG_GROUPS= ${NETHACK_GROUP} -.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' \ @@ -57,4 +56,5 @@ post-patch: | ${AWK} '{ print $$1 }'`'|g' \ < ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h @${RM} -f ${WRKSRC}/config.h-pre -.endif + +.endif # !NO_BUILD |