freebsd-ports/games/openlierox/Makefile
Jan Beich a8713d15f4 devel/boost-*: update to 1.62.0
- Enable `long double` C99 math usage
- Switch 9.x back to building with GCC

Changes:	http://www.boost.org/users/history/
PR:		199601
Submitted by:	Chen Xu, bapt, amdmi3, truckman (based on)
Reviewed by:	rakuco (kde) (earlier version)
Exp-run by:	antoine (3 tries), truckman (consumers only, earlier versions)
Approved by:	bapt (office)
2016-11-23 12:45:46 +00:00

73 lines
2.1 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= openlierox
DISTVERSION= 0.58_rc3
PORTREVISION= 8
PORTEPOCH= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/OpenLieroX%20${DISTVERSION:C/_/%20/}
DISTNAME= OpenLieroX_${DISTVERSION}.src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Extremely addictive realtime worms shoot-em-up
LIB_DEPENDS= libgd.so:graphics/gd \
libboost_signals.so:devel/boost-libs \
libcurl.so:ftp/curl
USES= tar:bzip2 cmake openal:al,alut pkgconfig
USE_SDL= sdl image
USE_GNOME= libxml2
USE_GCC= any # too many gcc'isms
CFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_ARGS= -DHAWKNL_BUILTIN=YES \
-DLIBZIP_BUILTIN=YES \
-DBREAKPAD=NO \
-DSYSTEM_DATA_DIR="${DATADIR}" \
-DHASBFD=NO
WRKSRC= ${WRKDIR}/OpenLieroX
# 0.59 versions are unstable
PORTSCOUT= skipv:0.59_beta1,0.59_beta2,0.59_beta3,0.59_beta4,0.59_beta5,0.59_beta6,0.59_beta7,0.59_beta8,0.59_beta9,0.59_beta10
PORTDOCS= *
PORTDATA= *
PLIST_FILES= bin/openlierox \
share/applications/openlierox-openlierox.desktop \
share/pixmaps/OpenLieroX.svg
OPTIONS_DEFINE= DEDICATED_ONLY DOCS
DEDICATED_ONLY_DESC=Build dedicated server only
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEDICATED_ONLY}
CMAKE_ARGS+= -DDEDICATED_ONLY=YES
.else
USE_XORG+= x11
USE_SDL+= mixer
.endif
post-patch:
@${REINPLACE_CMD} -e 's|EXEC_PROGRAM.*OLXVER)|SET(OLXVER "${DISTVERSION}")|; \
s|/usr/local|${LOCALBASE}|' ${WRKSRC}/CMakeOlxCommon.cmake
@${FIND} ${WRKSRC} \( -name "*.cpp" -o -name "*.h" -o -name "*.cc" \) -print0 | ${XARGS} -0 -n1 \
${REINPLACE_CMD} -e '/include.*curl\/types.h/ d'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/openlierox ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/share/openlierox-openlierox.desktop \
${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/share/OpenLieroX.svg \
${STAGEDIR}${PREFIX}/share/pixmaps/
cd ${WRKSRC}/share/gamedir && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>