From 7bdee49b6f284598edd0403384191c002e34fe94 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Mon, 28 Oct 2019 22:12:41 -0400 Subject: [PATCH] add zokumbsp template --- TODO | 1 - srcpkgs/zokumbsp/patches/makefile.diff | 35 ++++++++++++++++++++++++++ srcpkgs/zokumbsp/patches/zenmain.diff | 26 +++++++++++++++++++ srcpkgs/zokumbsp/template | 18 +++++++++++++ 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/zokumbsp/patches/makefile.diff create mode 100644 srcpkgs/zokumbsp/patches/zenmain.diff create mode 100644 srcpkgs/zokumbsp/template diff --git a/TODO b/TODO index 0c65af7..55f34c8 100644 --- a/TODO +++ b/TODO @@ -17,4 +17,3 @@ trenchbroom uade xf86-input-xwiimote-git xwiimote-git -zokumbsp diff --git a/srcpkgs/zokumbsp/patches/makefile.diff b/srcpkgs/zokumbsp/patches/makefile.diff new file mode 100644 index 0000000..f8dc939 --- /dev/null +++ b/srcpkgs/zokumbsp/patches/makefile.diff @@ -0,0 +1,35 @@ +--- src/zokumbsp/makefile.orig 2018-12-24 02:21:02.000000000 -0500 ++++ src/zokumbsp/makefile 2019-10-28 22:07:13.907262357 -0400 +@@ -1,29 +1,13 @@ + # zennode makefile for Linux + +-CC = g++ +-CFLAGS += -g -O -fstrength-reduce -fno-rtti +-#CFLAGS += -fomit-frame-pointer -foptimize-sibling-calls +-#CFLAGS += -fbranch-probabilities +-#CFLAGS += -fprofile-arcs +-#WARNINGS = -Wall -Wno-format -Winline +-#CC = /opt/intel/compiler60/ia32/bin/icc +-#CFLAGS = -g -O3 +-#CFLAGS = -fpermissive -O3 -pipe -march=k8 +-#CFLAGS = -O0 -g -pipe +-#CFLAGS = -O2 -pipe -static ++CC = c++ ++CFLAGS += -fstrength-reduce -fno-rtti + CFLAGS = -O2 -pipe -fomit-frame-pointer -foptimize-sibling-calls -fbranch-probabilities +-#CFLAGS = -O2 -pipe -m32 -fomit-frame-pointer + INCLUDES = -I../doom -I../common +-#TARGETS = ZokumBSP bspdiff bspinfo compare + TARGETS = zokumbsp + LINKFLAGS = -static + LINKFLAGS = +- +-CFLAGS += -D__LINUX__ +- +-ifdef WIN32 +-CFLAGS += -D__WIN32__ +-endif ++LIBS += -lstdc++ -lm + + ifdef DEBUG + CFLAGS += -DDEBUG diff --git a/srcpkgs/zokumbsp/patches/zenmain.diff b/srcpkgs/zokumbsp/patches/zenmain.diff new file mode 100644 index 0000000..14c4eb2 --- /dev/null +++ b/srcpkgs/zokumbsp/patches/zenmain.diff @@ -0,0 +1,26 @@ +--- src/zokumbsp/zenmain.cpp.orig 2018-12-24 02:21:02.000000000 -0500 ++++ src/zokumbsp/zenmain.cpp 2019-10-28 22:04:55.823656504 -0400 +@@ -44,20 +44,18 @@ + #include + #endif + +-#if defined ( __OS2__ ) ++#if defined ( _OS2 ) + #include + #include + #include + #define INCL_DOS + #define INCL_SUB + #include +-#elif defined ( __WIN32__ ) ++#elif defined ( _WIN32 ) + #include + #include +-#elif defined ( __LINUX__ ) ++#elif defined ( __linux__ ) + #include +-#else +- // #error This platform is not supported + #endif + + #if defined ( __BORLANDC__ ) diff --git a/srcpkgs/zokumbsp/template b/srcpkgs/zokumbsp/template new file mode 100644 index 0000000..531b524 --- /dev/null +++ b/srcpkgs/zokumbsp/template @@ -0,0 +1,18 @@ +# Template file for 'zokumbsp' +pkgname=zokumbsp +version=1.1 +revision=1 +_git_hash=2c7efa402a5b7a941230395fd33db3d139343563 +build_style=gnu-makefile +short_desc="A blockmap, reject and node builder for Doom engine games" +maintainer="Alison Watson " +license="GPL-2.0-or-later" +homepage="http://www.doom2.net/zokum/zokumbsp/" +distfiles="https://github.com/zokum-no/zokumbsp/archive/${_git_hash}.tar.gz" +checksum=b0a18140d7741574ec2d71599e1c0530022fae93684a4e1aa4ac791cd92ce64b +wrksrc=zokumbsp-${_git_hash} +build_wrksrc=src/zokumbsp + +do_install() { + vbin ${wrksrc}/${build_wrksrc}/zokumbsp +}