add zokumbsp template

master
an 2019-10-28 22:12:41 -04:00
parent ca565fbe6a
commit 7bdee49b6f
4 changed files with 79 additions and 1 deletions

1
TODO
View File

@ -17,4 +17,3 @@ trenchbroom
uade
xf86-input-xwiimote-git
xwiimote-git
zokumbsp

View File

@ -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

View File

@ -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 <strings.h>
#endif
-#if defined ( __OS2__ )
+#if defined ( _OS2 )
#include <conio.h>
#include <dos.h>
#include <io.h>
#define INCL_DOS
#define INCL_SUB
#include <os2.h>
-#elif defined ( __WIN32__ )
+#elif defined ( _WIN32 )
#include <conio.h>
#include <io.h>
-#elif defined ( __LINUX__ )
+#elif defined ( __linux__ )
#include <unistd.h>
-#else
- // #error This platform is not supported
#endif
#if defined ( __BORLANDC__ )

18
srcpkgs/zokumbsp/template Normal file
View File

@ -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 <marrub@greyserv.net>"
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
}