1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/games/hllib/Makefile
Felippe de Meirelles Motta 13f09390a9 - Update to 2.4.4
- Pass maintainership to submitter
- Make CLANG happy

PR:		ports/176040
Submitted by:	Danilo Egea Gondolfo <danilogondolfo@gmail.com>
2013-02-14 22:04:06 +00:00

42 lines
1.2 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= hllib
PORTVERSION= 2.4.4
CATEGORIES= games devel
MASTER_SITES= http://nemesis.thewavelength.net/files/files/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
MAINTAINER= danilogondolfo@gmail.com
COMMENT= Library to work with various Half-Life file formats
LICENSE= LGPL21
USE_ZIP= yes
USE_DOS2UNIX= yes
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/HLLib
CFLAGS+= -fpic -DUSE_ZLIB
PATCH_WRKSRC= ${WRKDIR}
HLLIB_VERS= 2.4.4
PLIST_FILES= include/hl.h lib/libhl.so.${HLLIB_VERS} \
lib/libhl.so.2 lib/libhl.so
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
# 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
# Remove two lines of code that offend C++ compiler
@${REINPLACE_CMD} -e '/friend CSGADirectory/d' ${WRKSRC}/SGAFile.h
# Add missing -lz
@${REINPLACE_CMD} -e '/$$(LDFLAGS)/s,$$, -lz,' ${WRKSRC}/Makefile
# Fix library version
@${REINPLACE_CMD} -e 's/2\.3\.0/2\.4\.4/' ${WRKSRC}/Makefile
.include <bsd.port.mk>