1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to 0.2.0

- Remove USE_X_PREFIX
- Add games/dangerdeep-data dependency
This commit is contained in:
Jose Alonso Cardenas Marquez 2006-11-01 04:16:22 +00:00
parent 4097eac6ec
commit 73420e5027
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175988
3 changed files with 38 additions and 23 deletions

View File

@ -6,11 +6,11 @@
#
PORTNAME= dangerdeep
PORTVERSION= 0.1.1
PORTREVISION= 2
PORTVERSION= 0.2.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dangerdeep
MASTER_SITE_SUBDIR= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= Open source World War II German submarine simulation
@ -18,15 +18,14 @@ COMMENT= Open source World War II German submarine simulation
BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons
LIB_DEPENDS= fftw3.4:${PORTSDIR}/math/fftw3 \
execinfo.1:${PORTSDIR}/devel/libexecinfo
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/maps/default.xml:${PORTSDIR}/games/dangerdeep-data
USE_X_PREFIX= yes
USE_GL= yes
USE_SDL= sdl mixer image net
MAKE_ENV= CC="${CC}" CXX="${CXX}"
SCONS_ARGS= installbindir=${PREFIX}/bin installdatadir=${DATADIR}
PLIST= ${WRKDIR}/pkg-plist
PLIST_FILES= bin/dangerdeep bin/crosssection bin/damagemodel \
bin/oceantest bin/portal bin/viewmodel
PLIST_DIRS= %%DATADIR%%
@ -51,21 +50,11 @@ post-patch:
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS}
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC}/data && \
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
do-install:
@cd ${WRKSRC}/build/freebsd && \
${INSTALL_PROGRAM} dangerdeep crosssection damagemodel oceantest \
portal viewmodel ${PREFIX}/bin
cd ${WRKSRC}/data && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
${INSTALL_MAN} ${WRKSRC}/doc/man/dangerdeep.6 ${PREFIX}/man/man6
.if !defined(NOPORTDOCS)

View File

@ -1,3 +1,3 @@
MD5 (dangerdeep-0.1.1.tar.gz) = 7de20b4594c0fee8d3c1a281f686f943
SHA256 (dangerdeep-0.1.1.tar.gz) = de6334c88bac6ce1463e48444e550899a61ea85cecf8929a160d07e28f502a20
SIZE (dangerdeep-0.1.1.tar.gz) = 23831169
MD5 (dangerdeep/dangerdeep-0.2.0.tar.gz) = 3733507e99de5afc3c4172024cdfc61b
SHA256 (dangerdeep/dangerdeep-0.2.0.tar.gz) = ada47be2c7463ac73f0276b77bce7d5a16efc5c6316f70005af6dcf4e9908452
SIZE (dangerdeep/dangerdeep-0.2.0.tar.gz) = 3854086

View File

@ -1,6 +1,6 @@
--- SConstruct.orig Fri Apr 14 14:13:03 2006
+++ SConstruct Tue Sep 12 18:18:20 2006
@@ -77,10 +77,11 @@
--- SConstruct Thu Oct 12 17:14:02 2006
+++ SConstruct Thu Oct 12 17:16:36 2006
@@ -69,7 +69,7 @@
SDL_CONFIG = os.environ['SDL_CONFIG']
env.Replace(CC = os.environ['CC'])
env.Replace(CXX = os.environ['CXX'])
@ -9,7 +9,33 @@
libpath = [LOCALBASE + '/lib', X11BASE + '/lib']
gllibs = ['GL', 'GLU']
sdllibs = ['SDL_image']
+ extralibs = ['execinfo']
cpuinfof = os.popen('sysctl -n hw.instruction_sse')
@@ -78,7 +78,7 @@
cpuinfol = cpuinfof.readlines()
mmxsupported = False
ssesupported = False
- for i in cpuinfol:
+ for i in cpuinfol:
if i == '1\n':
mmxsupported = True
ssesupported = True
@@ -89,14 +89,15 @@
osspecificsrc += ['water_sse.cpp']
print 'Using x86 SSE/MMX optimizations.'
- env.Replace(CCFLAGS = os.environ['CFLAGS'])
+ env.Replace(CCFLAGS = os.environ['CFLAGS'])
if (debug == 1):
env.Append(CCFLAGS = '-g')
env.Append(CPPDEFINES = ['DEBUG'])
- env.Replace(CXXFLAGS = os.environ['CXXFLAGS'] + ' `' + SDL_CONFIG + ' --cflags`')
- env.Append(LINKFLAGS = '`' + SDL_CONFIG + ' --libs`')
- datadir = '/usr/local/share/dangerdeep'
- build_dir = 'freebsd'
+ env.Replace(CXXFLAGS = os.environ['CXXFLAGS'] + ' `' + SDL_CONFIG + ' --cflags`')
+ env.Append(LINKFLAGS = '`' + SDL_CONFIG + ' --libs`')
+ env.Append(LIBPATH = [LOCALBASE + '/lib', X11BASE + '/lib'])
+ datadir = '/usr/local/share/dangerdeep'
+ build_dir = 'freebsd'
if (os.system('grep glBindProgram ' + X11BASE + '/include/GL/gl*.h > /dev/null') == 0):
gllibdirs = [X11BASE + '/lib/', '/usr/lib/', LOCALBASE + '/lib/']