aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-09-02 16:44:00 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-09-02 16:44:00 +0000
commitd02fa5c3da35e1af2a5ce741d59cb3cba18dd029 (patch)
treea9f7807967d8adf021142d3536ae5b8b99dd08f7
parent6246c20c55c71f5e3973d44a9a52c81723be9440 (diff)
downloadports-d02fa5c3da35e1af2a5ce741d59cb3cba18dd029.tar.gz
ports-d02fa5c3da35e1af2a5ce741d59cb3cba18dd029.zip
Notes
-rw-r--r--games/kuklomenos/Makefile39
-rw-r--r--games/kuklomenos/distinfo6
-rw-r--r--games/kuklomenos/pkg-plist14
3 files changed, 46 insertions, 13 deletions
diff --git a/games/kuklomenos/Makefile b/games/kuklomenos/Makefile
index 1df7dea3dc43..dff26c922245 100644
--- a/games/kuklomenos/Makefile
+++ b/games/kuklomenos/Makefile
@@ -6,22 +6,41 @@
#
PORTNAME= kuklomenos
-PORTVERSION= 0.3.3.1
-PORTREVISION= 1
+PORTVERSION= 0.4
CATEGORIES= games
-MASTER_SITES= http://mbays.freeshell.org/kuklomenos/src/ LOCAL/chinsan/games
+MASTER_SITES= http://mbays.freeshell.org/kuklomenos/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple but challenging abstract shoot-em-up game
-USE_SDL= sdl gfx
+LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl
+OPTIONS= VORBIS "Enable Ogg/Vorbis support" on
+
+USE_SDL= sdl mixer
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` `freetype-config --cflags` -I${LOCALBASE}/include " \
- LDFLAGS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= --datadir=${DATADIR}
+
+CPPFLAGS= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_VORBIS)
+CONFIGURE_ARGS+=--disable-sound
+PLIST_SUB+= VORBIS="@comment "
+.else
+LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
+PLIST_SUB+= VORBIS=""
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/^sounds_DATA/s|Makefile.am||g' ${WRKSRC}/sounds/Makefile.in
-PLIST_FILES= bin/kuklomenos %%DATADIR%%/10x20.fnt %%DATADIR%%/7x13.fnt \
- %%DATADIR%%/amiga_machines.mod
-PLIST_DIRS= %%DATADIR%%
+.if ${OSVERSION} < 700000
+IGNORE= does not compile
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/kuklomenos/distinfo b/games/kuklomenos/distinfo
index 4679ecc290f8..3f04e5846a18 100644
--- a/games/kuklomenos/distinfo
+++ b/games/kuklomenos/distinfo
@@ -1,3 +1,3 @@
-MD5 (kuklomenos-0.3.3.1.tar.gz) = d32f3cabe4c01141fca233146e3ffb60
-SHA256 (kuklomenos-0.3.3.1.tar.gz) = 5075d7d2319c90c64be777506cfd006365f22d4743b0c80a33a2ceb1d7ed3043
-SIZE (kuklomenos-0.3.3.1.tar.gz) = 350449
+MD5 (kuklomenos-0.4.tar.gz) = 676fdec7389e6ed4bfffcfcb4f7d10a0
+SHA256 (kuklomenos-0.4.tar.gz) = 21e324a00b251bc3da13adcef6b9c9f94044bb60d180dbe047df03a315dc3d14
+SIZE (kuklomenos-0.4.tar.gz) = 361155
diff --git a/games/kuklomenos/pkg-plist b/games/kuklomenos/pkg-plist
new file mode 100644
index 000000000000..eb7ddc91e051
--- /dev/null
+++ b/games/kuklomenos/pkg-plist
@@ -0,0 +1,14 @@
+bin/kuklomenos
+%%DATADIR%%/fonts/10x20.fnt
+%%DATADIR%%/fonts/7x13.fnt
+%%VORBIS%%%%DATADIR%%/sounds/hum.ogg
+%%VORBIS%%%%DATADIR%%/sounds/invdie.ogg
+%%VORBIS%%%%DATADIR%%/sounds/invhit.ogg
+%%VORBIS%%%%DATADIR%%/sounds/mutilation.ogg
+%%VORBIS%%%%DATADIR%%/sounds/primed.ogg
+%%VORBIS%%%%DATADIR%%/sounds/shield.ogg
+%%VORBIS%%%%DATADIR%%/sounds/shot.ogg
+%%VORBIS%%%%DATADIR%%/sounds/spark.ogg
+%%VORBIS%%@dirrm %%DATADIR%%/sounds
+@dirrm %%DATADIR%%/fonts
+@dirrm %%DATADIR%%