1b42793aba
- Fails to compile with: error: no matching function for call to 'make_pair' Tried to build with llvm14 and llvm without any result - Pet portclippy Sponsored by: The FreeBSD Foundation
97 lines
3.1 KiB
Makefile
97 lines
3.1 KiB
Makefile
PORTNAME= palomino
|
|
PORTVERSION= 20131231
|
|
PORTREVISION= 10
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/palomino-sim
|
|
DISTFILES= ${PORTNAME}_src_${PORTVERSION}.txz \
|
|
${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}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Action flight simulation computer program using OSG
|
|
WWW= http://www.palomino3d.org/
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE_GNU_GPL_2.txt
|
|
BROKEN_FreeBSD_14= fails to compile: no matching function for call to 'make_pair'
|
|
|
|
LIB_DEPENDS= libosg.so:graphics/osg34
|
|
|
|
USES= alias compiler:c++11-lang cmake:insource,noninja gl lua:51 tar:xz
|
|
USE_CXXSTD= gnu++98
|
|
USE_GL= gl glu
|
|
|
|
DESKTOP_ENTRIES= "Palomino" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS GUI PLIB SDL
|
|
OPTIONS_DEFAULT=GUI SDL
|
|
OPTIONS_SUB= yes
|
|
|
|
GUI_DESC= Enable FLTK GUI
|
|
PLIB_DESC= Enable sound support through plib
|
|
|
|
GUI_LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
|
|
PLIB_BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib
|
|
SDL_USES= sdl
|
|
SDL_USE= SDL=sdl,mixer
|
|
|
|
MISC_VER= 20091027
|
|
MODELS_VER= 20090615
|
|
SOUNDS_VER= 20080704
|
|
TERRAIN_VER= 20080206
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC}/CMakeModules -type f -print0 | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g'
|
|
@${REINPLACE_CMD} -e '/ rt / d' ${WRKSRC}/CMakeModules/libraries.cmake
|
|
@${REINPLACE_CMD} -e '/COMMAND/ s|lua|${LUA_CMD}|' \
|
|
${WRKSRC}/build/lua_bind/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e '/FIND_PACKAGE(/ s|)| REQUIRED)|' \
|
|
${WRKSRC}/CMakeModules/libraries.cmake
|
|
@${REINPLACE_CMD} -e '/COMPILE_WITH_OSSIM/ d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
# Please see MOVED entry devel/linux-js||2013-06-04
|
|
@${REINPLACE_CMD} -e '/COMPILE_WITH_LINUX_JOYSTICK/ d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
@${REINPLACE_CMD} -e 's|string sDataDir|&="${DATADIR}/data/"|'\
|
|
${WRKSRC}/src/base/conf.cc
|
|
@${REINPLACE_CMD} -e '/LUABIND_SCRIPTS_DIR/ s|"scripts"|"${DATADIR}/scripts"|' \
|
|
${WRKSRC}/src/lua_bind/defs.hh
|
|
@${REINPLACE_CMD} -e 's|doc/html/|${DOCSDIR}/|' ${WRKSRC}/src/gui/gui.cc
|
|
|
|
@${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
|
|
|
|
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
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data scripts" ${STAGEDIR}${DATADIR})
|
|
# DOCS are used from within the game, so this is unconditional
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@(cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
${LN} -sf ../../${DOCSDIR_REL}/images/palominoLogo.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
.include <bsd.port.mk>
|