aboutsummaryrefslogtreecommitdiffstats
path: root/games/abe
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-01-20 03:48:41 +0800
committernemysis <nemysis@FreeBSD.org>2014-01-20 03:48:41 +0800
commit422779fa587b816e73cff5808ab0a8d73ae09c0e (patch)
treeba8e9bb8abf6822ac54312db92c58330e6ce8a24 /games/abe
parentbd5612fd2aca94e34f0db8397e4803987d692a12 (diff)
downloadfreebsd-ports-gnome-422779fa587b816e73cff5808ab0a8d73ae09c0e.tar.gz
freebsd-ports-gnome-422779fa587b816e73cff5808ab0a8d73ae09c0e.tar.zst
freebsd-ports-gnome-422779fa587b816e73cff5808ab0a8d73ae09c0e.zip
- Change Desktop entry file
- Add REINPLACE_CMD, fix src/MapIO.c - Break lines around 80 characters PR: ports/185758 Submitted by: Hardy Schumacher <hardy.schumacher@gmx.de>
Diffstat (limited to 'games/abe')
-rw-r--r--games/abe/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/games/abe/Makefile b/games/abe/Makefile
index ff89d03d105e..07aee7830657 100644
--- a/games/abe/Makefile
+++ b/games/abe/Makefile
@@ -26,8 +26,8 @@ MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
PORTDOCS= AUTHORS ChangeLog README
-DESKTOP_ENTRIES="Abe's Amazing Avanture" "${COMMENT}" "${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" false
+DESKTOP_ENTRIES="Abe's Amazing Avanture" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
OPTIONS_DEFINE= DOCS GOD_MODE OPTIMIZED_CFLAGS
OPTIONS_DEFAULT= GOD_MODE OPTIMIZED_CFLAGS
@@ -37,21 +37,25 @@ GOD_MODE_DESC= Enable God Mode (toggle with 'g')
post-patch:
.if ${PORT_OPTIONS:MGOD_MODE} || ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
-. if ${PORT_OPTIONS:MGOD_MODE}
+. if ${PORT_OPTIONS:MGOD_MODE}
@${REINPLACE_CMD} -e 's|#define GOD_MODE 0|#define GOD_MODE 1|' \
${WRKSRC}/src/Game.h
-. endif
-. if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+. endif
+. if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
@${REINPLACE_CMD} -e 's|-O2||g ; \
s|-fomit-frame-pointer||g ; \
s|-ffast-math||g ; \
s|-fexpensive-optimizations||g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-. endif
+. endif
.endif
+ @${REINPLACE_CMD} -e 's|%u|%zu|' \
+ ${WRKSRC}/src/MapIO.c
+
post-install:
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
.for d in images maps sounds
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})