summaryrefslogtreecommitdiff
path: root/games/corewars/Makefile
diff options
context:
space:
mode:
authorJim Mock <jim@FreeBSD.org>2000-03-01 03:03:34 +0000
committerJim Mock <jim@FreeBSD.org>2000-03-01 03:03:34 +0000
commitce24a3059774f71b12205f9438c1a57b83254176 (patch)
treeb94e8a53e272988aa186009fa6fe63dacf5eb141 /games/corewars/Makefile
parentspaces -> tabs (was killing package build) (diff)
Import of corewars.
Core Wars is a simulation game in which a number of programs are loaded into a virtual machine and executed. The programs can try to crash each other, manipulate each other, overwrite as much memory as they can, etc.. The "best" program is selected according to a scoring mechanism which involves the number of memory cells the program has overwritten, the number of other programs it has crashed, and whether/when it crashed.
Notes
Notes: svn path=/head/; revision=26460
Diffstat (limited to 'games/corewars/Makefile')
-rw-r--r--games/corewars/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/games/corewars/Makefile b/games/corewars/Makefile
new file mode 100644
index 000000000000..26ad96bf0584
--- /dev/null
+++ b/games/corewars/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: corewars
+# Version required: 0.9.0
+# Date created: 29 February 2000
+# Whom: Jim Mock <jim@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+DISTNAME= corewars-0.9.0
+CATEGORIES= games
+MASTER_SITES= http://download.sourceforge.net/corewars/
+
+MAINTAINER= jim@FreeBSD.org
+
+LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
+
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}" \
+ GLIB_CONFIG="${GLIB_CONFIG}"
+
+post-install:
+ @strip ${PREFIX}/bin/corewars
+.if !defined(NOPORTDOCS)
+ @${ECHO} "===> Installing README in ${PREFIX}/share/doc/corewars."
+ @${ECHO} "===> Please read it before playing."
+ @${MKDIR} ${PREFIX}/share/doc/corewars && ${CHMOD} a+rx ${PREFIX}/share/doc/corewars
+ @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/corewars
+.endif
+
+.include <bsd.port.mk>