pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ioquake3-snapshot: import ioquake3-20170521 as wip/ioquake3-snapshot



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Sun May 21 22:23:52 2017 +0200
Changeset:	1e0bfb5acd6f831550342d478ca99fbc6af60a72

Modified Files:
	Makefile
Added Files:
	ioquake3-snapshot/DESCR
	ioquake3-snapshot/Makefile
	ioquake3-snapshot/PLIST
	ioquake3-snapshot/distinfo
	ioquake3-snapshot/patches/patch-Makefile
	ioquake3-snapshot/patches/patch-code_qcommon_q_platform.h

Log Message:
ioquake3-snapshot: import ioquake3-20170521 as wip/ioquake3-snapshot

ioquake3 is a game engine project which aims to build upon id Software's Quake
3 source code release. The source code was released on August 20, 2005 under
the GPL.

The project's goal is to create a bug-free, enhanced open source Quake 3
source code distribution upon which new games and projects can be based, as
well as an improved version (in relation to the original binaries) of the
engine for playing Quake III: Arena, the Team Arena expansion pack and all the
popular mods.

This package is a snapshot of the development version of games/ioquake3.

See also:
https://ioquake3.org/2017/03/13/important-security-update-please-update-ioquake3-immediately/

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1e0bfb5acd6f831550342d478ca99fbc6af60a72

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 ioquake3-snapshot/DESCR                            | 11 +++++
 ioquake3-snapshot/Makefile                         | 39 +++++++++++++++
 ioquake3-snapshot/PLIST                            | 11 +++++
 ioquake3-snapshot/distinfo                         |  8 +++
 ioquake3-snapshot/patches/patch-Makefile           | 57 ++++++++++++++++++++++
 .../patches/patch-code_qcommon_q_platform.h        | 31 ++++++++++++
 7 files changed, 158 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index bc4e2ccdb9..b08365decd 100644
--- a/Makefile
+++ b/Makefile
@@ -1416,6 +1416,7 @@ SUBDIR+=	io-user
 SUBDIR+=	io-vm
 SUBDIR+=	io-zlib
 SUBDIR+=	ion3
+SUBDIR+=	ioquake3-snapshot
 SUBDIR+=	ipamjfont
 SUBDIR+=	ipax0208font-ttf
 SUBDIR+=	ipfm
