aboutsummaryrefslogtreecommitdiff
path: root/games/pink-pony/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-08-26 00:00:52 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-08-26 00:00:52 +0000
commit10f0d1ea53b8564469395945c0a273ed4fc1ce1b (patch)
tree0bd6ef64ad272059c42f21d66a8f64cbe625015a /games/pink-pony/Makefile
parent87c54c1da8cf36cf5198a6758b58969174d8550f (diff)
downloadports-10f0d1ea53b8564469395945c0a273ed4fc1ce1b.tar.gz
ports-10f0d1ea53b8564469395945c0a273ed4fc1ce1b.zip
Notes
Diffstat (limited to 'games/pink-pony/Makefile')
-rw-r--r--games/pink-pony/Makefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/games/pink-pony/Makefile b/games/pink-pony/Makefile
index d56397e4fb42..ac991287814f 100644
--- a/games/pink-pony/Makefile
+++ b/games/pink-pony/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= pink-pony
-PORTVERSION= 1.1
+PORTVERSION= 1.2.1
CATEGORIES= games
MASTER_SITES= GOOGLE_CODE \
http://mirror.amdmi3.ru/distfiles/
@@ -17,7 +17,9 @@ COMMENT= Tron-like multiplayer racing game
LIB_DEPENDS= IL.2:${PORTSDIR}/graphics/devil \
protobuf.4:${PORTSDIR}/devel/protobuf \
glfw.0:${PORTSDIR}/graphics/glfw \
- Half.6:${PORTSDIR}/graphics/ilmbase
+ Half.6:${PORTSDIR}/graphics/ilmbase \
+ ftgl.2:${PORTSDIR}/graphics/ftgl \
+ sigc-2.0.0:${PORTSDIR}/devel/libsigc++20
BUILD_DEPENDS= ${LOCALBASE}/lib/libaudiere.so:${PORTSDIR}/audio/audiere
RUN_DEPENDS= ${LOCALBASE}/lib/libaudiere.so:${PORTSDIR}/audio/audiere
@@ -25,22 +27,27 @@ USE_BZIP2= yes
USE_SCONS= yes
USE_GL= gl glu
MAKE_JOBS_SAFE= yes
+SUB_FILES= pink-pony.sh
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= README
post-patch:
- @${REINPLACE_CMD} -Ee 's,(GLSL|levels|models|music|textures)/,${DATADIR}/&,' \
- ${WRKSRC}/pony.options ${WRKSRC}/PinkPony.cc ${WRKSRC}/lib/*.cc
- @${REINPLACE_CMD} -e 's|pony.options|${PREFIX}/etc/pink-pony.conf|' \
- ${WRKSRC}/PinkPony.cc
+ @${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} -e 's|/usr|${PREFIX}|' ${WRKSRC}/install/pink-pony.desktop
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/Pony ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/pony.options ${PREFIX}/etc/pink-pony.conf
+ ${INSTALL_PROGRAM} ${WRKSRC}/Pony ${PREFIX}/libexec/
cd ${WRKSRC} && ${COPYTREE_SHARE} \
- "GLSL levels models music textures" ${DATADIR}
+ "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/
+ ${MKDIR} ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/install/pink-pony.desktop ${PREFIX}/share/applications/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/