1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/games/shockolate/Makefile
Mark Linimon 001cec9205 Add compiler:c++11-lang to USES to fix build on GCC-based systems:
CMake Error in CMakeLists.txt:
  Target "systemshock" requires the language dialect "CXX11" (with compiler
  extensions), but CMake does not know the compile flags to use to enable it.

Approved by:	portmgr (tier-2 blanket)
2020-06-29 05:25:00 +00:00

42 lines
1.1 KiB
Makefile

# Created by: Vasily Postnicov <shamaz.mazum@gmail.com>
# $FreeBSD$
PORTNAME= shockolate
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.2-43
DISTVERSIONSUFFIX= -ga9eb1b93
CATEGORIES= games
MAINTAINER= shamaz.mazum@gmail.com
COMMENT= Open source and cross-platform remake of a cult game System Shock
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth \
libasound.so:audio/alsa-lib
USES= cmake compiler:c++11-lang gl pkgconfig sdl
USE_GL= gl glu
USE_SDL= sdl2 mixer2
USE_GITHUB= yes
GH_ACCOUNT= Interrupt
GH_PROJECT= systemshock
CMAKE_ON= ENABLE_SDL2 ENABLE_SOUND ENABLE_FLUIDSYNTH
post-patch: .SILENT
${REINPLACE_CMD} -e 's|%%DATADIR%%|${LOCALBASE}/share/shockolate/|' \
${WRKSRC}/src/Libraries/RES/Source/caseless.c \
${WRKSRC}/src/MacSrc/OpenGL.cc
${REINPLACE_CMD} -e 's|%%MIDIDIR%%|${LOCALBASE}/share/sounds/sf2/|' \
${WRKSRC}/src/MusicSrc/MusicDevice.c
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/systemshock ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC} && ${COPYTREE_SHARE} shaders ${STAGEDIR}${DATADIR})
${MKDIR} ${STAGEDIR}${DATADIR}/res
.include <bsd.port.mk>