diff --git a/ioquake3-snapshot/DESCR b/ioquake3-snapshot/DESCR
new file mode 100644
index 0000000000..f47fe8b6ca
--- /dev/null
+++ b/ioquake3-snapshot/DESCR
@@ -0,0 +1,11 @@
+ioquake3 is a game engine project which aims to build upon id Software's Quake
+3 source code release. The source code was released on August 20, 2005 under
+the GPL.
+
+The project's goal is to create a bug-free, enhanced open source Quake 3
+source code distribution upon which new games and projects can be based, as
+well as an improved version (in relation to the original binaries) of the
+engine for playing Quake III: Arena, the Team Arena expansion pack and all the
+popular mods.
+
+This package is the a snapshop of the development version of games/ioquake3.
diff --git a/ioquake3-snapshot/Makefile b/ioquake3-snapshot/Makefile
new file mode 100644
index 0000000000..446228eec8
--- /dev/null
+++ b/ioquake3-snapshot/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	ioq3
+PKGNAME=	ioquake3-20170521
+DISTNAME=	${GITHUB_TAG}
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ioquake/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+GITHUB_TAG=	c65d2c2657fa6aecf498a5e1c20ffa706a80e818
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.ioquake3.org/
+COMMENT=	Open source Quake 3 distribution
+LICENSE=	gnu-gpl-v2
+
+WRKSRC=	${WRKDIR}/ioq3-${GITHUB_TAG}
+
+USE_TOOLS+=	gmake
+BUILD_TARGET=	release
+
+do-install:
+	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/ioquake3
+	cd ${WRKSRC} && ${GMAKE} copyfiles COPYDIR=${DESTDIR}${PREFIX}/lib/ioquake3
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" && ${MACHINE_CPU:U} == "arm"
+QUAKE_ARCH!=	uname -m
+.else
+QUAKE_ARCH=	${MACHINE_ARCH}
+.endif
+
+PLIST_SUBST+=	QUAKE_ARCH=${QUAKE_ARCH:Q}
+
+.include "../../audio/openal-soft/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ioquake3-snapshot/PLIST b/ioquake3-snapshot/PLIST
new file mode 100644
index 0000000000..cdfdb41b4d
--- /dev/null
+++ b/ioquake3-snapshot/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+lib/ioquake3/ioquake3.${QUAKE_ARCH}
+lib/ioquake3/baseq3/cgame${QUAKE_ARCH}.so
+lib/ioquake3/baseq3/qagame${QUAKE_ARCH}.so
+lib/ioquake3/baseq3/ui${QUAKE_ARCH}.so
+lib/ioquake3/ioq3ded.${QUAKE_ARCH}
+lib/ioquake3/missionpack/cgame${QUAKE_ARCH}.so
+lib/ioquake3/missionpack/qagame${QUAKE_ARCH}.so
+lib/ioquake3/missionpack/ui${QUAKE_ARCH}.so
+lib/ioquake3/renderer_opengl1_${QUAKE_ARCH}.so
+lib/ioquake3/renderer_opengl2_${QUAKE_ARCH}.so
diff --git a/ioquake3-snapshot/distinfo b/ioquake3-snapshot/distinfo
new file mode 100644
index 0000000000..57024a4a21
--- /dev/null
+++ b/ioquake3-snapshot/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (ioq3/c65d2c2657fa6aecf498a5e1c20ffa706a80e818-c65d2c2657fa6aecf498a5e1c20ffa706a80e818.zip) = 7f5bad057032da9c0b82bd8597ca9023f469e9b7
+RMD160 (ioq3/c65d2c2657fa6aecf498a5e1c20ffa706a80e818-c65d2c2657fa6aecf498a5e1c20ffa706a80e818.zip) = 83ca4f2b43d00fa4710b98ed03bedecb3df0b55b
+SHA512 (ioq3/c65d2c2657fa6aecf498a5e1c20ffa706a80e818-c65d2c2657fa6aecf498a5e1c20ffa706a80e818.zip) = 6c976bb3cb940911d5e4234fcad712c096c95f81fbc423b356038ceb67baf6f1e368874d905603c8b41d4d5956bc1249d4655e307363f038f9beaab309cfaade
+Size (ioq3/c65d2c2657fa6aecf498a5e1c20ffa706a80e818-c65d2c2657fa6aecf498a5e1c20ffa706a80e818.zip) = 12658523 bytes
+SHA1 (patch-Makefile) = 2fbb0fc959fd640acff84edeb5816940945bfa6b
+SHA1 (patch-code_qcommon_q_platform.h) = 51f4a129dc3b6c622df27a7c610e164d477fc132
diff --git a/ioquake3-snapshot/patches/patch-Makefile b/ioquake3-snapshot/patches/patch-Makefile
new file mode 100644
index 0000000000..40a41e9160
--- /dev/null
+++ b/ioquake3-snapshot/patches/patch-Makefile
@@ -0,0 +1,57 @@
+$NetBSD$
+
+--- Makefile.orig	2017-04-28 09:13:25.000000000 +0000
++++ Makefile
+@@ -794,11 +794,51 @@ ifeq ($(PLATFORM),netbsd)
+ 
+   BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
+ 
++  ifeq ($(ARCH),x86_64)
++    OPTIMIZEVM = -O3
++    OPTIMIZE = $(OPTIMIZEVM) -ffast-math
++    HAVE_VM_COMPILED = true
++  else
+   ifeq ($(ARCH),x86)
++    OPTIMIZEVM = -O3 -march=i586
++    OPTIMIZE = $(OPTIMIZEVM) -ffast-math
++    HAVE_VM_COMPILED=true
++  else
++  ifeq ($(ARCH),ppc)
++    BASE_CFLAGS += -maltivec
++    HAVE_VM_COMPILED=true
++  endif
++  ifeq ($(ARCH),ppc64)
++    BASE_CFLAGS += -maltivec
+     HAVE_VM_COMPILED=true
+   endif
++  ifeq ($(ARCH),sparc64)
++    OPTIMIZE += -mtune=ultrasparc3 -mv8plus
++    OPTIMIZEVM += -mtune=ultrasparc3 -mv8plus
++    HAVE_VM_COMPILED=true
++  endif
++  ifeq ($(ARCH),alpha)
++    OPTIMIZE = $(OPTIMIZEVM)
++  endif
++  endif
++  endif
++
++  USE_MUMBLE=0
+ 
+-  BUILD_CLIENT = 0
++  CLIENT_LIBS += $(SDL_LIBS)
++  RENDERER_LIBS = $(SDL_LIBS) -lGL
++
++  ifeq ($(USE_OPENAL),1)
++    ifneq ($(USE_OPENAL_DLOPEN),1)
++      CLIENT_LIBS += $(THREAD_LIBS) $(OPENAL_LIBS)
++    endif
++  endif
++
++  ifeq ($(USE_CURL),1)
++    ifneq ($(USE_CURL_DLOPEN),1)
++      CLIENT_LIBS += $(CURL_LIBS)
++    endif
++  endif
+ else # ifeq netbsd
+ 
+ #############################################################################
diff --git a/ioquake3-snapshot/patches/patch-code_qcommon_q_platform.h b/ioquake3-snapshot/patches/patch-code_qcommon_q_platform.h
new file mode 100644
index 0000000000..e26461d586
--- /dev/null
+++ b/ioquake3-snapshot/patches/patch-code_qcommon_q_platform.h
@@ -0,0 +1,31 @@
+$NetBSD$
+
+--- code/qcommon/q_platform.h.orig	2017-04-28 09:13:25.000000000 +0000
++++ code/qcommon/q_platform.h
+@@ -201,7 +201,7 @@ Foundation, Inc., 51 Franklin St, Fifth 
+ 
+ //=================================================================== BSD ===
+ 
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ 
+ #include <sys/types.h>
+ #include <machine/endian.h>
+@@ -216,6 +216,8 @@ Foundation, Inc., 51 Franklin St, Fifth 
+ #define OS_STRING "openbsd"
+ #elif defined(__NetBSD__)
+ #define OS_STRING "netbsd"
++#elif defined(__DragonFly__)
++#define OS_STRING "dragonfly"
+ #endif
+ 
+ #define ID_INLINE inline
+@@ -229,6 +231,8 @@ Foundation, Inc., 51 Franklin St, Fifth 
+ #define ARCH_STRING "x86_64"
+ #elif defined __axp__
+ #define ARCH_STRING "alpha"
++#elif defined __arm__
++#define ARCH_STRING "arm"
+ #endif
+ 
+ #if BYTE_ORDER == BIG_ENDIAN


Home | Main Index | Thread Index | Old Index