summaryrefslogtreecommitdiff
path: root/games/greed
diff options
context:
space:
mode:
authorroy <roy@pkgsrc.org>2013-10-10 17:16:54 +0000
committerroy <roy@pkgsrc.org>2013-10-10 17:16:54 +0000
commit66b545c0da4479d17fc9565cea0109426c1acec4 (patch)
tree1dadb9893876e6a57cb14769dea70406b5f05a51 /games/greed
parentb5438c1fcc4c85307e24d87638910da0800b855f (diff)
downloadpkgsrc-66b545c0da4479d17fc9565cea0109426c1acec4.tar.gz
Depend on system curses and termcap rather than forcing ncurses.
Diffstat (limited to 'games/greed')
-rw-r--r--games/greed/Makefile10
-rw-r--r--games/greed/patches/patch-aa8
2 files changed, 12 insertions, 6 deletions
diff --git a/games/greed/Makefile b/games/greed/Makefile
index ab72b869abb..396e3bd3a9f 100644
--- a/games/greed/Makefile
+++ b/games/greed/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2012/10/06 11:54:42 asau Exp $
+# $NetBSD: Makefile,v 1.6 2013/10/10 17:16:54 roy Exp $
#
DISTNAME= greed-3.4
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.catb.org/~esr/greed/
@@ -13,5 +13,9 @@ COMMENT= Strategy game: eat as much as possible
BUILD_TARGET= greed
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
-.include "../../devel/ncurses/buildlink3.mk"
+TERMLIB= ${BUILDLINK_LDADD.termcap} ${BUILDLINK_LDADD.curses}
+MAKE_ENV+= TERMLIB=${TERMLIB:Q}
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/games/greed/patches/patch-aa b/games/greed/patches/patch-aa
index 15922b2b253..ed22456927b 100644
--- a/games/greed/patches/patch-aa
+++ b/games/greed/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.4 2012/06/18 04:55:38 dholland Exp $
+$NetBSD: patch-aa,v 1.5 2013/10/10 17:16:54 roy Exp $
- configure paths for pkgsrc
- honor pkgsrc LDFLAGS
@@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.4 2012/06/18 04:55:38 dholland Exp $
--- Makefile.orig 2002-07-30 22:04:21.000000000 +0000
+++ Makefile
-@@ -13,12 +13,13 @@ SYSDEF=NOTBSD
+@@ -13,13 +13,14 @@ SYSDEF=NOTBSD
# Prepend "c:" (or whatever drive you use) to the following paths for MSDOS
# Location of high score file
@@ -19,11 +19,13 @@ $NetBSD: patch-aa,v 1.4 2012/06/18 04:55:38 dholland Exp $
# Flags for use with the Linux ncurses package (recommended)
-CFLAGS = -O -s -DNOTBSD
+-TERMLIB = -lncurses
+#CFLAGS = -O -s -DNOTBSD
+CFLAGS+= -DNOTBSD
- TERMLIB = -lncurses
++TERMLIB ?= -lncurses
CC = gcc
+ # Flags for use with stock curses
@@ -32,14 +33,14 @@ CC = gcc
#TERMLIB = scurses.lib