2005-10-29 16:17:01 +02:00
|
|
|
# New ports collection makefile for: dangerdeep
|
|
|
|
# Date created: 2005-10-28
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dangerdeep
|
2007-08-18 01:17:41 +02:00
|
|
|
PORTVERSION= 0.3.0
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 9
|
2005-10-29 16:17:01 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/danger_from_the_deep-src/${PORTVERSION}
|
2006-11-01 05:16:22 +01:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2005-10-29 16:17:01 +02:00
|
|
|
|
2006-07-23 04:45:24 +02:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2005-10-29 16:17:01 +02:00
|
|
|
COMMENT= Open source World War II German submarine simulation
|
|
|
|
|
|
|
|
BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons
|
2011-10-17 12:08:33 +02:00
|
|
|
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 \
|
2006-05-09 12:04:21 +02:00
|
|
|
execinfo.1:${PORTSDIR}/devel/libexecinfo
|
2006-11-01 05:16:22 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/maps/default.xml:${PORTSDIR}/games/dangerdeep-data
|
2005-10-29 16:17:01 +02:00
|
|
|
|
2011-12-26 03:26:46 +01:00
|
|
|
MAKE_ENV= X11BASE=${LOCALBASE}
|
2005-10-29 16:17:01 +02:00
|
|
|
USE_GL= yes
|
|
|
|
USE_SDL= sdl mixer image net
|
|
|
|
|
|
|
|
SCONS_ARGS= installbindir=${PREFIX}/bin installdatadir=${DATADIR}
|
|
|
|
|
2006-05-09 12:04:21 +02:00
|
|
|
PLIST_FILES= bin/dangerdeep bin/crosssection bin/damagemodel \
|
|
|
|
bin/oceantest bin/portal bin/viewmodel
|
2005-10-29 16:17:01 +02:00
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
|
|
|
MAN6= dangerdeep.6
|
|
|
|
PORTDOCS= CREDITS README
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
SCONS_ARGS+= usex86sse=-1 # disable MMX/SSE on the build cluster
|
|
|
|
.endif
|
|
|
|
|
2011-12-21 09:15:09 +01:00
|
|
|
.if ${OSVERSION} >= 1000000
|
|
|
|
BROKEN= Does not compile on FreeBSD 10
|
|
|
|
.endif
|
|
|
|
|
2005-10-29 16:17:01 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/games/dangerdeep|${DATADIR}|; \
|
|
|
|
s|Linux|"Danger from the Deep"|' ${WRKSRC}/doc/man/dangerdeep.6
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11BASE|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/SConstruct
|
2005-10-29 16:17:01 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS}
|
|
|
|
|
|
|
|
do-install:
|
2006-05-09 12:04:21 +02:00
|
|
|
@cd ${WRKSRC}/build/freebsd && \
|
|
|
|
${INSTALL_PROGRAM} dangerdeep crosssection damagemodel oceantest \
|
|
|
|
portal viewmodel ${PREFIX}/bin
|
2005-10-29 16:17:01 +02:00
|
|
|
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/dangerdeep.6 ${PREFIX}/man/man6
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|