1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/games/shockolate/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

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= 1
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>