freebsd-ports/games/dangerdeep/Makefile
Sunpoet Po-Chuan Hsieh dfe005ee44 Update USES=scons to specify scons of Python 2
- While I'm here, convert emulators/gem5 and games/marsnomercy to USES=scons
2020-05-25 18:33:44 +00:00

57 lines
1.6 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= dangerdeep
PORTVERSION= 0.3.0
PORTREVISION= 15
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/danger_from_the_deep-src/${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Open source World War II German submarine simulation
LIB_DEPENDS= libfftw3.so:math/fftw3
RUN_DEPENDS= dangerdeep-data>0:games/dangerdeep-data
USES= compiler gl scons:python2 sdl
USE_GL= yes
USE_SDL= sdl mixer image net
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
MAKE_ARGS= installbindir=${PREFIX}/bin installdatadir=${DATADIR}
MAKE_ENV= X11BASE=${LOCALBASE}
PLIST_FILES= bin/dangerdeep bin/crosssection bin/damagemodel \
bin/oceantest bin/portal bin/viewmodel \
man/man6/dangerdeep.6.gz
PORTDOCS= CREDITS README
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if defined(PACKAGE_BUILDING)
MAKE_ARGS+= usex86sse=-1 # disable MMX/SSE on the build cluster
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/games/dangerdeep|${DATADIR}|; \
s|Linux|"Danger from the Deep"|' ${WRKSRC}/doc/man/dangerdeep.6
@${REINPLACE_CMD} -e 's|/usr/X11BASE|${LOCALBASE}|g' \
${WRKSRC}/SConstruct
do-install:
@cd ${WRKSRC}/build/freebsd && \
${INSTALL_PROGRAM} dangerdeep crosssection damagemodel oceantest \
portal viewmodel ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/man/dangerdeep.6 ${STAGEDIR}${PREFIX}/man/man6
${GZIP_CMD} ${STAGEDIR}${PREFIX}/man/man6/dangerdeep.6
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>