diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-10-29 04:40:29 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-10-29 04:40:29 +0000 |
commit | 7560c00d681983156567d42aacc3d0bf39fba0ca (patch) | |
tree | 8574f3563a4fe9551144453644c806ddd752b945 /games/pioneer/Makefile | |
parent | 6cf4baf01660a276101a34837b3098919f248803 (diff) | |
download | ports-7560c00d681983156567d42aacc3d0bf39fba0ca.tar.gz ports-7560c00d681983156567d42aacc3d0bf39fba0ca.zip |
Pioneer Space Simulator.
Pioneer is a space adventure game set in the Milky Way galaxy at the turn of
the 31st century.
The game is open-ended, and you are free to explore the millions of star
systems in the game. You can land on planets, slingshot past gas giants, and
burn yourself to a crisp flying between binary star systems. You can try your
hand at piracy, make your fortune trading between systems, or do missions for
the various factions fighting for power, freedom or self-determination.
WWW: http://pioneerspacesim.net
WWW: http://github.com/pioneerspacesim/pioneer
PR: 193213
Submitted by: lightside@gmx.com
Notes
Notes:
svn path=/head/; revision=371661
Diffstat (limited to 'games/pioneer/Makefile')
-rw-r--r-- | games/pioneer/Makefile | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/games/pioneer/Makefile b/games/pioneer/Makefile new file mode 100644 index 000000000000..e72a84cc5fa9 --- /dev/null +++ b/games/pioneer/Makefile @@ -0,0 +1,105 @@ +# Created by: lightside <lightside@gmx.com> +# $FreeBSD$ + +PORTNAME= pioneer +PORTVERSION= 0.0.${GH_TAGNAME} +CATEGORIES= games +MASTER_SITES= http://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/ + +MAINTAINER= lightside@gmx.com +COMMENT= Space adventure game set in the Milky Way galaxy + +LICENSE= APACHE20 GPLv3 MIT ZLIB CCBYSAv3 DejaVu GLEW SIL +LICENSE_COMB= multi +LICENSE_NAME_CCBYSAv3= Creative Commons Attribution-ShareAlike 3.0 Unported license +LICENSE_NAME_DejaVu= Bitstream Vera and Arev fonts license +LICENSE_NAME_GLEW= The OpenGL Extension Wrangler Library license +LICENSE_NAME_SIL= SIL open font license version 1.1 +LICENSE_FILE_APACHE20= ${WRKSRC}/licenses/Apache-2.0.txt +LICENSE_FILE_CCBYSAv3= ${WRKSRC}/licenses/CC-BY-SA-3.0.txt +LICENSE_FILE_DejaVu= ${WRKSRC}/licenses/DejaVu-license.txt +LICENSE_FILE_GLEW= ${WRKSRC}/licenses/GLEW.txt +LICENSE_FILE_GPLv3= ${WRKSRC}/licenses/GPL-3.txt +LICENSE_FILE_SIL= ${WRKSRC}/licenses/SIL-1.1.txt +LICENSE_PERMS_CCBYSAv3= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept +LICENSE_PERMS_DejaVu= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept +LICENSE_PERMS_GLEW= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept +LICENSE_PERMS_SIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +BUILD_DEPENDS= ${LOCALBASE}/include/GL/glu.h:${PORTSDIR}/graphics/libGLU +LIB_DEPENDS= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \ + libfreetype.so:${PORTSDIR}/print/freetype2 \ + libvorbisfile.so:${PORTSDIR}/audio/libvorbis \ + libpng15.so:${PORTSDIR}/graphics/png \ + libassimp.so:${PORTSDIR}/multimedia/assimp + +GH_ACCOUNT= pioneerspacesim +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= 20141021 + +WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME} + +USES= gmake pkgconfig +USE_AUTOTOOLS= aclocal autoconf automake +AUTOMAKE_ARGS= --add-missing +USE_GL= gl +USE_SDL= image2 sdl2 + +GNU_CONFIGURE= yes +CONFIGURE_ENV= PIONEER_DATA_DIR="${DATADIR}/data" +CONFIGURE_ARGS= --with-version=${GH_TAGNAME} +EXTRACT_AFTER_ARGS= --exclude .gitignore + +PORTDATA= data +PORTDOCS= AUTHORS.txt Changelog.txt Modelviewer.txt Quickstart.txt README.txt + +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}.png + +DESKTOP_ENTRIES="Pioneer" "${COMMENT}" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ + "Game;Simulation;" false + +SUB_FILES= pkg-message +SUB_LIST= QUICKSTART_PATH="${QUICKSTART_PATH}" + +OPTIONS_DEFINE= DOCS MODELCOMPILER +OPTIONS_DEFAULT= MODELCOMPILER +MODELCOMPILER_DESC= Build/install modelcompiler tool +MODELCOMPILER_PLIST_FILES= bin/${PORTNAME}-modelcompiler + +.include <bsd.port.options.mk> + +.if ${OSVERSION} < 1000054 +USE_GCC= yes +.else +USES+= compiler:c++11-lang +CPPFLAGS+= -I${LOCALBASE}/include +.endif + +.if ${PORT_OPTIONS:MDOCS} +QUICKSTART_PATH= ${DOCSDIR} +.else +QUICKSTART_PATH= \ + https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME} +.endif + +post-patch: .SILENT + ${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ + ${WRKSRC}/configure.ac + ${REINPLACE_CMD} -e 's/modelviewer/${PORTNAME} -modelviewer/' \ + ${WRKSRC}/Modelviewer.txt +.if !${PORT_OPTIONS:MMODELCOMPILER} + ${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \ + ${WRKSRC}/src/Makefile.am +.endif + +post-install: +.if ${PORT_OPTIONS:MMODELCOMPILER} + @${MV} ${STAGEDIR}${PREFIX}/bin/modelcompiler ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-modelcompiler +.endif + cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/application-icon/pngs/pioneer-256x256.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + +.include <bsd.port.mk> |