From 7059508a69500327cb249bf5f313c96b3d4fdd72 Mon Sep 17 00:00:00 2001 From: bentley Date: Fri, 26 Aug 2016 08:55:57 +0000 Subject: [PATCH] Urban Terror can be described as a Hollywood tactical shooter; somewhat realism based, but the motto is "fun over realism". This results in a very unique, enjoyable and addictive game. From Ryan Freeman. ok dcoppa@ --- games/urbanterror/Makefile | 41 +++++++++++++++++++++ games/urbanterror/distinfo | 2 ++ games/urbanterror/patches/patch-Makefile | 46 ++++++++++++++++++++++++ games/urbanterror/pkg/DESCR | 3 ++ games/urbanterror/pkg/PLIST | 3 ++ 5 files changed, 95 insertions(+) create mode 100644 games/urbanterror/Makefile create mode 100644 games/urbanterror/distinfo create mode 100644 games/urbanterror/patches/patch-Makefile create mode 100644 games/urbanterror/pkg/DESCR create mode 100644 games/urbanterror/pkg/PLIST diff --git a/games/urbanterror/Makefile b/games/urbanterror/Makefile new file mode 100644 index 00000000000..9fae51ba946 --- /dev/null +++ b/games/urbanterror/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2016/08/26 08:55:57 bentley Exp $ + +USE_WXNEEDED = Yes +ONLY_FOR_ARCHS = amd64 i386 + +COMMENT = fast-paced hollywood-tactical shooter: "fun over realism" +DISTNAME = urbanterror-4.2.023pl1 + +GH_ACCOUNT = Barbatos +GH_PROJECT = ioq3-for-UrbanTerror-4 +GH_COMMIT = fdcc11fc48bc3b154523a201e91460904a3261d1 + +CATEGORIES = games x11 + +HOMEPAGE = http://urbanterror.info/ + +MAINTAINER = Ryan Freeman + +# GPLv2+ +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += X11 Xxf86vm c m pthread SDL + +LIB_DEPENDS = devel/sdl +RUN_DEPENDS = games/urbanterror-data + +USE_GMAKE = Yes +ALL_TARGET = release + +MAKE_ENV = V=1 \ + DEFAULT_BASEDIR=${TRUEPREFIX}/share/urbanterror + +do-install: + ${INSTALL_PROGRAM} \ + ${WRKBUILD}/build/release-openbsd/Quake3-UrT \ + ${PREFIX}/bin/urbanterror + ${INSTALL_PROGRAM} \ + ${WRKBUILD}/build/release-openbsd/Quake3-UrT-Ded \ + ${PREFIX}/bin/urbanterror-ded + +.include diff --git a/games/urbanterror/distinfo b/games/urbanterror/distinfo new file mode 100644 index 00000000000..82bd14181ea --- /dev/null +++ b/games/urbanterror/distinfo @@ -0,0 +1,2 @@ +SHA256 (urbanterror-4.2.023pl1.tar.gz) = tZPueTR1mjWaanmlhxtmuWEh9Hizw1oJGxSaqM9GtnQ= +SIZE (urbanterror-4.2.023pl1.tar.gz) = 10022625 diff --git a/games/urbanterror/patches/patch-Makefile b/games/urbanterror/patches/patch-Makefile new file mode 100644 index 00000000000..e2cece2c414 --- /dev/null +++ b/games/urbanterror/patches/patch-Makefile @@ -0,0 +1,46 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2016/08/26 08:55:57 bentley Exp $ +--- Makefile.orig Sat Aug 20 03:46:28 2016 ++++ Makefile Sat Aug 20 18:59:13 2016 +@@ -150,8 +150,8 @@ endif + + ############################################################################# + +-BD=$(BUILD_DIR)/debug-$(PLATFORM)-$(ARCH) +-BR=$(BUILD_DIR)/release-$(PLATFORM)-$(ARCH) ++BD=$(BUILD_DIR)/debug-$(PLATFORM) ++BR=$(BUILD_DIR)/release-$(PLATFORM) + CDIR=$(MOUNT_DIR)/client + SDIR=$(MOUNT_DIR)/server + RDIR=$(MOUNT_DIR)/renderer +@@ -832,11 +835,11 @@ endif #SunOS + TARGETS = + + ifneq ($(BUILD_SERVER),0) +- TARGETS += $(B)/Quake3-UrT-Ded.$(ARCH)$(BINEXT) ++ TARGETS += $(B)/Quake3-UrT-Ded$(BINEXT) + endif + + ifneq ($(BUILD_CLIENT),0) +- TARGETS += $(B)/Quake3-UrT.$(ARCH)$(BINEXT) ++ TARGETS += $(B)/Quake3-UrT$(BINEXT) + ifneq ($(BUILD_CLIENT_SMP),0) + TARGETS += $(B)/Quake3-UrT-smp.$(ARCH)$(BINEXT) + endif +@@ -1266,7 +1269,7 @@ else + $(B)/clientsmp/sdl_glimp.o + endif + +-$(B)/Quake3-UrT.$(ARCH)$(BINEXT): $(Q3OBJ) $(Q3POBJ) $(LIBSDLMAIN) ++$(B)/Quake3-UrT$(BINEXT): $(Q3OBJ) $(Q3POBJ) $(LIBSDLMAIN) + $(echo_cmd) "LD $@" + $(Q)$(CC) -o $@ $(Q3OBJ) $(Q3POBJ) $(CLIENT_LDFLAGS) \ + $(LDFLAGS) $(LIBSDLMAIN) +@@ -1399,7 +1402,7 @@ ifeq ($(HAVE_VM_COMPILED),true) + endif + endif + +-$(B)/Quake3-UrT-Ded.$(ARCH)$(BINEXT): $(Q3DOBJ) ++$(B)/Quake3-UrT-Ded$(BINEXT): $(Q3DOBJ) + $(echo_cmd) "LD $@" + $(Q)$(CC) -o $@ $(Q3DOBJ) $(LDFLAGS) + diff --git a/games/urbanterror/pkg/DESCR b/games/urbanterror/pkg/DESCR new file mode 100644 index 00000000000..02c2fc5a658 --- /dev/null +++ b/games/urbanterror/pkg/DESCR @@ -0,0 +1,3 @@ +Urban Terror can be described as a Hollywood tactical shooter; somewhat +realism based, but the motto is "fun over realism". This results in a +very unique, enjoyable and addictive game. diff --git a/games/urbanterror/pkg/PLIST b/games/urbanterror/pkg/PLIST new file mode 100644 index 00000000000..f9482189b62 --- /dev/null +++ b/games/urbanterror/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2016/08/26 08:55:57 bentley Exp $ +@bin bin/urbanterror +@bin bin/urbanterror-ded