summaryrefslogtreecommitdiff
path: root/games/zhlt/Makefile
blob: 525055dd3ba7854b9f0e4c7317ecf14f5a7fb52d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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>