aboutsummaryrefslogtreecommitdiff
path: root/games/pink-pony/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-12-24 03:05:46 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-12-24 03:05:46 +0000
commitf712666ecfa810fa0a5198dbdba2400d31098983 (patch)
tree7f011c4f3c28dae4021820e82c52f29442192ec9 /games/pink-pony/Makefile
parentd049af9045f5dcf522cee0d690ce66c2d766cae6 (diff)
downloadports-f712666ecfa810fa0a5198dbdba2400d31098983.tar.gz
ports-f712666ecfa810fa0a5198dbdba2400d31098983.zip
Notes
Diffstat (limited to 'games/pink-pony/Makefile')
-rw-r--r--games/pink-pony/Makefile53
1 files changed, 23 insertions, 30 deletions
diff --git a/games/pink-pony/Makefile b/games/pink-pony/Makefile
index e9a795abb8fd..91d8e786df77 100644
--- a/games/pink-pony/Makefile
+++ b/games/pink-pony/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= pink-pony
-PORTVERSION= 1.2.1
-PORTREVISION= 9
+PORTVERSION= 1.3.1
CATEGORIES= games
MASTER_SITES= GOOGLE_CODE \
http://mirror.amdmi3.ru/distfiles/
@@ -11,46 +10,40 @@ MASTER_SITES= GOOGLE_CODE \
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Tron-like multiplayer racing game
-LIB_DEPENDS= IL:${PORTSDIR}/graphics/devil \
- protobuf:${PORTSDIR}/devel/protobuf \
- glfw:${PORTSDIR}/graphics/glfw \
- Half:${PORTSDIR}/graphics/ilmbase \
- ftgl:${PORTSDIR}/graphics/ftgl \
- sigc-2.0:${PORTSDIR}/devel/libsigc++20
-BUILD_DEPENDS= ${LOCALBASE}/lib/libaudiere.so:${PORTSDIR}/audio/audiere
-RUN_DEPENDS= ${LOCALBASE}/lib/libaudiere.so:${PORTSDIR}/audio/audiere
+LICENSE= GPLv3
+
+LIB_DEPENDS= libIL.so:${PORTSDIR}/graphics/devil \
+ libprotobuf.so:${PORTSDIR}/devel/protobuf \
+ libglfw.so:${PORTSDIR}/graphics/glfw \
+ libHalf.so:${PORTSDIR}/graphics/ilmbase \
+ libftgl.so:${PORTSDIR}/graphics/ftgl \
+ libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20
USES= pkgconfig
USE_BZIP2= yes
USE_SCONS= yes
+USES= pkgconfig
USE_GL= gl glu
+USE_SDL= mixer
SUB_FILES= pink-pony.sh
USE_DOS2UNIX= lib/GL/GLee.h
-WRKSRC= ${WRKDIR}/${PORTNAME}
-
-PORTDOCS= README
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+PORTDOCS= *
+PORTDATA= *
post-patch:
- @${REINPLACE_CMD} -Ee 's,(GLSL|levels|models|music|textures|fonts)/,${DATADIR}/&,' \
- ${WRKSRC}/pony.options ${WRKSRC}/Pony.cc ${WRKSRC}/lib/*.cc ${WRKSRC}/levels.xml
- @${REINPLACE_CMD} -e 's|levels.xml|${DATADIR}/&|' \
- ${WRKSRC}/lib/Config.cc ${WRKSRC}/pony.options
+ @${REINPLACE_CMD} -Ee 's,resources/,${DATADIR}/,' \
+ ${WRKSRC}/pony.options ${WRKSRC}/lib/Config.cc
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/install/pink-pony.desktop
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/Pony ${PREFIX}/libexec/
- cd ${WRKSRC} && ${COPYTREE_SHARE} \
- "GLSL levels* models music textures fonts pony.options" ${DATADIR}/
- ${INSTALL_SCRIPT} ${WRKDIR}/pink-pony.sh ${PREFIX}/bin/pink-pony
- ${INSTALL_DATA} ${WRKSRC}/install/pink-pony.png ${PREFIX}/share/pixmaps/
- ${INSTALL_DATA} ${WRKSRC}/install/pink-pony.desktop ${PREFIX}/share/applications/
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/Pony ${STAGEDIR}${PREFIX}/libexec/
+ cd ${WRKSRC}/resources && ${COPYTREE_SHARE} '*' ${STAGEDIR}${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/pony.options ${STAGEDIR}${DATADIR}/
+ ${INSTALL_SCRIPT} ${WRKDIR}/pink-pony.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/install/pink-pony.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${INSTALL_DATA} ${WRKSRC}/install/pink-pony.desktop ${STAGEDIR}${PREFIX}/share/applications/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>