From 846e573f18ade4530b1e61312fd22a5cf22d950b Mon Sep 17 00:00:00 2001 From: jylefort Date: Sat, 2 Jul 2005 13:06:48 +0000 Subject: - Fix compilation [1] - Respect ${CXX} - When deinstalling, remove the score file if it is empty Reported by: kris [1] --- games/super_methane_brothers/Makefile | 7 +++---- games/super_methane_brothers/pkg-plist | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'games') diff --git a/games/super_methane_brothers/Makefile b/games/super_methane_brothers/Makefile index 8044ed05e62e..2e2578de3a82 100644 --- a/games/super_methane_brothers/Makefile +++ b/games/super_methane_brothers/Makefile @@ -7,6 +7,7 @@ PORTNAME= super_methane_brothers PORTVERSION= 1.4.7 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= methane @@ -19,8 +20,6 @@ COMMENT= A port of the Amiga platform game of the same name LIB_DEPENDS= clanCore-0.7:${PORTSDIR}/devel/clanlib-devel \ mikmod:${PORTSDIR}/audio/libmikmod -BROKEN= Does not compile - BUILD_WRKSRC= ${WRKSRC}/source/linux MAKEFILE= makefile @@ -36,8 +35,8 @@ IGNORE= does not compile on FreeBSD 4.X post-patch: @${REINPLACE_CMD} -e \ - 's|g\+\+|$${CXX}|; \ - s|gcc|$${CXX}|; \ + 's|g++|${CXX}|; s|gcc|${CXX}|; \ + s|\(clanCore-0.7\)|\1 clanSignals-0.7|; \ s|^\(METHANE_FLAGS =\)|\1 -I${X11BASE}/include|; \ s|^\(METHANE_LIBS =\)|\1 -L${X11BASE}/lib|' \ ${BUILD_WRKSRC}/makefile diff --git a/games/super_methane_brothers/pkg-plist b/games/super_methane_brothers/pkg-plist index 886517a91c72..c6cc349544db 100644 --- a/games/super_methane_brothers/pkg-plist +++ b/games/super_methane_brothers/pkg-plist @@ -22,3 +22,4 @@ bin/methane %%PORTDOCS%%%%DOCSDIR%%/todo %%PORTDOCS%%@dirrm %%DOCSDIR%%/html %%PORTDOCS%%@dirrm %%DOCSDIR%% +@unexec [ -s /var/games/methanescores ] || rm -f /var/games/methanescores -- cgit