diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-03-14 19:22:33 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-03-14 19:22:33 +0000 |
commit | 63df8b329dcc218d634487a0b2e72dfa41847144 (patch) | |
tree | a1c875383523d72419e67fe811fe7ca8a19582d3 /games/megamario | |
parent | f87895510869ee86581744482a4075b240c9eec1 (diff) | |
download | ports-63df8b329dcc218d634487a0b2e72dfa41847144.tar.gz ports-63df8b329dcc218d634487a0b2e72dfa41847144.zip |
Notes
Diffstat (limited to 'games/megamario')
-rw-r--r-- | games/megamario/Makefile | 13 | ||||
-rw-r--r-- | games/megamario/files/patch-Makefile | 30 |
2 files changed, 34 insertions, 9 deletions
diff --git a/games/megamario/Makefile b/games/megamario/Makefile index 30a133285cdf..feba96753f51 100644 --- a/games/megamario/Makefile +++ b/games/megamario/Makefile @@ -16,22 +16,20 @@ WRKSRC= ${WRKDIR}/${DISTNAME} EXTRACT_AFTER_ARGS= -d ${WRKSRC} USES= dos2unix gmake zip:infozip -DOS2UNIX_FILES= src/*.cpp src/*.h *.ini Makefile* *.txt *.desktop +DOS2UNIX_GLOB= *.cpp *.h *.ini Makefile* *.txt *.desktop USE_SDL= sdl image mixer ttf USE_GL= glu ALL_TARGET= ${PORTNAME} -MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} pre-extract: - ${MKDIR} ${WRKDIR}/${DISTNAME} - -PORTDOCS= CONTROLS.txt linux.txt readme.txt + @${MKDIR} ${WRKDIR}/${DISTNAME} +PORTDOCS= CONTROLS.txt readme.txt OPTIONS_DEFINE= DOCS post-patch: - @${REINPLACE_CMD} -e 's|/usr/share/pixmaps/megamario.png|${PORTNAME}|' \ - -e 's|Name=megamario|Name=Mega Mario|' \ + @${REINPLACE_CMD} -e 's|/usr/share/pixmaps/megamario.png|${PORTNAME}|; \ + s|Name=megamario|Name=Mega Mario|' \ ${WRKSRC}/${PORTNAME}.desktop @${REINPLACE_CMD} -e 's|slidebar.PNG|slidebar.png|' \ ${WRKSRC}/data/levels/Edit2/main ${WRKSRC}/data/levels/3_2/main @@ -40,6 +38,7 @@ post-patch: ${MV} $$i `echo $$i | ${SED} -e 's/PNG/png/;s/JPG/jpg/'`; done post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .for d in help mp3music screens @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) .endfor diff --git a/games/megamario/files/patch-Makefile b/games/megamario/files/patch-Makefile index 88855057ba64..93b29a67876f 100644 --- a/games/megamario/files/patch-Makefile +++ b/games/megamario/files/patch-Makefile @@ -1,5 +1,5 @@ ---- ./Makefile.orig 2014-01-13 00:20:07.000000000 +0100 -+++ ./Makefile 2014-01-13 00:30:43.000000000 +0100 +--- ./Makefile.orig 2014-03-14 18:14:24.974932178 +0000 ++++ ./Makefile 2014-03-14 18:19:52.624925473 +0000 @@ -1,8 +1,7 @@ -PREFIX = /home/opt DATADIR = $(PREFIX)/share/$(TARGET) @@ -11,3 +11,29 @@ DEFINES = -DDATADIR=\"$(DATADIR)/\" OBJS = src/bonus.o src/gamepad.o src/killerblume.o src/player.o \ src/bowser.o src/global.o src/levels.o src/spiny.o \ +@@ -22,17 +21,17 @@ + $(CXX) $(CXXFLAGS) $(DEFINES) -o $@ -c $< + + install: $(TARGET) +- rm -fr $(DATADIR) +- mkdir -p $(PREFIX)/bin +- mkdir -p $(PREFIX)/share +- install -p -m 755 $(TARGET) $(PREFIX)/bin +- cp -a data $(DATADIR) ++# rm -fr $(DATADIR) ++ mkdir -p $(DESTDIR)$(PREFIX)/bin ++ mkdir -p $(DESTDIR)$(PREFIX)/share ++ install -p -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin ++ cp -a data $(DESTDIR)$(DATADIR) + # fix broken permission <sigh> +- chmod 755 $(DATADIR)/gfx/tiles/pipes/left +- for i in `find $(DATADIR) -name "*.PNG"`; do \ ++ chmod 755 $(DESTDIR)$(DATADIR)/gfx/tiles/pipes/left ++ for i in `find $(DESTDIR)$(DATADIR) -name "*.PNG"`; do \ + mv $$i `echo $$i|sed s/PNG/png/`; \ + done +- for i in `find $(DATADIR) -name "*.JPG"`; do \ ++ for i in `find $(DESTDIR)$(DATADIR) -name "*.JPG"`; do \ + mv $$i `echo $$i|sed s/JPG/jpg/`; \ + done + |