freebsd-ports/games/netradiant/Makefile
Sunpoet Po-Chuan Hsieh d60b005d21 - Update to 0.4.0
- Add LICENSE
- Sort LIB_DEPENDS
- Use USES=libtool
- Do not silence installation message
- Bump PORTREVISION for graphics/webp shlib change

Changes:	https://chromium.googlesource.com/webm/libwebp/+/master/NEWS
2014-05-08 03:25:06 +00:00

61 lines
1.9 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= netradiant
PORTVERSION= 20130630
PORTREVISION= 3
CATEGORIES= games cad
MASTER_SITES= http://ingar.satgnu.net/gtkradiant/files/ \
http://freebsd.nsu.ru/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} q3map2.6
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Fork of the well-known GtkRadiant 1.5 FPS games map editor
LICENSE= GPLv2
LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libwebp.so:${PORTSDIR}/graphics/webp
USES= gmake pkgconfig
USE_BZIP2= yes
USE_GL= gl
USE_GNOME= gtk20 libxml2
MAKE_ENV= BUILD=release DOWNLOAD_GAMEPACKS=no LIBS_DL="" \
RADIANT_ABOUTMSG="For ${OPSYS} ${OSREL} (${ARCH})"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= ${PORTNAME}
SUB_LIST= ARCH=${ARCH}
PLIST_SUB:= ${SUB_LIST}
post-patch:
# Add missing checks for __FreeBSD__
@${FIND} ${WRKSRC}/tools -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} \
-e 's/__linux__/__${OPSYS}__ ) || defined ( &/'
# Fix the build against Clang
@${REINPLACE_CMD} -e '/#include "generic\/reference\.h"/x ; 288G' \
${WRKSRC}/libs/scenelib.h
@${REINPLACE_CMD} -e '/#include "generic\/referencecounted\.h/ { \
x ; s/^/#include "scenelib.h"/ ; G ; }' \
${WRKSRC}/plugins/mapq3/parse.h
pre-install:
# Fix permissions of some files (drop bogus execute bit)
@${FIND} ${WRKSRC}/install/osirion.game -type f | ${XARGS} ${CHMOD} a-x
@${CHMOD} a-x ${WRKSRC}/install/games/osirion.game
# Remove extra copy of GNU GPL from what we install
@${RM} ${WRKSRC}/install/GPL.txt
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -a ${WRKSRC}/install/* ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${DISTDIR}/q3map2.6 ${STAGEDIR}${MANPREFIX}/man/man6
.include <bsd.port.mk>