aboutsummaryrefslogtreecommitdiffstats
path: root/games/defendguin
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2006-03-31 11:14:33 +0800
committerijliao <ijliao@FreeBSD.org>2006-03-31 11:14:33 +0800
commit5d53fe36cf115348214433b05a0f151a4838612e (patch)
tree148c0fbe0fb22780b50d5a86cbde043f09690753 /games/defendguin
parent9b3e0e6bb50260ab746407159e37237d57a624a7 (diff)
downloadfreebsd-ports-gnome-5d53fe36cf115348214433b05a0f151a4838612e.tar.gz
freebsd-ports-gnome-5d53fe36cf115348214433b05a0f151a4838612e.tar.zst
freebsd-ports-gnome-5d53fe36cf115348214433b05a0f151a4838612e.zip
upgrade to 0.0.11
PR: 95109 Submitted by: Ports Fury (with some modifications)
Diffstat (limited to 'games/defendguin')
-rw-r--r--games/defendguin/Makefile31
-rw-r--r--games/defendguin/distinfo6
-rw-r--r--games/defendguin/files/Makeflags37
-rw-r--r--games/defendguin/files/patch-aa52
-rw-r--r--games/defendguin/pkg-plist193
5 files changed, 28 insertions, 291 deletions
diff --git a/games/defendguin/Makefile b/games/defendguin/Makefile
index 1546853b3cd1..2a830a919285 100644
--- a/games/defendguin/Makefile
+++ b/games/defendguin/Makefile
@@ -6,19 +6,38 @@
#
PORTNAME= defendguin
-PORTVERSION= 0.0.10
-PORTREVISION= 2
+PORTVERSION= 0.0.11
CATEGORIES= games
-MASTER_SITES= http://www.nbswebfx.com/downloads/
+MASTER_SITES= ftp://ftp.billsgames.com/unix/x/defendguin/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Another shoot-the-Bill game
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
USE_SDL= mixer sdl
-USE_GMAKE= yes
-MAKE_ENV= MKDIR="${MKDIR}" \
- TAR="${TAR}"
+
+PLIST_FILES= bin/defendguin
MAN6= defendguin.6
+do-build:
+ cd ${WRKSRC} && ${CC} ${CFLAGS} -DDATA_PREFIX=\"${DATADIR}/\" \
+ `${SDL_CONFIG} --cflags` defendguin.c -o defendguin \
+ `${SDL_CONFIG} --libs` -lSDL_mixer
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/defendguin ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/defendguin.6 ${MAN6PREFIX}/man/man6
+ @${MKDIR} ${DATADIR}
+ ${TAR} -C ${WRKSRC}/../data -cf - . | \
+ ${TAR} -C ${DATADIR} --unlink -xf -
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
+
+post-install:
+ @${FIND} ${DATADIR} ! -type d | ${SED} \
+ -e "s,${PREFIX}/,," >> ${TMPPLIST}
+ @${FIND} ${DATADIR} -type d | ${SORT} -r | ${SED} \
+ -e "s,${PREFIX}/,@dirrm ," >> ${TMPPLIST}
+
.include <bsd.port.mk>
diff --git a/games/defendguin/distinfo b/games/defendguin/distinfo
index c5cb3085f863..ebc3d14d33ce 100644
--- a/games/defendguin/distinfo
+++ b/games/defendguin/distinfo
@@ -1,3 +1,3 @@
-MD5 (defendguin-0.0.10.tar.gz) = 83f3ac061be1ed21648c16665ac0984b
-SHA256 (defendguin-0.0.10.tar.gz) = 978098e934b5172d97d1e156c7f9ed4112c54011f45ec1d1c811e99f726dfc26
-SIZE (defendguin-0.0.10.tar.gz) = 2299261
+MD5 (defendguin-0.0.11.tar.gz) = c8040e39f199c5338625066025ec2395
+SHA256 (defendguin-0.0.11.tar.gz) = f445cd106f02eaa2352450a8f9f753532008726774be9e1b7ce79c5146668d7d
+SIZE (defendguin-0.0.11.tar.gz) = 2233817
diff --git a/games/defendguin/files/Makeflags b/games/defendguin/files/Makeflags
deleted file mode 100644
index de83567d2f66..000000000000
--- a/games/defendguin/files/Makeflags
+++ /dev/null
@@ -1,37 +0,0 @@
-# This file contains the template for Makeflags
-
-SYSTEM = FreeBSD
-FEATURES = -DASYNCHRONOUS_IO -DUSE_POSIX_SIGNALS -DUNSIGNED_AUDIO_DATA -DFORCE_XSHM -DNETPLAY
-
-LOGIC = netlogic
-
-XPMINCLUDE =
-XPMLINKDIR =
-
-BINDIR = ${PREFIX}/bin
-LIBDIR = ${PREFIX}/share/Maelstrom
-DATAFILES = Images/*.icon Images/*.cicn "Maelstrom Fonts" \
- "Maelstrom Sounds" "Maelstrom Sprites"
-
-OBJS = main.o framebuf.o v_framebuf.o x11_framebuf.o vga_framebuf.o \
- dga_framebuf.o fontserv.o sound.o Mac_Resource.o imagedump.o \
- init.o $(LOGIC)/$(LOGIC).o \
- controls.o scores.o dialog.o fastrand.o netscore.o checksum.o \
- Utils.o shared.o myerror.o
-SOUNDOBJS = Maelstrom_sound.o Mac_Resource.o soundres.o mixer.o shared.o myerror.o
-
-X11INCLUDE = -I${X11BASE}/include
-INCLUDES = -I$(LOGIC) $(X11INCLUDE) $(XPMINCLUDE)
-CFLAGS += $(INCLUDES) $(FEATURES) \
- -pedantic -DSYSTEM=\"$(SYSTEM)\" -DLIBDIR=\"$(LIBDIR)\"
-EXTRALIBS =
-X11LINKDIR = -L${X11BASE}/lib
-X11LIBS = -lXpm $(XPMLINKDIR) -lX11 -lXext $(X11LINKDIR)
-CSUMLIB =
-LIBS = $(EXTRALIBS) $(X11LIBS) $(CSUMLIB)
-SOUNDLIBS =
-
-INSTALL = install
-
-all: $(MAELSTROM)
-
diff --git a/games/defendguin/files/patch-aa b/games/defendguin/files/patch-aa
deleted file mode 100644
index ddc6d4aea1dc..000000000000
--- a/games/defendguin/files/patch-aa
+++ /dev/null
@@ -1,52 +0,0 @@
-
-$FreeBSD$
-
---- Makefile.orig Sun Jan 6 03:09:37 2002
-+++ Makefile Tue Mar 5 15:11:49 2002
-@@ -9,9 +9,9 @@
-
- # User-definable stuff:
-
--CFLAGS=-Wall -O2
-+CFLAGS?=-Wall -O2
- #DATA_PREFIX=$(PWD)/data/
--PREFIX=/usr/local
-+PREFIX?=/usr/local
- MAN_PREFIX=$(PREFIX)
- BIN_PREFIX=$(PREFIX)/bin
- DATA_PREFIX=$(PREFIX)/share/defendguin/
-@@ -20,11 +20,11 @@
-
- # Other definitions:
-
--SDL_CFLAGS := $(shell sdl-config --cflags)
--SDL_LDFLAGS := $(shell sdl-config --libs) -L/usr/X11R6/lib
--MIXER=-lSDL_mixer
-+SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
-+SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
-+MIXER=-lSDL_mixer -lsmpeg
- NOSOUNDFLAG=__SOUND
--CFLAGS=-Wall $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) \
-+CFLAGS+=-Wall $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) \
- -DJOY_$(JOY)
- SDL_LIB=$(SDL_LDFLAGS) $(MIXER)
-
-@@ -37,13 +37,11 @@
- make defendguin MIXER= NOSOUNDFLAG=NOSOUND
-
- install: defendguin
-- install -d $(DATA_PREFIX)
-- cp -R data/* $(DATA_PREFIX)
-- chmod -R a+rX,g-w,o-w $(DATA_PREFIX)
-- cp defendguin $(BIN_PREFIX)/
-- chmod a+rx,g-w,o-w $(BIN_PREFIX)/defendguin
-- cp defendguin.6 $(MAN_PREFIX)/man/man6/
-- chmod a+rx,g-w,o-w $(MAN_PREFIX)/man/man6/defendguin.6
-+ $(MKDIR) $(DATA_PREFIX)
-+ cd data; tar --exclude .xvpics -cf - . | \
-+ (cd $(DATA_PREFIX); ${TAR} --unlink -xf - )
-+ $(BSD_INSTALL_PROGRAM) defendguin $(BIN_PREFIX)/
-+ $(BSD_INSTALL_MAN) defendguin.6 $(MAN_PREFIX)/man/man6/
-
- uninstall:
- -rm -r $(DATA_PREFIX)
diff --git a/games/defendguin/pkg-plist b/games/defendguin/pkg-plist
deleted file mode 100644
index 06745299b800..000000000000
--- a/games/defendguin/pkg-plist
+++ /dev/null
@@ -1,193 +0,0 @@
-bin/defendguin
-share/defendguin/images/baiter/baiter0.bmp
-share/defendguin/images/baiter/baiter1.bmp
-share/defendguin/images/baiter/baiter2.bmp
-share/defendguin/images/baiter/baiter3.bmp
-share/defendguin/images/baiter/baiter4.bmp
-share/defendguin/images/bomber/bomber-bulge0.bmp
-share/defendguin/images/bomber/bomber-bulge1.bmp
-share/defendguin/images/bomber/bomber.bmp
-share/defendguin/images/bomber/mine-flash.bmp
-share/defendguin/images/bomber/mine-pop.bmp
-share/defendguin/images/bomber/mine.bmp
-share/defendguin/images/bullet/bullet0.bmp
-share/defendguin/images/bullet/bullet1.bmp
-share/defendguin/images/bullet/bullet2.bmp
-share/defendguin/images/bullet/bullet3.bmp
-share/defendguin/images/bullet/bullet4.bmp
-share/defendguin/images/evilbill/evilbill-hurt1.bmp
-share/defendguin/images/evilbill/evilbill-hurt2.bmp
-share/defendguin/images/evilbill/evilbill-shoot.bmp
-share/defendguin/images/evilbill/evilbill1.bmp
-share/defendguin/images/evilbill/evilbill2.bmp
-share/defendguin/images/evilbill/flame1.bmp
-share/defendguin/images/evilbill/flame2.bmp
-share/defendguin/images/evilbill/flame3.bmp
-share/defendguin/images/l2r.sh
-share/defendguin/images/land/center.bmp
-share/defendguin/images/land/left.bmp
-share/defendguin/images/land/right.bmp
-share/defendguin/images/loader/loading-text.bmp
-share/defendguin/images/loader/loading.bmp
-share/defendguin/images/loader/press-a-key.bmp
-share/defendguin/images/mutant/mutant0.bmp
-share/defendguin/images/mutant/mutant1.bmp
-share/defendguin/images/pod/pod.bmp
-share/defendguin/images/pod/pod0.bmp
-share/defendguin/images/pod/pod1.bmp
-share/defendguin/images/pod/pod2.bmp
-share/defendguin/images/points/100.bmp
-share/defendguin/images/points/1000.bmp
-share/defendguin/images/points/150.bmp
-share/defendguin/images/points/200.bmp
-share/defendguin/images/points/250.bmp
-share/defendguin/images/ship/disco-1.bmp
-share/defendguin/images/ship/disco-2.bmp
-share/defendguin/images/ship/flame-left-0.bmp
-share/defendguin/images/ship/flame-left-1.bmp
-share/defendguin/images/ship/flame-right-0.bmp
-share/defendguin/images/ship/flame-right-1.bmp
-share/defendguin/images/ship/lasers.bmp
-share/defendguin/images/ship/ship-left-dying.bmp
-share/defendguin/images/ship/ship-left.bmp
-share/defendguin/images/ship/ship-left2.bmp
-share/defendguin/images/ship/ship-right-dying.bmp
-share/defendguin/images/ship/ship-right.bmp
-share/defendguin/images/ship/ship-right2.bmp
-share/defendguin/images/ship/ship-win-0.bmp
-share/defendguin/images/ship/ship-win-1.bmp
-share/defendguin/images/ship/ship-win-2.bmp
-share/defendguin/images/status/catch-the-penguinoid.bmp
-share/defendguin/images/status/circle.bmp
-share/defendguin/images/status/circle.ppm
-share/defendguin/images/status/game-over.bmp
-share/defendguin/images/status/get-ready.bmp
-share/defendguin/images/status/level-bonus.bmp
-share/defendguin/images/status/map-alert.bmp
-share/defendguin/images/status/map-baiter.bmp
-share/defendguin/images/status/map-bomber.bmp
-share/defendguin/images/status/map-evilbill.bmp
-share/defendguin/images/status/map-land.bmp
-share/defendguin/images/status/map-mine.bmp
-share/defendguin/images/status/map-mutant.bmp
-share/defendguin/images/status/map-peng.bmp
-share/defendguin/images/status/map-pod.bmp
-share/defendguin/images/status/map-ship.bmp
-share/defendguin/images/status/map-swarmer.bmp
-share/defendguin/images/status/map-ufo.bmp
-share/defendguin/images/status/no-bonus.bmp
-share/defendguin/images/status/numbers.bmp
-share/defendguin/images/status/option-text.bmp
-share/defendguin/images/status/penguinoid-dropped.bmp
-share/defendguin/images/status/penguinoid-in-trouble.bmp
-share/defendguin/images/status/penguinoid-mutated.bmp
-share/defendguin/images/status/penguinoid-saved.bmp
-share/defendguin/images/status/penguinoid-shot.bmp
-share/defendguin/images/status/planet-destroyed.bmp
-share/defendguin/images/status/ships.bmp
-share/defendguin/images/status/smart-bomb.bmp
-share/defendguin/images/status/status-area.bmp
-share/defendguin/images/swarmer/swarmer.bmp
-share/defendguin/images/title/arrow0.bmp
-share/defendguin/images/title/arrow1.bmp
-share/defendguin/images/title/arrow2.bmp
-share/defendguin/images/title/one-player.bmp
-share/defendguin/images/title/options.bmp
-share/defendguin/images/title/quit.bmp
-share/defendguin/images/title/starfield.bmp
-share/defendguin/images/title/title.bmp
-share/defendguin/images/title/two-players.bmp
-share/defendguin/images/tux/fall0.bmp
-share/defendguin/images/tux/fall1.bmp
-share/defendguin/images/tux/l0.bmp
-share/defendguin/images/tux/l1.bmp
-share/defendguin/images/tux/l2.bmp
-share/defendguin/images/tux/l3.bmp
-share/defendguin/images/tux/l4.bmp
-share/defendguin/images/tux/l5.bmp
-share/defendguin/images/tux/l6.bmp
-share/defendguin/images/tux/l7.bmp
-share/defendguin/images/tux/lflag.bmp
-share/defendguin/images/tux/r0.bmp
-share/defendguin/images/tux/r1.bmp
-share/defendguin/images/tux/r2.bmp
-share/defendguin/images/tux/r3.bmp
-share/defendguin/images/tux/r4.bmp
-share/defendguin/images/tux/r5.bmp
-share/defendguin/images/tux/r6.bmp
-share/defendguin/images/tux/r7.bmp
-share/defendguin/images/tux/rflag.bmp
-share/defendguin/images/ufo/beam0.bmp
-share/defendguin/images/ufo/beam1.bmp
-share/defendguin/images/ufo/beam2.bmp
-share/defendguin/images/ufo/beam3.bmp
-share/defendguin/images/ufo/ufo0.bmp
-share/defendguin/images/ufo/ufo1.bmp
-share/defendguin/music/ants.mod
-share/defendguin/music/blowmind.mod
-share/defendguin/music/child.mod
-share/defendguin/music/confusio.mod
-share/defendguin/music/easytrip.mod
-share/defendguin/music/no!inhi1.mod
-share/defendguin/music/summerpa.mod
-share/defendguin/music/wormhole.mod
-share/defendguin/sounds/baiter.wav
-share/defendguin/sounds/bullet.wav
-share/defendguin/sounds/evilbill/die.wav
-share/defendguin/sounds/evilbill/hurt.wav
-share/defendguin/sounds/evilbill/intro.wav
-share/defendguin/sounds/evilbill/low.wav
-share/defendguin/sounds/evilbill/mine.wav
-share/defendguin/sounds/evilbill/shoot.wav
-share/defendguin/sounds/evilbill/success1.wav
-share/defendguin/sounds/evilbill/success2.wav
-share/defendguin/sounds/evilbill/success3.wav
-share/defendguin/sounds/explode.wav
-share/defendguin/sounds/gameover/darn.wav
-share/defendguin/sounds/gameover/finish.wav
-share/defendguin/sounds/gameover/lose.wav
-share/defendguin/sounds/materialize.wav
-share/defendguin/sounds/pause.wav
-share/defendguin/sounds/peng/capture.wav
-share/defendguin/sounds/peng/drop0.wav
-share/defendguin/sounds/peng/drop1.wav
-share/defendguin/sounds/peng/drop2.wav
-share/defendguin/sounds/peng/kill.wav
-share/defendguin/sounds/peng/mutate.wav
-share/defendguin/sounds/peng/save.wav
-share/defendguin/sounds/peng/splat.wav
-share/defendguin/sounds/planet_death.wav
-share/defendguin/sounds/ship/die1.wav
-share/defendguin/sounds/ship/die2.wav
-share/defendguin/sounds/ship/laser.wav
-share/defendguin/sounds/ship/oneup.wav
-share/defendguin/sounds/ship/smartbomb.wav
-share/defendguin/sounds/ship/thrust.wav
-share/defendguin/sounds/swarmers.wav
-share/defendguin/sounds/title/confirm.wav
-share/defendguin/sounds/title/impatience.wav
-share/defendguin/sounds/title/select.wav
-@dirrm share/defendguin/sounds/title
-@dirrm share/defendguin/sounds/ship
-@dirrm share/defendguin/sounds/peng
-@dirrm share/defendguin/sounds/gameover
-@dirrm share/defendguin/sounds/evilbill
-@dirrm share/defendguin/sounds
-@dirrm share/defendguin/music
-@dirrm share/defendguin/images/ufo
-@dirrm share/defendguin/images/tux
-@dirrm share/defendguin/images/title
-@dirrm share/defendguin/images/swarmer
-@dirrm share/defendguin/images/status
-@dirrm share/defendguin/images/ship
-@dirrm share/defendguin/images/points
-@dirrm share/defendguin/images/pod
-@dirrm share/defendguin/images/mutant
-@dirrm share/defendguin/images/loader
-@dirrm share/defendguin/images/land
-@dirrm share/defendguin/images/evilbill
-@dirrm share/defendguin/images/bullet
-@dirrm share/defendguin/images/bomber
-@dirrm share/defendguin/images/baiter
-@dirrm share/defendguin/images
-@dirrm share/defendguin