42 lines
979 B
Makefile
42 lines
979 B
Makefile
# Avoid future EPOCH bumps.
|
|
COMMENT = open source reimplementation of Jedi Academy game
|
|
DISTNAME = openjk-0.0.0.20210505
|
|
CATEGORIES = games x11
|
|
|
|
GH_ACCOUNT = JACoders
|
|
GH_PROJECT = OpenJK
|
|
GH_COMMIT = 5ce940643748eb6b11a84281b201001fbdc665fe
|
|
|
|
HOMEPAGE = https://openjk.org/
|
|
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL GLU SDL2 c jpeg m png z
|
|
|
|
# C++11
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
MODULES = devel/cmake
|
|
|
|
LIB_DEPENDS = devel/sdl2 \
|
|
graphics/jpeg \
|
|
graphics/png
|
|
|
|
NO_TEST = Yes
|
|
|
|
# Upstream left a .orig file in the repo
|
|
post-extract:
|
|
rm -f ${WRKSRC}/lib/SDL2/include/SDL_config_macosx.h.orig
|
|
|
|
pre-configure:
|
|
sed -i "s,-O3,-I${X11BASE}/include,g" ${WRKSRC}/CMakeLists.txt
|
|
|
|
post-install:
|
|
${SUBST_CMD} -c -m 555 ${FILESDIR}/jamp ${PREFIX}/bin/jamp
|
|
${SUBST_CMD} -c -m 555 ${FILESDIR}/jasp ${PREFIX}/bin/jasp
|
|
${SUBST_CMD} -c -m 555 ${FILESDIR}/openjkded ${PREFIX}/bin/openjkded
|
|
|
|
.include <bsd.port.mk>
|