2013-01-08 05:23:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2013/01/08 10:23:08 sthen Exp $
|
2012-07-17 17:29:50 -04:00
|
|
|
|
|
|
|
COMMENT = Enhanced Duke Nukem 3D engine
|
|
|
|
RDATE = 20120301
|
|
|
|
RTAG = 2394
|
|
|
|
DISTNAME = eduke32_src_${RDATE}-${RTAG}
|
|
|
|
PKGNAME = eduke32-2.0.0.${RTAG}
|
|
|
|
EXTRACT_SUFX = .tar.bz2
|
|
|
|
CATEGORIES = games x11 wip
|
|
|
|
|
|
|
|
HOMEPAGE = http://www.eduke32.com/
|
|
|
|
|
|
|
|
MAINTAINER = Ryan Freeman <ryan@slipgate.org>
|
|
|
|
|
|
|
|
# GPLv2, BUILD license and shareware data
|
|
|
|
PERMIT_PACKAGE_CDROM = "BUILD engine license is not compatible with GPLv2."
|
|
|
|
PERMIT_PACKAGE_FTP = "BUILD engine license is not compatible with GPLv2."
|
|
|
|
PERMIT_DISTFILES_CDROM ="BUILD engine license is not compatible with GPLv2."
|
|
|
|
PERMIT_DISTFILES_FTP = "BUILD engine license is not compatible with GPLv2."
|
|
|
|
|
|
|
|
BUILD_DEPENDS = archivers/unzip \
|
|
|
|
graphics/gdk-pixbuf2
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS += devel/nasm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
WANTLIB = SDL c m pthread stdc++ SDL_mixer>=3 vorbisfile vpx
|
|
|
|
|
|
|
|
LIB_DEPENDS = audio/libvorbis \
|
|
|
|
multimedia/libvpx \
|
|
|
|
devel/sdl \
|
2012-10-15 11:06:41 -04:00
|
|
|
devel/sdl-mixer
|
2012-07-17 17:29:50 -04:00
|
|
|
|
|
|
|
RUN_DEPENDS = games/duke3ddata
|
|
|
|
|
2013-01-08 05:23:08 -05:00
|
|
|
MASTER_SITES = http://dukeworld.duke4.net/eduke32/synthesis/old/${RDATE}-${RTAG}/ \
|
|
|
|
http://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
|
2012-07-17 17:29:50 -04:00
|
|
|
|
|
|
|
# make sure we can see compilation output, respect CC/CXX, don't strip!
|
|
|
|
MAKE_FLAGS = PRETTY_OUTPUT=0 CC="${CC}" CXX="${CXX}" DEBUGANYWAY=1
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
|
|
|
WRKDIST = ${WRKDIR}/eduke32_${RDATE}-${RTAG}/
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
# check for data files in correct location
|
|
|
|
@perl -pi -e "s,/usr/share/games/eduke32,${TRUEPREFIX}/share/duke3d," \
|
|
|
|
${WRKSRC}/source/astub.c
|
|
|
|
@perl -pi -e "s,/usr/share/games/eduke32,${TRUEPREFIX}/share/duke3d," \
|
|
|
|
${WRKSRC}/source/game.c
|
|
|
|
@perl -pi -e "s,./eduke32,eduke32," ${WRKSRC}/build/include/editor.h
|
|
|
|
# make plaintext files less annoying to read...
|
|
|
|
@perl -MExtUtils::Command -e dos2unix \
|
|
|
|
${WRKSRC}/tiles.cfg \
|
|
|
|
${WRKSRC}/names.h \
|
|
|
|
${WRKSRC}/GNU.TXT \
|
|
|
|
${WRKSRC}/buildlic.txt \
|
|
|
|
${WRKSRC}/samples/*.sample \
|
|
|
|
${WRKSRC}/samples/*.txt
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/eduke32 ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/mapster32 ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/duke3d
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/eduke32
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/eduke32
|
|
|
|
# mapster32 help files
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/m32help.hlp ${PREFIX}/share/duke3d/
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/SEHELP.HLP ${PREFIX}/share/duke3d/
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/STHELP.HLP ${PREFIX}/share/duke3d/
|
|
|
|
# mapster32 config and config header file
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/tiles.cfg ${PREFIX}/share/duke3d/
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/names.h ${PREFIX}/share/duke3d/
|
|
|
|
# eduke32/mapster32 licenses
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/GNU.TXT ${PREFIX}/share/doc/eduke32/
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/buildlic.txt ${PREFIX}/share/doc/eduke32/
|
|
|
|
# sample game mapping/modding data files
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/samples/* ${PREFIX}/share/examples/eduke32/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|