mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
1b13452762
tricky for others to work on the ports tree, this will also bring more visible to portroach of those which are outdated
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
COMMENT = open source port of Cannon Fodder game
|
|
DISTNAME = openfodder-1.4.1
|
|
CATEGORIES = games x11
|
|
REVISION = 1
|
|
|
|
HOMEPAGE = https://openfodder.com/
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} SDL2 SDL2_mixer c m
|
|
|
|
# Upstream tarball is incomplete
|
|
SITES = https://mirrors.nycbug.org/pub/distfiles/
|
|
|
|
# C++14
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
LIB_DEPENDS = devel/sdl2-mixer
|
|
|
|
# Upstream all routine shoves everything into these two variables.
|
|
MAKE_FLAGS = CC="${CXX} ${CXXFLAGS} -c -std=c++14 -I./Source/ `sdl2-config --cflags`" \
|
|
LD="${CXX} ${LDFLAGS} obj/*.o `sdl2-config --libs` -lSDL2_mixer"
|
|
|
|
NO_TEST = Yes
|
|
|
|
# No upstream install routine.
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/OpenFodder
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/openfodder
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/openfodder
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Run/OpenFodder ${PREFIX}/share/OpenFodder
|
|
cd ${WRKSRC}/Run && find * -type d -exec ${INSTALL_DATA_DIR} \
|
|
"${PREFIX}/share/OpenFodder/{}" \;
|
|
cd ${WRKSRC}/Run && find * -type f -exec ${INSTALL_DATA} \
|
|
"{}" "${PREFIX}/share/OpenFodder/{}" \;
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Run/OpenFodder ${PREFIX}/share/OpenFodder
|
|
${SUBST_CMD} -c -m 755 ${FILESDIR}/OpenFodder ${PREFIX}/bin/OpenFodder
|
|
|
|
.include <bsd.port.mk>
|