aboutsummaryrefslogtreecommitdiff
path: root/games/sdb
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2008-11-30 14:51:53 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2008-11-30 14:51:53 +0000
commit5a5215bc03a8b202b948913d8f65ae7992e5b9e5 (patch)
treee1a292f76e51e329d207103149cd6cd701adae19 /games/sdb
parent687c7eb2b59872bebc6a930ccf8367207eb41b7e (diff)
downloadports-5a5215bc03a8b202b948913d8f65ae7992e5b9e5.tar.gz
ports-5a5215bc03a8b202b948913d8f65ae7992e5b9e5.zip
Notes
Diffstat (limited to 'games/sdb')
-rw-r--r--games/sdb/Makefile57
-rw-r--r--games/sdb/distinfo3
-rw-r--r--games/sdb/files/patch-src_sdb.h11
-rw-r--r--games/sdb/pkg-descr5
-rw-r--r--games/sdb/pkg-plist156
5 files changed, 190 insertions, 42 deletions
diff --git a/games/sdb/Makefile b/games/sdb/Makefile
index 9fde542f07ad..10b72b061af1 100644
--- a/games/sdb/Makefile
+++ b/games/sdb/Makefile
@@ -7,54 +7,57 @@
PORTNAME= sdb
PORTVERSION= 1.0.2
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
-MASTER_SITES= http://sdb.gamecreation.org/ \
+MASTER_SITES= http://stage.gamecreation.org/shotgund/ \
http://www.amdmi3.ru/distfiles/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Futuristic overhead shooter
USE_SDL= mixer image sdl
-USE_GL= yes
+USE_GL= gl glu
USE_GMAKE= yes
BUILD_WRKSRC= ${WRKSRC}/src
-CPPFLAGS= `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
-LDFLAGS= `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib -lSDL_image -lSDL_mixer -lGL -lGLU
-MAKE_ARGS= CPP="${CXX}" CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" LIBS="${LDFLAGS}"
+CXXFLAGS+= `${SDL_CONFIG} --cflags`
+LDFLAGS= `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer -lGL -lGLU
+MAKE_ARGS= CPP="${CXX}" CXXFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}"
-PLIST_FILES= bin/sdb
-PLIST_DIRS= %%DATADIR%%
-PORTDOCS= README
+PORTDOCS= *
-PLIST= ${WRKDIR}/pkg-plist
-DATADIRS= levels models snd sprites
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != "powerpc" && ${ARCH} != "sparc64"
+PLIST_SUB+= MODEL_SUFFIX="md2"
+.else
+# big-endian requires different set of models
+DISTFILES+= shotgun-debugger-1.0.mac-ppc.zip
+EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
+PLIST_SUB+= MODEL_SUFFIX="md2b"
+
+post-extract:
+ ${RM} ${WRKSRC}/models/*
+ @cd ${WRKSRC}/models && \
+ ${RM} -f * && \
+ unzip -qj ${DISTDIR}/shotgun-debugger-1.0.mac-ppc.zip \
+ 'sdb-1.0-macosx/models/*.md2b'
+.endif
post-patch:
- @${REINPLACE_CMD} -e 's|<SDL/|<|' ${WRKSRC}/src/sdb.h
@${REINPLACE_CMD} -Ee 's,(levels|models|snd|sprites)/,${DATADIR}/&,g' \
${WRKSRC}/src/sdb.h ${WRKSRC}/src/game.cpp
-pre-install:
- @${RM} -f ${PLIST}
- @cd ${WRKSRC} && \
- ${FIND} ${DATADIRS} ! -type d | ${SORT} \
- | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
- ${FIND} ${DATADIRS} -type d ! -empty | ${SORT} -r \
- | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/sdb ${PREFIX}/bin
- cd ${WRKSRC} && \
- ${FIND} ${DATADIRS} -type d ! -empty -exec \
- ${MKDIR} "${DATADIR}/{}" \; && \
- ${FIND} ${DATADIRS} ! -type d -exec \
- ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
+ ${MKDIR} ${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "levels models snd sprites" ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/sdb/distinfo b/games/sdb/distinfo
index 720321269f40..32ccba859f99 100644
--- a/games/sdb/distinfo
+++ b/games/sdb/distinfo
@@ -1,3 +1,6 @@
MD5 (sdb-1.0.2.tar.gz) = efad97ca4f5b24f7603339743df4a6d2
SHA256 (sdb-1.0.2.tar.gz) = f50d641413324448d102d3a6e8c3c340a310e5f8a5656b2cb86036a449b46534
SIZE (sdb-1.0.2.tar.gz) = 10342311
+MD5 (shotgun-debugger-1.0.mac-ppc.zip) = 3b5ec7bc88c17ea8eb4042dce4effee1
+SHA256 (shotgun-debugger-1.0.mac-ppc.zip) = 7fd769397d57666c78c00ca1406a01de44e3066ede82e09d972ddc4e8068eb10
+SIZE (shotgun-debugger-1.0.mac-ppc.zip) = 12919543
diff --git a/games/sdb/files/patch-src_sdb.h b/games/sdb/files/patch-src_sdb.h
deleted file mode 100644
index eb9ff3507ba5..000000000000
--- a/games/sdb/files/patch-src_sdb.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/sdb.h.orig Sat Sep 10 18:02:32 2005
-+++ src/sdb.h Sat Sep 10 18:05:50 2005
-@@ -82,7 +82,7 @@
- #define PLAYER_DATA_FILE "player.dat"
-
- #define NEXT_TOK nextToken(line, start, end)
--#define S2F(x) strtof(x.c_str(), NULL)
-+#define S2F(x) ((float) strtod(x.c_str(), NULL))
- #define S2I(x) strtol(x.c_str(), NULL, 10)
-
- #define X 0
diff --git a/games/sdb/pkg-descr b/games/sdb/pkg-descr
index 3719837c68e7..f9bbfcaa843f 100644
--- a/games/sdb/pkg-descr
+++ b/games/sdb/pkg-descr
@@ -9,7 +9,4 @@ the world is rendered in three dimensions. Worlds are not tile-based, but
polygon-based -- rooms and hallways can be made to any shape imaginable,
allowing for some rather impressive architecture.
-WWW: http://sdb.gamecreation.org/
-
-- Dmitry Marakasov
-amdmi3@mail.ru
+WWW: http://www.gamecreation.org/games/shotgun-debugger
diff --git a/games/sdb/pkg-plist b/games/sdb/pkg-plist
new file mode 100644
index 000000000000..5f0103e92e15
--- /dev/null
+++ b/games/sdb/pkg-plist
@@ -0,0 +1,156 @@
+bin/sdb
+%%DATADIR%%/levels/level1.vl
+%%DATADIR%%/levels/level2.vl
+%%DATADIR%%/levels/level3.vl
+%%DATADIR%%/levels/level4.vl
+%%DATADIR%%/levels/level5.vl
+%%DATADIR%%/levels/level6.vl
+%%DATADIR%%/levels/level7.vl
+%%DATADIR%%/levels/level8.vl
+%%DATADIR%%/levels/leveltext1.dat
+%%DATADIR%%/levels/leveltext2.dat
+%%DATADIR%%/levels/leveltext3.dat
+%%DATADIR%%/levels/leveltext4.dat
+%%DATADIR%%/levels/leveltext5.dat
+%%DATADIR%%/levels/leveltext6.dat
+%%DATADIR%%/levels/leveltext7.dat
+%%DATADIR%%/levels/leveltext8.dat
+%%DATADIR%%/levels/leveltext9.dat
+%%DATADIR%%/models/armeddrone.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/barrel.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/box.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/gladiator.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/hunter.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/mib.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/one.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/player_legs.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/player_torso.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/turret.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/unarmedguard.%%MODEL_SUFFIX%%
+%%DATADIR%%/models/zero.%%MODEL_SUFFIX%%
+%%DATADIR%%/snd/alarm.wav
+%%DATADIR%%/snd/blackbubble2.ogg
+%%DATADIR%%/snd/botalert.wav
+%%DATADIR%%/snd/botexplode.wav
+%%DATADIR%%/snd/botparalyze.wav
+%%DATADIR%%/snd/botseesyou.wav
+%%DATADIR%%/snd/bullet-on-hard.wav
+%%DATADIR%%/snd/bullet-on-soft.wav
+%%DATADIR%%/snd/button.wav
+%%DATADIR%%/snd/changegun.wav
+%%DATADIR%%/snd/dd2.ogg
+%%DATADIR%%/snd/doorclose.wav
+%%DATADIR%%/snd/dooropen.wav
+%%DATADIR%%/snd/doorunlockopen.wav
+%%DATADIR%%/snd/esg.wav
+%%DATADIR%%/snd/explosion.wav
+%%DATADIR%%/snd/gren-bounce.wav
+%%DATADIR%%/snd/hepa-explode.wav
+%%DATADIR%%/snd/hepa.wav
+%%DATADIR%%/snd/jump.wav
+%%DATADIR%%/snd/land.wav
+%%DATADIR%%/snd/laser.wav
+%%DATADIR%%/snd/lasercharge.wav
+%%DATADIR%%/snd/lasercharged.wav
+%%DATADIR%%/snd/laserchargeloop.wav
+%%DATADIR%%/snd/launch.wav
+%%DATADIR%%/snd/launch2.wav
+%%DATADIR%%/snd/loop13.ogg
+%%DATADIR%%/snd/pexplode.wav
+%%DATADIR%%/snd/pfall.wav
+%%DATADIR%%/snd/phealingsurface.wav
+%%DATADIR%%/snd/phurt.wav
+%%DATADIR%%/snd/phurt2.wav
+%%DATADIR%%/snd/phurtsurface.wav
+%%DATADIR%%/snd/pickuphealth.wav
+%%DATADIR%%/snd/pickupitem.wav
+%%DATADIR%%/snd/pkilledbybullet.wav
+%%DATADIR%%/snd/reload.wav
+%%DATADIR%%/snd/rifle.wav
+%%DATADIR%%/snd/shotgun.wav
+%%DATADIR%%/snd/smallexplosion.wav
+%%DATADIR%%/snd/termclear.wav
+%%DATADIR%%/snd/termcursormove.wav
+%%DATADIR%%/snd/termselect.wav
+%%DATADIR%%/sprites/barrel.png
+%%DATADIR%%/sprites/beam1.png
+%%DATADIR%%/sprites/beam2.png
+%%DATADIR%%/sprites/bg2.png
+%%DATADIR%%/sprites/bit.png
+%%DATADIR%%/sprites/blaster.png
+%%DATADIR%%/sprites/border.png
+%%DATADIR%%/sprites/box.png
+%%DATADIR%%/sprites/bullet.png
+%%DATADIR%%/sprites/clip.png
+%%DATADIR%%/sprites/esg.png
+%%DATADIR%%/sprites/esgcell.png
+%%DATADIR%%/sprites/esgcharge.png
+%%DATADIR%%/sprites/esgpickup.png
+%%DATADIR%%/sprites/esgshockwave.png
+%%DATADIR%%/sprites/explosion1.png
+%%DATADIR%%/sprites/explosion2.png
+%%DATADIR%%/sprites/explosion3.png
+%%DATADIR%%/sprites/explosion4.png
+%%DATADIR%%/sprites/explosionpart.png
+%%DATADIR%%/sprites/font3.png
+%%DATADIR%%/sprites/glowparticle.png
+%%DATADIR%%/sprites/grenade.png
+%%DATADIR%%/sprites/grenadelive.png
+%%DATADIR%%/sprites/health.png
+%%DATADIR%%/sprites/hepa.png
+%%DATADIR%%/sprites/hepaclip.png
+%%DATADIR%%/sprites/hepapickup.png
+%%DATADIR%%/sprites/hex1.png
+%%DATADIR%%/sprites/hex2.png
+%%DATADIR%%/sprites/key1.png
+%%DATADIR%%/sprites/key2.png
+%%DATADIR%%/sprites/key3.png
+%%DATADIR%%/sprites/laser.png
+%%DATADIR%%/sprites/lasercell.png
+%%DATADIR%%/sprites/laserglow.png
+%%DATADIR%%/sprites/laserpickup.png
+%%DATADIR%%/sprites/light.png
+%%DATADIR%%/sprites/muzzleflash.png
+%%DATADIR%%/sprites/muzzleflash2.png
+%%DATADIR%%/sprites/orangeglow.png
+%%DATADIR%%/sprites/particle.png
+%%DATADIR%%/sprites/particle_blood.png
+%%DATADIR%%/sprites/particle_energy.png
+%%DATADIR%%/sprites/particle_hepa_spark.png
+%%DATADIR%%/sprites/particle_laser_spark.png
+%%DATADIR%%/sprites/particle_laser_spark2.png
+%%DATADIR%%/sprites/particle_metal.png
+%%DATADIR%%/sprites/particle_pinkspark.png
+%%DATADIR%%/sprites/particle_slime.png
+%%DATADIR%%/sprites/particle_wood.png
+%%DATADIR%%/sprites/pellet.png
+%%DATADIR%%/sprites/rifle.png
+%%DATADIR%%/sprites/riflepickup.png
+%%DATADIR%%/sprites/rifleshell.png
+%%DATADIR%%/sprites/scanline.png
+%%DATADIR%%/sprites/scanlines.png
+%%DATADIR%%/sprites/shadow.png
+%%DATADIR%%/sprites/shotgun.png
+%%DATADIR%%/sprites/shotgunammo.png
+%%DATADIR%%/sprites/shotgunpickup.png
+%%DATADIR%%/sprites/shotgunshell.png
+%%DATADIR%%/sprites/shrapnel.png
+%%DATADIR%%/sprites/skins/armedskin.png
+%%DATADIR%%/sprites/skins/barrelskin.png
+%%DATADIR%%/sprites/skins/fade.png
+%%DATADIR%%/sprites/skins/gladiatorskin.png
+%%DATADIR%%/sprites/skins/hunterskin.png
+%%DATADIR%%/sprites/skins/mibskin.png
+%%DATADIR%%/sprites/skins/playerskin.png
+%%DATADIR%%/sprites/skins/playerskin2.png
+%%DATADIR%%/sprites/skins/turretskin.png
+%%DATADIR%%/sprites/skins/unarmedskin.png
+%%DATADIR%%/sprites/smoke.png
+%%DATADIR%%/sprites/steelbox.png
+%%DATADIR%%/sprites/title.png
+@dirrm %%DATADIR%%/sprites/skins
+@dirrm %%DATADIR%%/sprites
+@dirrm %%DATADIR%%/snd
+@dirrm %%DATADIR%%/models
+@dirrm %%DATADIR%%/levels
+@dirrm %%DATADIR%%