diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-11-22 23:53:35 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-11-22 23:53:35 +0000 |
commit | 7590a61c6e63c6d8a0d75a852e29550de64974b5 (patch) | |
tree | 8a884431f666c444919b202d697efe1e88915efc /games/abe | |
parent | 98852d1229a2f95274e631e82c1ab89a63d6e003 (diff) | |
download | ports-7590a61c6e63c6d8a0d75a852e29550de64974b5.tar.gz ports-7590a61c6e63c6d8a0d75a852e29550de64974b5.zip |
Notes
Diffstat (limited to 'games/abe')
-rw-r--r-- | games/abe/Makefile | 47 | ||||
-rw-r--r-- | games/abe/distinfo | 2 | ||||
-rw-r--r-- | games/abe/pkg-plist | 22 |
3 files changed, 43 insertions, 28 deletions
diff --git a/games/abe/Makefile b/games/abe/Makefile index e03503494c2c..ff89d03d105e 100644 --- a/games/abe/Makefile +++ b/games/abe/Makefile @@ -3,48 +3,45 @@ PORTNAME= abe PORTVERSION= 1.1 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= games -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \ + SF/nemysisfreebsdp/${CATEGORIES}/:icons +DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}.png:icons +EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= nemysis@FreeBSD.org COMMENT= Abe's Amazing Adventure LICENSE= GPLv2 -BUILD_DEPENDS= bmptopnm:${PORTSDIR}/graphics/netpbm - +USES= gmake 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} + "${PORTNAME}" "Game;ArcadeGame;" false -OPTIONS_DEFINE= GOD_MODE OPTIMIZED_CFLAGS -OPTIONS_DEFAULT= OPTIMIZED_CFLAGS +OPTIONS_DEFINE= DOCS GOD_MODE OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= GOD_MODE OPTIMIZED_CFLAGS GOD_MODE_DESC= Enable God Mode (toggle with 'g') -NO_STAGE= yes .include <bsd.port.options.mk> post-patch: -.if ${PORT_OPTIONS:MGOD_MODE} || !empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) +.if ${PORT_OPTIONS:MGOD_MODE} || ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} . if ${PORT_OPTIONS:MGOD_MODE} - @${REINPLACE_CMD} -e 's|\(#define GOD_MODE\) 0|\1 1|' \ + @${REINPLACE_CMD} -e 's|#define GOD_MODE 0|#define GOD_MODE 1|' \ ${WRKSRC}/src/Game.h . endif -. if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) +. if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} @${REINPLACE_CMD} -e 's|-O2||g ; \ s|-fomit-frame-pointer||g ; \ s|-ffast-math||g ; \ @@ -53,20 +50,14 @@ 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} + ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/ + .for d in images maps sounds - @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) .endfor -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/games/abe/distinfo b/games/abe/distinfo index 88ed29c1eebb..de283e4e521d 100644 --- a/games/abe/distinfo +++ b/games/abe/distinfo @@ -1,2 +1,4 @@ SHA256 (abe-1.1.tar.gz) = dfc4ea74c04c92175abc5c9d65cfa6aad218209854d87d87758878e303b677f7 SIZE (abe-1.1.tar.gz) = 3321075 +SHA256 (abe.png) = 5c1d7e87cdcecaf34f43759cd18351f4d999ff46884dd47c0229f0101a7ad829 +SIZE (abe.png) = 6131 diff --git a/games/abe/pkg-plist b/games/abe/pkg-plist new file mode 100644 index 000000000000..8eedb10c24d7 --- /dev/null +++ b/games/abe/pkg-plist @@ -0,0 +1,22 @@ +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 +share/pixmaps/abe.png +@dirrm %%DATADIR%%/sounds +@dirrm %%DATADIR%%/maps +@dirrm %%DATADIR%%/images +@dirrm %%DATADIR%% |