bcallah 900b7ca2e3 Import games/gnukem, an open source retro-style 2D scrolling platform
shooter game.
Big-endian fixes from Raphael Graf.
macppc testing and ok cwen@

Dave Gnukem is an open source retro-style 2D scrolling platform shooter,
inspired by and similar to Duke Nukem 1 (a famous original 1991 game
that launched the Duke Nukem series). It features an integrated level
editor. (Please note this is not a 'clone' or a 're-make'; it is
probably most akin to a parody.)
2019-05-04 02:00:17 +00:00

39 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2019/05/04 02:00:17 bcallah Exp $
COMMENT = open source retro-style 2D scrolling platform shooter game
DISTNAME = gnukem-1.0
CATEGORIES = games x11
HOMEPAGE = https://djoffe.com/gnukem/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# Dual licensed: MIT or GPLv2 only
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${COMPILER_LIBCXX} SDL SDL_mixer c m
# Upstream data fetching is ugh...
MASTER_SITES = https://mirrors.nycbug.org/pub/distfiles/
LIB_DEPENDS = devel/sdl-mixer
USE_GMAKE = Yes
ALL_TARGET = default
MAKE_FLAGS = CC="${CC}" CPP="${CXX}" \
CXXFLAGS="${CXXFLAGS}"
NO_TEST = Yes
# No install routine
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/gnukem/data
cd ${WRKSRC}/data && find * -type d -exec ${INSTALL_DATA_DIR} \
"${PREFIX}/share/gnukem/data/{}" \;
cd ${WRKSRC}/data && find * -type f -exec ${INSTALL_DATA} \
"{}" "${PREFIX}/share/gnukem/data/{}" \;
echo "#!/bin/sh\ncd ${TRUEPREFIX}/share/gnukem && ./davegnukem \"\$$@\"" >> ${WRKSRC}/gnukem.sh
${INSTALL_PROGRAM} ${WRKSRC}/davegnukem ${PREFIX}/share/gnukem
${INSTALL_SCRIPT} ${WRKSRC}/gnukem.sh ${PREFIX}/bin/davegnukem
.include <bsd.port.mk>