ca0bd831ae
- Add upstream fixes for clang/libc++ 3.8 and gcc/libstdc++ 6.0 - Remove merged files/patch-source_src_bot_bot_waypoint.cpp file - Bump PORTREVISION In file included from crypto.cpp:1: In file included from ./cube.h:8: ./tools.h:58:21: error: static declaration of 'round' follows non-static declaration static inline float round(float x) { return floor(x + 0.5f); } ^ /usr/include/c++/v1/math.h:1364:46: note: previous definition is here inline _LIBCPP_INLINE_VISIBILITY float round(float __lcpp_x) _NOEXCEPT {return roundf(__lcpp_x);} ^ In file included from cube.h:8:0, from crypto.cpp:1: tools.h: In function 'float round(float)': tools.h:58:34: error: 'float round(float)' conflicts with a previous declaration static inline float round(float x) { return floor(x + 0.5f); } ^ In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0, from platform.h:9, from cube.h:7, from crypto.cpp:1: /usr/local/lib/gcc6/include/c++/cmath:1708:3: note: previous declaration 'constexpr float std::round(float)' round(float __x) ^~~~~ PR: 208754 Reported by: dim (libc++), lightside (libstdc++) Submitted by: lightside <lightside@gmx.com> (maintainer)
105 lines
3.3 KiB
Makefile
105 lines
3.3 KiB
Makefile
# Created by: alepulver
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= assaultcube
|
|
PORTVERSION= 1.2.0.2
|
|
PORTREVISION= 5
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/actiongame/AssaultCube%20Version%20${PORTVERSION}
|
|
DISTNAME= AssaultCube_v${PORTVERSION}
|
|
|
|
MAINTAINER= lightside@gmx.com
|
|
COMMENT= Total conversion of the FPS game called Cube
|
|
|
|
LICENSE= ACUBE CUBE MIT OTHER
|
|
LICENSE_COMB= multi
|
|
LICENSE_NAME_ACUBE= AssaultCube ZLIB-like license with additions
|
|
LICENSE_NAME_CUBE= Cube game engine ZLIB-like license with additions
|
|
LICENSE_NAME_OTHER= various package licences
|
|
LICENSE_FILE_ACUBE= ${WRKSRC}/source/README.txt
|
|
LICENSE_FILE_CUBE= ${WRKSRC}/source/README_CUBEENGINE.txt
|
|
LICENSE_FILE_OTHER= ${WRKSRC}/docs/package_copyrights.txt
|
|
LICENSE_PERMS_ACUBE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
LICENSE_PERMS_CUBE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
LICENSE_PERMS_OTHER= dist-mirror pkg-mirror auto-accept
|
|
|
|
USES= gmake tar:bzip2
|
|
ALL_TARGET= # empty
|
|
WRKSRC= ${WRKDIR}/AssaultCube_v${PORTVERSION}
|
|
BUILD_WRKSRC= ${WRKSRC}/source/src
|
|
SUB_FILES= ${PLIST_FILES:Mbin/*:T}
|
|
|
|
PORTDATA= config packages scripts
|
|
PORTDOCS= *
|
|
PLIST_DIRS= %%DATADIR%%/packages/maps/servermaps/incoming
|
|
|
|
OPTIONS_DEFINE= DOCS PORT_ENET
|
|
OPTIONS_MULTI= BUILD
|
|
OPTIONS_MULTI_BUILD= CLIENT DEDICATED MASTER
|
|
OPTIONS_DEFAULT= CLIENT DEDICATED
|
|
|
|
CLIENT_DESC= Build client
|
|
CLIENT_USES= gettext-runtime openal:al
|
|
CLIENT_USE= GL=gl SDL=image,sdl XORG=x11
|
|
CLIENT_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
|
|
libcurl.so:ftp/curl
|
|
CLIENT_ALL_TARGET= client
|
|
CLIENT_PLIST_FILES= bin/${PORTNAME}_client libexec/${PORTNAME}_client \
|
|
share/pixmaps/${PORTNAME}.png
|
|
DEDICATED_DESC= Build dedicated server
|
|
DEDICATED_ALL_TARGET= server
|
|
DEDICATED_PLIST_FILES= bin/${PORTNAME}_server libexec/${PORTNAME}_server
|
|
MASTER_DESC= Build master server
|
|
MASTER_ALL_TARGET= master
|
|
MASTER_PLIST_FILES= bin/${PORTNAME}_master libexec/${PORTNAME}_master
|
|
PORT_ENET_DESC= Use libenet from net/enet
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
|
DESKTOP_ENTRIES="AssaultCube" "${COMMENT}" \
|
|
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}_client" \
|
|
"Game;" false
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPORT_ENET}
|
|
LIB_DEPENDS+= libenet.so:net/enet
|
|
.else
|
|
ALL_TARGET+= libenet
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-shared=no --enable-static=yes
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/source/enet
|
|
.endif
|
|
|
|
post-patch: .SILENT
|
|
${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \
|
|
/^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \
|
|
s|-I/usr/include || ; \
|
|
s|sdl-config|$$(SDL_CONFIG)| ; \
|
|
s|$$(USRLIB)|$$(LOCALBASE)/lib| ; \
|
|
/^CLIENT_LIBS=/s|$$| -lintl| ; \
|
|
/^SERVER_LIBS=/s|$$| -L$$(LOCALBASE)/lib|' \
|
|
${BUILD_WRKSRC}/Makefile
|
|
.if ${PORT_OPTIONS:MPORT_ENET}
|
|
${SED} -i '.port_enet.bak' -e 's/libenet // ; \
|
|
s|-I\.\./enet/include|| ; \
|
|
s|-L\.\./enet/\.libs||' \
|
|
${BUILD_WRKSRC}/Makefile
|
|
.endif
|
|
|
|
do-install:
|
|
.for f in ${PLIST_FILES:Mbin/*}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${f:T} ${STAGEDIR}${PREFIX}/${f}
|
|
.endfor
|
|
.for f in ${PLIST_FILES:Mlibexec/*}
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f:T:S/${PORTNAME}/ac/} \
|
|
${STAGEDIR}${PREFIX}/${f}
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/images/icon.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
.endif
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|