summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2006-08-28 23:03:14 +0000
committerben <ben@pkgsrc.org>2006-08-28 23:03:14 +0000
commitac1739e3ea88d86f8f05c523593563d710888e2b (patch)
tree2b6dcbf8b1b26ab80a048cc3416cf9fdc1df86cf /games
parente00efda66c1292488abf11499b1ec0c8885b2bc4 (diff)
downloadpkgsrc-ac1739e3ea88d86f8f05c523593563d710888e2b.tar.gz
Fix build on i386 Mac OS X 10.4.7.
Use ncurses since OS X lacks termlib. Create group games since OS X lacks it.
Diffstat (limited to 'games')
-rw-r--r--games/nethack-lib/Makefile10
-rw-r--r--games/nethack-lib/Makefile.common13
2 files changed, 17 insertions, 6 deletions
diff --git a/games/nethack-lib/Makefile b/games/nethack-lib/Makefile
index a66c41d2ff9..ed4fcfbcbb1 100644
--- a/games/nethack-lib/Makefile
+++ b/games/nethack-lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2006/04/10 12:56:04 pooka Exp $
+# $NetBSD: Makefile,v 1.24 2006/08/28 23:03:14 ben Exp $
#
.include "../../games/nethack-lib/Makefile.common"
@@ -20,14 +20,14 @@ INSTALL_TARGET= manpages install-dat
# here for now until we lose backward compatibility because of changes
# to the fileformat.
CONF_FILES_PERMS+= /dev/null ${PREFIX}/share/${NETHACK_DIR}/record \
- ${ROOT_USER} games 664
+ ${ROOT_USER} ${NETHACK_GROUP} 664
CONF_FILES_PERMS+= /dev/null ${PREFIX}/share/${NETHACK_DIR}/logfile \
- ${ROOT_USER} games 664
+ ${ROOT_USER} ${NETHACK_GROUP} 664
REQD_DIRS_PERMS+= ${PREFIX}/share/${NETHACK_DIR} \
- ${ROOT_USER} games 775
+ ${ROOT_USER} ${NETHACK_GROUP} 775
REQD_DIRS_PERMS+= ${PREFIX}/share/${NETHACK_DIR}/save \
- ${ROOT_USER} games 770
+ ${ROOT_USER} ${NETHACK_GROUP} 770
CHECK_FILES_SKIP+= ${PREFIX}/share/${NETHACK_DIR}/logfile \
${PREFIX}/share/${NETHACK_DIR}/record
diff --git a/games/nethack-lib/Makefile.common b/games/nethack-lib/Makefile.common
index aef614ec7bc..523f5710d8d 100644
--- a/games/nethack-lib/Makefile.common
+++ b/games/nethack-lib/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.18 2005/05/15 22:02:27 jlam Exp $
+# $NetBSD: Makefile.common,v 1.19 2006/08/28 23:03:14 ben Exp $
#
NETHACK_BASEVER= 3.4.3
@@ -21,6 +21,17 @@ USE_TOOLS+= gzip
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Darwin"
+SUBST_CLASSES+= ttylib
+SUBST_MESSAGE.ttylib= Configuring to use ncurses
+SUBST_STAGE.ttylib= post-patch
+SUBST_FILES.ttylib= sys/unix/Makefile.src
+SUBST_SED.ttylib= -e 's,^WINTTYLIB = -ltermlib,WINTTYLIB = -lncurses,'
+.endif
+
+NETHACK_GROUP= games
+PKG_GROUPS= ${NETHACK_GROUP}
+
.if !defined(NO_CONFIGURE)
pre-configure:
@${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh