- Change maintainer email to @FreeBSD.org

- Add stage support

Approved by:	wg (mentor)
This commit is contained in:
Danilo Egea Gondolfo 2013-10-01 14:10:43 +00:00
parent d61d3293a3
commit 35233318ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328949

View File

@ -7,7 +7,7 @@ CATEGORIES= games devel
MASTER_SITES= http://nemesis.thewavelength.net/files/files/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
MAINTAINER= danilogondolfo@gmail.com
MAINTAINER= danilo@FreeBSD.org
COMMENT= Library to work with various Half-Life file formats
LICENSE= LGPL21
@ -24,11 +24,12 @@ HLLIB_VERS= 2.4.4
PLIST_FILES= include/hl.h lib/libhl.so.${HLLIB_VERS} \
lib/libhl.so.2 lib/libhl.so
NO_STAGE= yes
MAKE_ARGS= PREFIX="${STAGEDIR}${PREFIX}"
post-patch:
# Allow propagating of CXX, CXXFLAGS, and PREFIX; fix Linuxism and symlinks
@${REINPLACE_CMD} -E 's,^([CP][^=]*)=,\1?=, ; s,g root,g wheel, ; \
s,s \$$\(PREFIX\)/lib/,s ,' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -E 's,^([CP][^=]*)=,\1?=, ; s,-g root,,g ; \
s,-o root,,g ; s,s \$$\(PREFIX\)/lib/,s ,' ${WRKSRC}/Makefile
# Add forgotten file to the source list so it would be picked up by linker
@${REINPLACE_CMD} -e 's,ProcStream\.cpp,& SGAFile.cpp,' \
${WRKSRC}/Makefile