aboutsummaryrefslogtreecommitdiffstats
path: root/games/corewars
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-10-09 01:34:23 +0800
committerpav <pav@FreeBSD.org>2005-10-09 01:34:23 +0800
commitcfbc300f439d0fc7e41a28cd64638f57ab944c53 (patch)
tree6e975beb69d595b790f8bf2eaf64c3b53953f6a2 /games/corewars
parente6a8fb2d78fd58f53cfb47dc906ff4300ac1f606 (diff)
downloadfreebsd-ports-gnome-cfbc300f439d0fc7e41a28cd64638f57ab944c53.tar.gz
freebsd-ports-gnome-cfbc300f439d0fc7e41a28cd64638f57ab944c53.tar.zst
freebsd-ports-gnome-cfbc300f439d0fc7e41a28cd64638f57ab944c53.zip
- Enable console version
- Take maintainership PR: ports/87091 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
Diffstat (limited to 'games/corewars')
-rw-r--r--games/corewars/Makefile12
-rw-r--r--games/corewars/files/patch-src_Makefile.in11
-rw-r--r--games/corewars/pkg-plist1
3 files changed, 21 insertions, 3 deletions
diff --git a/games/corewars/Makefile b/games/corewars/Makefile
index 8e5e7fc43496..e540390ce284 100644
--- a/games/corewars/Makefile
+++ b/games/corewars/Makefile
@@ -7,18 +7,24 @@
PORTNAME= corewars
PORTVERSION= 0.9.13
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= alejandro@varnet.biz
COMMENT= A simulation game where the goal is to crash each other's programs
-USE_X_PREFIX= yes
+BUILD_DEPENDS= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
+
USE_GNOME= gnometarget gtk12
+
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
-MAN6= corewars.6 corewars-cmd.6
+MAN6= corewars.6
+MLINKS= corewars.6 corewars-cmd.6
post-install:
.if !defined(NOPORTDOCS)
diff --git a/games/corewars/files/patch-src_Makefile.in b/games/corewars/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..6a3774b1d013
--- /dev/null
+++ b/games/corewars/files/patch-src_Makefile.in
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig Wed Oct 23 09:52:33 2002
++++ src/Makefile.in Fri Oct 7 17:09:27 2005
+@@ -538,7 +538,7 @@
+ corewars-cmd: $(corewars_cmd_OBJECTS) $(corewars_cmd_DEPENDENCIES)
+ @rm -f corewars-cmd
+ $(LINK) $(corewars_cmd_LDFLAGS) $(corewars_cmd_OBJECTS) \
+- $(corewars_cmd_LDADD) -L/usr/lib -rdynamic -lm
++ $(corewars_cmd_LDADD) -largp -L/usr/lib -rdynamic -lm
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/games/corewars/pkg-plist b/games/corewars/pkg-plist
index fe7baea31b3a..b983ce5588bf 100644
--- a/games/corewars/pkg-plist
+++ b/games/corewars/pkg-plist
@@ -1,4 +1,5 @@
bin/corewars
+bin/corewars-cmd
%%DATADIR%%/abez.cw
%%DATADIR%%/agent.cw
%%DATADIR%%/backspawner.cw