summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-12-26 04:23:35 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-12-26 04:23:35 +0000
commitebc1071c88e5eecb86c5762aba725c6d17f77304 (patch)
tree76f0e158f292fd7d76c093ddb74696f2b6faa0ad /games
parentLights modification for Quake II. (diff)
Matrix modification for Quake II.
Notes
Notes: svn path=/head/; revision=180769
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/quake2-matrix/Makefile44
-rw-r--r--games/quake2-matrix/distinfo3
-rw-r--r--games/quake2-matrix/files/patch-MatrixFixSource__Makefile74
-rw-r--r--games/quake2-matrix/pkg-descr1
-rw-r--r--games/quake2-matrix/pkg-plist16
6 files changed, 139 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 6175a56976d4..714af59e393b 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -598,6 +598,7 @@
SUBDIR += quake2-data
SUBDIR += quake2-extras
SUBDIR += quake2-lights
+ SUBDIR += quake2-matrix
SUBDIR += quake2-relay
SUBDIR += quake2-rogue
SUBDIR += quake2-source
diff --git a/games/quake2-matrix/Makefile b/games/quake2-matrix/Makefile
new file mode 100644
index 000000000000..8bb78bdaa146
--- /dev/null
+++ b/games/quake2-matrix/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: quake2-matrix
+# Date created: 2006-12-24
+# Whom: alepulver
+#
+# $FreeBSD$
+#
+
+PORTNAME= matrix
+PORTVERSION= 1
+CATEGORIES= games
+MASTER_SITES= http://qudos.quakedev.com/linux/quake2/mods/
+PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
+DISTNAME= Matrix-v${PORTVERSION}.fixed.Linux
+
+MAINTAINER= alepulver@FreeBSD.org
+COMMENT= Matrix modification for Quake II
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+BUILD_WRKSRC= ${WRKSRC}/MatrixFixSource
+ALL_TARGET= release
+
+DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK}
+
+.include "${.CURDIR}/../quake2-data/Makefile.include"
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's/__linux__/__unix__/' \
+ ${BUILD_WRKSRC}/q_shared.[ch]
+
+do-install:
+ ${MKDIR} ${Q2DIR}/${PORTNAME}
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/matrix/game.so \
+ ${Q2DIR}/${PORTNAME}
+ cd ${WRKSRC} && ${INSTALL_DATA} *.cfg *.ini *.pak ${Q2DIR}/${PORTNAME}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/games/quake2-matrix/distinfo b/games/quake2-matrix/distinfo
new file mode 100644
index 000000000000..301b30db1a55
--- /dev/null
+++ b/games/quake2-matrix/distinfo
@@ -0,0 +1,3 @@
+MD5 (Matrix-v1.fixed.Linux.tar.bz2) = 3738b5cc33ed7e2a2dbe530ba761f47b
+SHA256 (Matrix-v1.fixed.Linux.tar.bz2) = be11c0379acb8319d419633f43c143eee055bf5c3cdfc89258c5cbfaf3c8ead5
+SIZE (Matrix-v1.fixed.Linux.tar.bz2) = 8777341
diff --git a/games/quake2-matrix/files/patch-MatrixFixSource__Makefile b/games/quake2-matrix/files/patch-MatrixFixSource__Makefile
new file mode 100644
index 000000000000..f48ecaab03ae
--- /dev/null
+++ b/games/quake2-matrix/files/patch-MatrixFixSource__Makefile
@@ -0,0 +1,74 @@
+--- ./MatrixFixSource/Makefile.orig Fri Feb 3 05:47:07 2006
++++ ./MatrixFixSource/Makefile Sun Dec 24 13:57:26 2006
+@@ -16,22 +16,12 @@
+ # this nice line comes from the linux kernel makefile
+ ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/alpha/axp/)
+
+-ifneq ($(ARCH),i386)
+-ifneq ($(ARCH),axp)
+-ifneq ($(ARCH),ppc)
+-ifneq ($(ARCH),sparc)
+-$(error arch $(ARCH) is currently not supported)
+-endif
+-endif
+-endif
+-endif
+-
+-BUILD_DEBUG_DIR=debug$(ARCH)
+-BUILD_RELEASE_DIR=release$(ARCH)
++BUILD_DEBUG_DIR=debug
++BUILD_RELEASE_DIR=release
+
+
+-CC=gcc
+-BASE_CFLAGS=-Dstricmp=strcasecmp
++CC?=gcc
++BASE_CFLAGS=-Dstricmp=strcasecmp
+
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+@@ -55,7 +45,7 @@
+ DO_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
+ DO_SHLIB_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
+
+-TARGETS=$(BUILDDIR)/matrix/game$(ARCH).$(SHLIBEXT)
++TARGETS=$(BUILDDIR)/matrix/game.$(SHLIBEXT)
+
+ all:
+ @echo
+@@ -66,11 +56,11 @@
+ @echo
+ debug:
+ @-mkdir -p $(BUILD_DEBUG_DIR)/matrix
+- $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
++ $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS+="$(DEBUG_CFLAGS)"
+
+ release:
+ @-mkdir -p $(BUILD_RELEASE_DIR)/matrix
+- $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)"
++ $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(RELEASE_CFLAGS)"
+
+ targets: $(TARGETS)
+
+@@ -153,7 +143,7 @@
+ $(BUILDDIR)/q_shared.o
+
+
+-$(BUILDDIR)/matrix/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS)
++$(BUILDDIR)/matrix/game.$(SHLIBEXT) : $(GAME_OBJS)
+ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) $(LDFLAGS)
+
+ $(BUILDDIR)/g_ai.o : g_ai.c
+@@ -374,10 +364,10 @@
+ clean: clean-debug clean-release
+
+ clean-debug:
+- $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
++ $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS+="$(DEBUG_CFLAGS)"
+
+ clean-release:
+- $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)"
++ $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(DEBUG_CFLAGS)"
+
+ clean2:
+ -rm -f $(GAME_OBJS)
diff --git a/games/quake2-matrix/pkg-descr b/games/quake2-matrix/pkg-descr
new file mode 100644
index 000000000000..1976083d5981
--- /dev/null
+++ b/games/quake2-matrix/pkg-descr
@@ -0,0 +1 @@
+Matrix modification for Quake II.
diff --git a/games/quake2-matrix/pkg-plist b/games/quake2-matrix/pkg-plist
new file mode 100644
index 000000000000..fe59aa9bcdca
--- /dev/null
+++ b/games/quake2-matrix/pkg-plist
@@ -0,0 +1,16 @@
+%%PORTDOCS%%%%DOCSDIR%%/Main.jpg
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/macguide.txt
+%%PORTDOCS%%%%DOCSDIR%%/manual.html
+%%PORTDOCS%%%%DOCSDIR%%/sights.jpg
+%%PORTDOCS%%%%DOCSDIR%%/top.jpg
+%%Q2DIR%%/matrix/game.so
+%%Q2DIR%%/matrix/matrix.cfg
+%%Q2DIR%%/matrix/motd.ini
+%%Q2DIR%%/matrix/pak0.pak
+%%Q2DIR%%/matrix/pak1.pak
+%%Q2DIR%%/matrix/pak2.pak
+%%Q2DIR%%/matrix/pak3.pak
+%%Q2DIR%%/matrix/server.cfg
+@dirrm %%Q2DIR%%/matrix
+%%PORTDOCS%%@dirrm %%DOCSDIR%%