mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
4c2db26adf
MFH: 2021Q4
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# Created by: Vasily Postnicov <shamaz.mazum@gmail.com>
|
|
|
|
PORTNAME= shockolate
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.8.2-43
|
|
DISTVERSIONSUFFIX= -ga9eb1b93
|
|
PORTREVISION= 2
|
|
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>
|