2007-10-22 20:39:45 +00:00
|
|
|
# New ports collection makefile for: HLLib
|
|
|
|
# Date created: 22 Oct 2007
|
|
|
|
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hllib
|
2011-07-27 07:34:09 +00:00
|
|
|
PORTVERSION= 2.4.2
|
2007-10-22 20:39:45 +00:00
|
|
|
CATEGORIES= games devel
|
2010-09-09 13:25:31 +00:00
|
|
|
MASTER_SITES= http://nemesis.thewavelength.net/files/files/
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
2007-10-22 20:39:45 +00:00
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Library to work with various Half-Life file formats
|
|
|
|
|
2010-09-09 13:25:31 +00:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2007-10-22 20:39:45 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
USE_DOS2UNIX= Makefile
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
WRKSRC= ${WRKDIR}/HLLib
|
2007-10-26 08:23:12 +00:00
|
|
|
CFLAGS+= -fpic
|
2007-10-22 20:39:45 +00:00
|
|
|
|
2011-07-27 07:34:09 +00:00
|
|
|
HLLIB_VERS= 2.3.0
|
|
|
|
PLIST_FILES= include/hl.h lib/libhl.so.${HLLIB_VERS} \
|
2007-10-22 20:39:45 +00:00
|
|
|
lib/libhl.so.2 lib/libhl.so
|
|
|
|
|
2011-07-27 07:34:09 +00:00
|
|
|
post-patch:
|
2007-10-22 20:39:45 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|