summaryrefslogtreecommitdiff
path: root/games/corewars
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-12-22 01:48:55 +0000
committerjoerg <joerg@pkgsrc.org>2007-12-22 01:48:55 +0000
commit5ef33b071fc0a3b099944a3bdc234a5239dc3245 (patch)
tree52680a6852bf1decaa177b303067ca3f1abeb746 /games/corewars
parent20f982d8ca6cbf841d39aa63749bcc6226ea46ce (diff)
downloadpkgsrc-5ef33b071fc0a3b099944a3bdc234a5239dc3245.tar.gz
Depend on argp and build corewars-cmd. -largp is a hack for now,
upstream should fix the configure script and learn how to build a convient library as well. Raised as part of PR 37581.
Diffstat (limited to 'games/corewars')
-rw-r--r--games/corewars/Makefile11
-rw-r--r--games/corewars/PLIST3
2 files changed, 12 insertions, 2 deletions
diff --git a/games/corewars/Makefile b/games/corewars/Makefile
index 5f318ad3b93..7010a28ca3a 100644
--- a/games/corewars/Makefile
+++ b/games/corewars/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/10/04 21:43:00 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2007/12/22 01:48:55 joerg Exp $
DISTNAME= corewars-0.9.13
PKGREVISION= 1
@@ -9,8 +9,17 @@ MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://sal.math.ualberta.ca/
COMMENT= Programs on a virtual machine, fighting each other
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Linux"
+MAKE_FLAGS+= corewars_cmd_LDFLAGS=-largp
+.endif
+
+.include "../../devel/argp/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/games/corewars/PLIST b/games/corewars/PLIST
index bb1f5616fd9..07df75c7d4c 100644
--- a/games/corewars/PLIST
+++ b/games/corewars/PLIST
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2005/01/14 09:16:04 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2007/12/22 01:48:56 joerg Exp $
bin/corewars
+bin/corewars-cmd
man/man6/corewars.6
man/man6/corewars-cmd.6
share/corewars/abez.cw