mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Update URLs in MASTER_SITES and pkg-descr
- Remove legacy patch and reinplace - Simplify installation - Add pkg-plist to the port instead of generating it - Model files used in the game are endian sensitive, so use those from MAC OS X package on big endian machines
This commit is contained in:
parent
687c7eb2b5
commit
5a5215bc03
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223625
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
156
games/sdb/pkg-plist
Normal file
156
games/sdb/pkg-plist
Normal file
@ -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%%
|
Loading…
Reference in New Issue
Block a user