2012-11-28 09:54:30 +00:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2006-08-28 17:03:43 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= palomino
|
2014-01-03 18:59:37 +00:00
|
|
|
PORTVERSION= 20131231
|
2017-05-23 05:03:14 +00:00
|
|
|
PORTREVISION= 5
|
2006-08-28 17:03:43 +00:00
|
|
|
CATEGORIES= games
|
2016-01-01 11:49:07 +00:00
|
|
|
MASTER_SITES= SF/palomino-sim
|
2011-09-09 03:28:49 +00:00
|
|
|
DISTFILES= ${PORTNAME}_src_${PORTVERSION}.txz \
|
2014-01-03 18:59:37 +00:00
|
|
|
${PORTNAME}_data_misc_${MISC_VER}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}_data_models_${MODELS_VER}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}_data_sounds_${SOUNDS_VER}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}_data_terrain_${TERRAIN_VER}${EXTRACT_SUFX}
|
2006-08-28 17:03:43 +00:00
|
|
|
|
2014-10-31 16:11:33 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-11-30 20:41:57 +00:00
|
|
|
COMMENT= Action flight simulation computer program using OSG
|
2006-08-28 17:03:43 +00:00
|
|
|
|
2013-06-18 13:03:10 +00:00
|
|
|
LICENSE= GPLv2
|
2014-10-05 14:00:21 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE_GNU_GPL_2.txt
|
2013-06-18 13:03:10 +00:00
|
|
|
|
2016-04-01 14:00:51 +00:00
|
|
|
LIB_DEPENDS= libosg.so:graphics/osg
|
2008-09-23 20:55:00 +00:00
|
|
|
|
2017-06-25 21:07:58 +00:00
|
|
|
USES= alias cmake:noninja lua:51 tar:xz
|
2017-07-10 09:00:22 +00:00
|
|
|
USE_GL= gl glu
|
2008-09-23 20:55:00 +00:00
|
|
|
|
2010-04-16 11:19:02 +00:00
|
|
|
MISC_VER= 20091027
|
2009-06-17 16:43:28 +00:00
|
|
|
MODELS_VER= 20090615
|
2008-09-23 20:55:00 +00:00
|
|
|
SOUNDS_VER= 20080704
|
2008-10-23 12:40:52 +00:00
|
|
|
TERRAIN_VER= 20080206
|
2006-08-28 17:03:43 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2008-09-23 20:55:00 +00:00
|
|
|
|
2013-06-18 13:03:10 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2014-01-03 18:59:37 +00:00
|
|
|
DESKTOP_ENTRIES= "Palomino" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
2012-11-30 20:41:57 +00:00
|
|
|
|
2017-07-10 09:00:22 +00:00
|
|
|
OPTIONS_DEFINE= GUI PLIB SDL
|
|
|
|
OPTIONS_DEFAULT=GUI SDL
|
|
|
|
OPTIONS_SUB= yes
|
2012-06-12 16:35:45 +00:00
|
|
|
|
2017-07-10 09:00:22 +00:00
|
|
|
PLIB_DESC= Enable sound support through plib
|
|
|
|
PLIB_BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib
|
|
|
|
GUI_DESC= Enable FLTK GUI
|
|
|
|
GUI_LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
|
|
|
|
SDL_USE= SDL=sdl,mixer
|
2010-04-16 11:19:02 +00:00
|
|
|
|
2006-08-28 17:03:43 +00:00
|
|
|
post-patch:
|
2009-06-15 15:19:21 +00:00
|
|
|
@${FIND} ${WRKSRC}/CMakeModules -type f -print0 | ${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g'
|
2010-04-16 11:19:02 +00:00
|
|
|
@${REINPLACE_CMD} -e '/ rt / d' ${WRKSRC}/CMakeModules/libraries.cmake
|
2008-12-28 20:39:36 +00:00
|
|
|
@${REINPLACE_CMD} -e '/COMMAND/ s|lua|${LUA_CMD}|' \
|
|
|
|
${WRKSRC}/build/lua_bind/CMakeLists.txt
|
2008-09-23 20:55:00 +00:00
|
|
|
@${REINPLACE_CMD} -e '/FIND_PACKAGE(/ s|)| REQUIRED)|' \
|
2010-04-16 11:19:02 +00:00
|
|
|
${WRKSRC}/CMakeModules/libraries.cmake
|
|
|
|
@${REINPLACE_CMD} -e '/COMPILE_WITH_OSSIM/ d' ${WRKSRC}/CMakeLists.txt
|
2013-06-18 13:03:10 +00:00
|
|
|
|
2017-07-10 09:00:22 +00:00
|
|
|
# Please see MOVED entry devel/linux-js||2013-06-04
|
2010-04-16 11:19:02 +00:00
|
|
|
@${REINPLACE_CMD} -e '/COMPILE_WITH_LINUX_JOYSTICK/ d' ${WRKSRC}/CMakeLists.txt
|
2013-06-18 13:03:10 +00:00
|
|
|
|
2008-09-23 20:55:00 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|string sDataDir|&="${DATADIR}/data/"|'\
|
2013-06-18 13:03:10 +00:00
|
|
|
${WRKSRC}/src/base/conf.cc
|
2008-09-23 20:55:00 +00:00
|
|
|
@${REINPLACE_CMD} -e '/LUABIND_SCRIPTS_DIR/ s|"scripts"|"${DATADIR}/scripts"|' \
|
2013-06-18 13:03:10 +00:00
|
|
|
${WRKSRC}/src/lua_bind/defs.hh
|
2008-09-23 20:55:00 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|doc/html/|${DOCSDIR}/|' ${WRKSRC}/src/gui/gui.cc
|
|
|
|
|
2016-05-06 17:52:23 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/computeBound/computeBoundingBox/g' \
|
|
|
|
${WRKSRC}/src/object/object.cc \
|
|
|
|
${WRKSRC}/src/fx/partsys_medium.cc
|
|
|
|
|
|
|
|
@${REINPLACE_CMD} -e 's/CameraNode/Camera/g' \
|
|
|
|
${WRKSRC}/src/hud/hud.cc \
|
|
|
|
${WRKSRC}/src/hud/hud.hh \
|
|
|
|
${WRKSRC}/src/hud/hud_text.cc
|
|
|
|
|
2017-07-10 09:00:22 +00:00
|
|
|
post-patch-SDL-off:
|
|
|
|
@${REINPLACE_CMD} -e '/COMPILE_WITH_SDL/ d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
|
|
|
|
post-patch-PLIB-off:
|
|
|
|
@${REINPLACE_CMD} -e '/COMPILE_WITH_PLIB/ d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
|
|
|
|
post-patch-GUI-off:
|
|
|
|
@${REINPLACE_CMD} -e '/COMPILE_WITH_FLTK/ d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
|
2008-09-23 20:55:00 +00:00
|
|
|
post-install:
|
2013-10-23 00:19:37 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data scripts" ${STAGEDIR}${DATADIR})
|
2014-01-03 18:59:37 +00:00
|
|
|
# DOCS are used from within the game, so this is unconditional
|
2013-10-23 00:19:37 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@(cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
2012-11-30 20:41:57 +00:00
|
|
|
|
2017-07-10 09:00:22 +00:00
|
|
|
${LN} -sf ../../${DOCSDIR_REL}/images/palominoLogo.png \
|
2013-10-23 00:19:37 +00:00
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
2008-09-23 20:55:00 +00:00
|
|
|
|
2012-06-12 16:35:45 +00:00
|
|
|
.include <bsd.port.mk>
|