aboutsummaryrefslogtreecommitdiff
path: root/games/abe
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2013-08-27 16:56:17 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2013-08-27 16:56:17 +0000
commitf934544f56078af40a3d6e048f6e5744f6da3d74 (patch)
tree20e349f9df047ddb1df6da6f49bef873cfcdb0f6 /games/abe
parentd3b627509c5376451385083559832bf7507c0400 (diff)
downloadports-f934544f56078af40a3d6e048f6e5744f6da3d74.tar.gz
ports-f934544f56078af40a3d6e048f6e5744f6da3d74.zip
Notes
Diffstat (limited to 'games/abe')
-rw-r--r--games/abe/Makefile48
-rw-r--r--games/abe/pkg-plist21
2 files changed, 32 insertions, 37 deletions
diff --git a/games/abe/Makefile b/games/abe/Makefile
index c36153486fc0..d2cd2249295d 100644
--- a/games/abe/Makefile
+++ b/games/abe/Makefile
@@ -1,44 +1,44 @@
-# New ports collection makefile for: games/abe
-# Date created: 8 Aug 2005
-# Whom: Alejandro Pulver <alejandro@varnet.biz>
-#
+# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
-#
PORTNAME= abe
PORTVERSION= 1.1
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= nemysis@gmx.ch
COMMENT= Abe's Amazing Adventure
LICENSE= GPLv2
-USE_GMAKE= yes
-USE_SDL= mixer sdl
+BUILD_DEPENDS= bmptopnm:${PORTSDIR}/graphics/netpbm
+USE_SDL= mixer sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-data-dir=${DATADIR}
+USE_GMAKE= yes
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
+PLIST_FILES= bin/${PORTNAME} \
+ share/pixmaps/${PORTNAME}.png
+
+PORTDATA= *
+PORTDOCS= AUTHORS ChangeLog README
+
+DESKTOP_ENTRIES="Abe's Amazing Avanture" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
+
OPTIONS_DEFINE= GOD_MODE OPTIMIZED_CFLAGS
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
GOD_MODE_DESC= Enable God Mode (toggle with 'g')
-post-install:
- @${MKDIR} ${DATADIR}
-.for d in images maps sounds
- @${CP} -R ${WRKSRC}/${d} ${DATADIR}
-.endfor
-
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MGOD_MODE} || !empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
post-patch:
+.if ${PORT_OPTIONS:MGOD_MODE} || !empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
. if ${PORT_OPTIONS:MGOD_MODE}
@${REINPLACE_CMD} -e 's|\(#define GOD_MODE\) 0|\1 1|' \
${WRKSRC}/src/Game.h
@@ -52,4 +52,20 @@ post-patch:
. endif
.endif
+post-build:
+ @(cd ${WRKSRC} && ${TAR} xf ./images/images.tar abe.bmp && \
+ ${LOCALBASE}/bin/bmptopnm abe.bmp | \
+ ${LOCALBASE}/bin/pamscale .2487 | ${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png)
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
+ ${MKDIR} ${DATADIR}
+.for d in images maps sounds
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
+.endfor
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
.include <bsd.port.mk>
diff --git a/games/abe/pkg-plist b/games/abe/pkg-plist
deleted file mode 100644
index f7085d01fbe9..000000000000
--- a/games/abe/pkg-plist
+++ /dev/null
@@ -1,21 +0,0 @@
-bin/abe
-%%DATADIR%%/images/images.tar
-%%DATADIR%%/maps/default.dat
-%%DATADIR%%/maps/intro.dat
-%%DATADIR%%/sounds/bubble.wav
-%%DATADIR%%/sounds/closed.wav
-%%DATADIR%%/sounds/death.wav
-%%DATADIR%%/sounds/door.wav
-%%DATADIR%%/sounds/game.ogg
-%%DATADIR%%/sounds/gem.wav
-%%DATADIR%%/sounds/intro.ogg
-%%DATADIR%%/sounds/jump.wav
-%%DATADIR%%/sounds/menu.wav
-%%DATADIR%%/sounds/object.wav
-%%DATADIR%%/sounds/platform.wav
-%%DATADIR%%/sounds/pop.wav
-%%DATADIR%%/sounds/spring.wav
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%/maps
-@dirrm %%DATADIR%%/images
-@dirrm %%DATADIR%%