thfr 33f90671af import shockolate, a source port of the engine for System Shock
ok solene@ (minor tweaks to README since then)

DESCR:
Shockolate - System Shock, but cross platform! Based on the source code for
PowerPC released by Night Dive Studios, Incorporated. Shockolate is a cross
platform source port of System Shock, using SDL2. This runs well on OSX, Linux,
and Windows right now, with some missing features that need reviving due to not
being included in the source code that was released.

The end goal for this project is something like what Chocolate Doom is for Doom:
an experience that closely mimics the original, but portable and with some
quality of life improvements including an OpenGL renderer and mod support!
2020-09-07 12:14:33 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2020/09/07 12:14:33 thfr Exp $
COMMENT = source port of 3D game System Shock
V = 0.7.8pl20200610
DISTNAME = shockolate-v${V}
PKGNAME = shockolate-${V}
GH_ACCOUNT = Interrupt
GH_PROJECT = systemshock
GH_COMMIT = 25081d5033ca7dde50d17cb76d4ffaf73de27bb0
CATEGORIES = games x11
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} GL GLU SDL2 SDL2_mixer c curses
WANTLIB += fluidsynth m readline
# C++11
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
LIB_DEPENDS = audio/fluidsynth \
devel/sdl2-mixer
CONFIGURE_ARGS = -DENABLE_FLUIDSYNTH=ON \
-DENABLE_SDL2=ON \
-DENABLE_SOUND=ON
CONFIGURE_ENV = SDL2_DIR=${LOCALBASE}
NO_TEST = Yes
do-gen:
${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
do-install:
${INSTALL_PROGRAM_DIR} ${PREFIX}/share/shockolate
${INSTALL_PROGRAM} ${WRKBUILD}/systemshock ${PREFIX}/share/shockolate/
${INSTALL_DATA_DIR} ${PREFIX}/share/shockolate/shaders
${INSTALL_DATA} ${WRKSRC}/shaders/* \
${PREFIX}/share/shockolate/shaders/
${SUBST_CMD} -c -m 755 ${FILESDIR}/systemshock.sh \
${PREFIX}/bin/systemshock
.include <bsd.port.mk>