mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
0b055d47f2
- Switch to C++14 for libboost_system to support C++14 consumers Changes: http://www.boost.org/users/history/version_1_68_0.html PR: 229569 Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D16165
70 lines
2.2 KiB
Makefile
70 lines
2.2 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openlierox
|
|
DISTVERSION= 0.58_rc3
|
|
PORTREVISION= 17
|
|
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= libboost_signals.so:devel/boost-libs \
|
|
libcurl.so:ftp/curl
|
|
|
|
USES= tar:bzip2 cmake localbase pkgconfig
|
|
USE_SDL= sdl image
|
|
USE_GNOME= libxml2
|
|
|
|
CXXFLAGS+= -Wno-c++11-narrowing
|
|
|
|
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
|
|
DEDICATED_ONLY_CMAKE_BOOL= DEDICATED_ONLY
|
|
DEDICATED_ONLY_USE_OFF= XORG=x11 SDL=mixer
|
|
DEDICATED_ONLY_LIB_DEPENDS_OFF= libgd.so:graphics/gd
|
|
|
|
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'
|
|
# Convert the static_assert calls to regular, C++ ones.
|
|
@${FIND} ${WRKSRC} \( -name "*.cpp" -o -name "*.h" -o -name "*.cc" \) -print0 | ${XARGS} -0 -n1 \
|
|
${REINPLACE_CMD} -E -e 's/static_assert\((.+), (.+)\)/static_assert\(\1, "\2"\)/g'
|
|
|
|
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}/
|
|
|
|
do-install-DOCS-on:
|
|
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|