summaryrefslogtreecommitdiff
path: root/games/nethack-lib
diff options
context:
space:
mode:
authorpooka <pooka@pkgsrc.org>2006-10-29 21:12:46 +0000
committerpooka <pooka@pkgsrc.org>2006-10-29 21:12:46 +0000
commit3c3f0ca64a46dcada5aee0e209a745a553916a41 (patch)
treeef8f5374e40d2760493312487f7188ca8705ffbe /games/nethack-lib
parent485f96c0e9a37f9d07648724c2f15976fec8bfc1 (diff)
downloadpkgsrc-3c3f0ca64a46dcada5aee0e209a745a553916a41.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)
Diffstat (limited to 'games/nethack-lib')
-rw-r--r--games/nethack-lib/Makefile.common10
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