summaryrefslogtreecommitdiff
path: root/games/zhlt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/zhlt/Makefile')
-rw-r--r--games/zhlt/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/games/zhlt/Makefile b/games/zhlt/Makefile
new file mode 100644
index 000000000000..525055dd3ba7
--- /dev/null
+++ b/games/zhlt/Makefile
@@ -0,0 +1,32 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= zhlt
+PORTVERSION= 3.4
+CATEGORIES= games devel
+MASTER_SITES= http://downloads.ammahls.com/zhlt/Old%20SDK%20Code/
+DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}f-src
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Zoner's Half-Life compile tools
+
+USES= dos2unix zip
+DOS2UNIX_FILES= common/bspfile.h common/cmdlib.cpp common/mathlib.h \
+ common/win32fix.h hlrad/mathutil.cpp
+
+MAKEFILE= ${FILESDIR}/Makefile
+NO_WRKSUBDIR= yes
+
+PLIST_FILES= bin/hlbsp bin/hlcsg bin/hlrad bin/hlvis bin/ripent
+
+post-patch:
+ @${REINPLACE_CMD} -E 's,(min|max)\(,std::&,g' \
+ ${WRKSRC}/common/boundingbox.h \
+ ${WRKSRC}/common/filelib.cpp \
+ ${WRKSRC}/common/winding.cpp \
+ ${WRKSRC}/hlrad/lightmap.cpp \
+ ${WRKSRC}/hlvis/flow.cpp
+ @${REINPLACE_CMD} -e 's,min(32,&L,' \
+ ${WRKSRC}/common/filelib.cpp
+
+.include <bsd.port.mk>