aboutsummaryrefslogtreecommitdiff
path: root/games/openlierox/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-01-13 14:21:41 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-01-13 14:21:41 +0000
commita749fc13a67dab2b9ff35d3b8ac5cd0ab0b88031 (patch)
tree6efea1549574cc36f9b06b1afe1c73e44203dfe2 /games/openlierox/Makefile
parentbd9bd71842d1de6691e27653801d9ac9119868c3 (diff)
downloadports-a749fc13a67dab2b9ff35d3b8ac5cd0ab0b88031.tar.gz
ports-a749fc13a67dab2b9ff35d3b8ac5cd0ab0b88031.zip
Notes
Diffstat (limited to 'games/openlierox/Makefile')
-rw-r--r--games/openlierox/Makefile27
1 files changed, 9 insertions, 18 deletions
diff --git a/games/openlierox/Makefile b/games/openlierox/Makefile
index b400ab3bbb8d..8a94d691f2c8 100644
--- a/games/openlierox/Makefile
+++ b/games/openlierox/Makefile
@@ -2,8 +2,8 @@
# $FreeBSD$
PORTNAME= openlierox
-DISTVERSION= 0.59_beta10
-PORTREVISION= 3
+DISTVERSION= 0.58_rc3
+PORTEPOCH= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/OpenLieroX%20${DISTVERSION:C/_/%20/}
DISTNAME= OpenLieroX_${DISTVERSION}.src
@@ -19,7 +19,7 @@ LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \
USE_BZIP2= yes
USE_SDL= sdl image
USE_GNOME= libxml2
-USE_GCC= yes
+USE_GCC= any # too many gcc'isms
CFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include
@@ -44,11 +44,9 @@ PLIST_FILES= bin/openlierox \
OPTIONS_DEFINE= DEDICATED_ONLY DOCS
DEDICATED_ONLY_DESC=Build dedicated server only
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEDICATED_ONLY}
-BROKEN= does not build
CMAKE_ARGS+= -DDEDICATED_ONLY=YES
.else
USE_XORG+= x11
@@ -56,25 +54,18 @@ USE_SDL+= mixer
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|boost_signals-mt|boost_signals boost_system|; \
- s|EXEC_PROGRAM.*OLXVER)|SET(OLXVER "${DISTVERSION}")|; \
+ @${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 ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/openliero ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/share/openlierox-openlierox.desktop \
- ${PREFIX}/share/applications/
+ ${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/share/OpenLieroX.svg \
- ${PREFIX}/share/pixmaps/
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR}
- cd ${WRKSRC}/share/gamedir && ${COPYTREE_SHARE} . ${DATADIR}/
-.endif
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}/
-.endif
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+ cd ${WRKSRC}/share/gamedir && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
+ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>