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

- Support staging

- Convert USE_GMAKE to USES
This commit is contained in:
Dmitry Marakasov 2013-10-18 23:22:03 +00:00
parent 2a9f9e5056
commit 57efaddf77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330789
2 changed files with 10 additions and 165 deletions

View File

@ -13,9 +13,9 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Futuristic overhead shooter
USES= gmake
USE_SDL= mixer image sdl
USE_GL= gl glu
USE_GMAKE= yes
BUILD_WRKSRC= ${WRKSRC}/src
@ -23,9 +23,13 @@ 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
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT=DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${ARCH} != "powerpc" && ${ARCH} != "sparc64"
@ -49,12 +53,9 @@ post-patch:
${WRKSRC}/src/sdb.h ${WRKSRC}/src/game.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/sdb ${PREFIX}/bin
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "levels models snd sprites" ${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/src/sdb ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC} && ${COPYTREE_SHARE} "levels models snd sprites" ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,156 +0,0 @@
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%%