pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/nethack-lib wrap most of this file around !NO_BU...
details: https://anonhg.NetBSD.org/pkgsrc/rev/47b0bcb93343
branches: trunk
changeset: 520798:47b0bcb93343
user: pooka <pooka%pkgsrc.org@localhost>
date: Sun Oct 29 21:12:46 2006 +0000
description:
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:
games/nethack-lib/Makefile.common | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r f61940738731 -r 47b0bcb93343 games/nethack-lib/Makefile.common
--- a/games/nethack-lib/Makefile.common Sun Oct 29 20:34:54 2006 +0000
+++ b/games/nethack-lib/Makefile.common Sun Oct 29 21:12:46 2006 +0000
@@ -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 @@
MAINTAINER= pooka%NetBSD.org@localhost
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 @@
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 @@
| ${AWK} '{ print $$1 }'`'|g' \
< ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h
@${RM} -f ${WRKSRC}/config.h-pre
-.endif
+
+.endif # !NO_BUILD
Home |
Main Index |
Thread Index |
Old Index