diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-07 00:03:13 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-07 00:03:13 +0000 |
commit | 11e0f917a91e33780d8c132046902efd0d9507f0 (patch) | |
tree | a3780097382acfa074d0eb91152fcb61c2b85141 /games-puzzle/flobopuyo | |
parent | Remove old versions. (diff) | |
download | gentoo-2-11e0f917a91e33780d8c132046902efd0d9507f0.tar.gz gentoo-2-11e0f917a91e33780d8c132046902efd0d9507f0.tar.bz2 gentoo-2-11e0f917a91e33780d8c132046902efd0d9507f0.zip |
rework Makefile patch for bug 234011
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-puzzle/flobopuyo')
-rw-r--r-- | games-puzzle/flobopuyo/ChangeLog | 6 | ||||
-rw-r--r-- | games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch | 117 | ||||
-rw-r--r-- | games-puzzle/flobopuyo/flobopuyo-0.20-r1.ebuild | 11 |
3 files changed, 114 insertions, 20 deletions
diff --git a/games-puzzle/flobopuyo/ChangeLog b/games-puzzle/flobopuyo/ChangeLog index 86cae799c72b..3783ad275a82 100644 --- a/games-puzzle/flobopuyo/ChangeLog +++ b/games-puzzle/flobopuyo/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-puzzle/flobopuyo # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/ChangeLog,v 1.15 2008/06/25 18:57:51 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/ChangeLog,v 1.16 2008/08/07 00:03:12 mr_bones_ Exp $ + + 07 Aug 2008; Michael Sterrett <mr_bones_@gentoo.org> + files/flobopuyo-0.20-libs.patch, flobopuyo-0.20-r1.ebuild: + rework Makefile patch for bug 234011 25 Jun 2008; nixnut <nixnut@gentoo.org> flobopuyo-0.20-r1.ebuild: Stable on ppc wrt bug 228967 diff --git a/games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch b/games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch index f7e787e02df5..64cd0335ce9c 100644 --- a/games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch +++ b/games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch @@ -1,29 +1,52 @@ -Index: flobopuyo-0.20/Makefile -=================================================================== ---- flobopuyo-0.20.orig/Makefile -+++ flobopuyo-0.20/Makefile -@@ -49,7 +49,8 @@ LDFLAGS= +--- Makefile.orig 2004-10-08 18:41:12.000000000 -0400 ++++ Makefile 2008-08-06 19:48:47.000000000 -0400 +@@ -41,15 +41,13 @@ + ############## + + SDL_CONFIG=sdl-config +-CC=g++ +-CXX=g++ + +-CFLAGS= -DDATADIR=\"${DATADIR}\" +-LDFLAGS= ++CXXFLAGS+= -DDATADIR=\"${DATADIR}\" ifneq ($(PLATFORM), $(CYGWIN_VERSION)) - CFLAGS:=$(CFLAGS) `$(SDL_CONFIG) --cflags` -I/sw/include +-CFLAGS:=$(CFLAGS) `$(SDL_CONFIG) --cflags` -I/sw/include -LDFLAGS:=$(LDFLAGS) `$(SDL_CONFIG) --cflags --libs` ++CXXFLAGS:=$(CXXFLAGS) `$(SDL_CONFIG) --cflags` -I/sw/include +LDFLAGS:=$(LDFLAGS) +LIBS:=$(LIBS) `$(SDL_CONFIG) --cflags --libs` endif HFILES= HiScores.h IosException.h IosImgProcess.h IosVector.h PuyoCommander.h\ -@@ -78,7 +79,8 @@ endif +@@ -71,46 +69,46 @@ + ################ + # Mac OS X + ifeq ($(PLATFORM), Darwin) +-CFLAGS:=$(CFLAGS) -DMACOSX -UDATADIR ++CXXFLAGS:=$(CXXFLAGS) -DMACOSX -UDATADIR + endif + + ################ # Win32 ifeq ($(PLATFORM), $(CYGWIN_VERSION)) - CFLAGS:=$(CFLAGS) -mno-cygwin -mwindows -DWIN32 -DYY_NEVER_INTERACTIVE=1 -I$(WINSDLINCLUDE) +-CFLAGS:=$(CFLAGS) -mno-cygwin -mwindows -DWIN32 -DYY_NEVER_INTERACTIVE=1 -I$(WINSDLINCLUDE) -LDFLAGS:=$(LDFLAGS) -L$(WINSDLDEVLIBS) -lmingw32 -ljpeg -lzlib -lpng1 -lSDL_image -lSDL_mixer -lSDL -lSDLmain ++CXXFLAGS:=$(CXXFLAGS) -mno-cygwin -mwindows -DWIN32 -DYY_NEVER_INTERACTIVE=1 -I$(WINSDLINCLUDE) +LDFLAGS:=$(LDFLAGS) -L$(WINSDLDEVLIBS) +LIBS:=$(LIBS) -lmingw32 -ljpeg -lzlib -lpng1 -lSDL_image -lSDL_mixer -lSDL -lSDLmain endif ifeq ($(ENABLE_AUDIO), true) -@@ -90,7 +92,8 @@ ifeq ($(ENABLE_OPENGL), true) - CFLAGS:=$(CFLAGS) -DHAVE_OPENGL=1 +-CFLAGS:=$(CFLAGS) -DUSE_AUDIO=1 ++CXXFLAGS:=$(CXXFLAGS) -DUSE_AUDIO=1 + OBJFILES:=$(OBJFILES) + endif + + ifeq ($(ENABLE_OPENGL), true) +-CFLAGS:=$(CFLAGS) -DHAVE_OPENGL=1 ++CXXFLAGS:=$(CXXFLAGS) -DHAVE_OPENGL=1 OBJFILES:=$(OBJFILES) glSDL.o ifeq ($(PLATFORM), Linux) -LDFLAGS:=$(LDFLAGS) -lGL @@ -32,12 +55,82 @@ Index: flobopuyo-0.20/Makefile endif endif -@@ -110,7 +113,7 @@ CXXFLAGS=${CFLAGS} + ifeq ($(ENABLE_DGA), true) + ifeq ($(PLATFORM), Linux) +-CFLAGS:=$(CFLAGS) -DUSE_DGA=1 ++CXXFLAGS:=$(CXXFLAGS) -DUSE_DGA=1 + endif + endif + + ifeq ($(DEBUG), true) +-CFLAGS:=$(CFLAGS) -DDEBUG=1 -g ++CXXFLAGS:=$(CXXFLAGS) -DDEBUG=1 -g + LDFLAGS:=$(LDFLAGS) -g + endif + +-CXXFLAGS=${CFLAGS} +- all: prelude flobopuyo flobopuyo: ${OBJFILES} - @echo "[flobopuyo]" && g++ $(CFLAGS) $(LDFLAGS) -o flobopuyo -lSDL_mixer -lSDL_image ${OBJFILES} -+ @echo "[flobopuyo]" && $(CXX) $(CFLAGS) $(LDFLAGS) $(OBJFILES) -o flobopuyo $(LIBS) -lSDL_mixer -lSDL_image ++ @echo "[flobopuyo]" && $(CXX) $(LDFLAGS) $(OBJFILES) -o flobopuyo $(LIBS) -lSDL_mixer -lSDL_image @echo "--------------------------------------" @echo " Compilation finished" @[ "x`cat WARNINGS | wc -l`" != "x0" ] && echo -e "--------------------------------------\n There have been some warnings:\n" && cat WARNINGS && rm -f WARNINGS && echo "--------------------------------------" || true +@@ -121,14 +119,14 @@ + prelude: + @rm -f WARNINGS + @touch WARNINGS +- @echo "Compiling with CFLAGS=$(CFLAGS)" ++ @echo "Compiling with CXXFLAGS=$(CXXFLAGS)" + @echo "Compiling with LDFLAGS=$(LDFLAGS)" + + %.o:%.c +- @echo "[$@]" && $(CC) $(CFLAGS) -c $< 2>> WARNINGS || (cat WARNINGS && false) ++ @echo "[$@]" && $(CXX) $(CXXFLAGS) -c $< + + %.o:%.cpp +- @echo "[$@]" && $(CXX) $(CFLAGS) -c $< 2>> WARNINGS || (cat WARNINGS && false) ++ @echo "[$@]" && $(CXX) $(CXXFLAGS) -c $< + + PuyoDoomMelt.o:PuyoDoomMelt.c ${HFILES} + HiScores.o:HiScores.cpp HiScores.h preferences.h +@@ -155,10 +153,10 @@ + IosException.o:IosException.cpp + IosVector.o:IosVector.cpp + glSDL.o:glSDL.c +- @echo "[$@]" && $(CC) $(CFLAGS) -c $< 2>> EXT_WARNINGS ++ @echo "[$@]" && $(CXX) $(CXXFLAGS) -c $< + @rm -f EXT_WARNINGS + SDL_prim.o:SDL_prim.c +- @echo "[$@]" && $(CC) $(CFLAGS) -c $< 2>> EXT_WARNINGS ++ @echo "[$@]" && $(CXX) $(CXXFLAGS) -c $< + @rm -f EXT_WARNINGS + corona.o:corona.cpp + corona32.o:corona32.cpp +@@ -178,7 +176,6 @@ + rm -f .DS_Store */.DS_Store */*/.DS_Store .gdb_history + + install: flobopuyo +- strip flobopuyo + mkdir -p ${INSTALL_BINDIR} + mkdir -p ${INSTALL_DATADIR} + cp -r data/* ${INSTALL_DATADIR} +@@ -191,7 +188,7 @@ + chmod a+rx ${INSTALL_BINDIR}/flobopuyo + + flobopuyo-static: prelude ${OBJFILES} +- @echo "[flobopuyo-static]" && g++ $(CFLAGS) -o flobopuyo-static ${OBJFILES}\ ++ @echo "[flobopuyo-static]" && g++ $(CXXFLAGS) -o flobopuyo-static ${OBJFILES}\ + /sw/lib/libSDL_mixer.a /sw/lib/libvorbisfile.a /sw/lib/libvorbis.a /sw/lib/libogg.a /sw/lib/libsmpeg.a /sw/lib/libSDL_image.a /sw/lib/libjpeg.a /sw/lib/libpng.a -lz `$(SDL_CONFIG) --static-libs` + @echo "--------------------------------------" + @echo " Compilation finished" +@@ -207,7 +204,6 @@ + rm -rf $(bundle_name)/Contents/Resources/data/CVS $(bundle_name)/Contents/Resources/data/*/CVS + rm -rf $(bundle_name)/Contents/Resources/data/.xvpics $(bundle_name)/Contents/Resources/data/*/.xvpics + rm -f $(bundle_name)/Contents/Resources/data/.DS_Store $(bundle_name)/Contents/Resources/data/*/.DS_Store +- strip $(bundle_name)/Contents/MacOS/flobopuyo + + mac-package: bundle + mkdir -p $(macimage_name) diff --git a/games-puzzle/flobopuyo/flobopuyo-0.20-r1.ebuild b/games-puzzle/flobopuyo/flobopuyo-0.20-r1.ebuild index dba70e98228e..e54cbff5694c 100644 --- a/games-puzzle/flobopuyo/flobopuyo-0.20-r1.ebuild +++ b/games-puzzle/flobopuyo/flobopuyo-0.20-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/flobopuyo-0.20-r1.ebuild,v 1.6 2008/06/25 18:57:51 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/flobopuyo-0.20-r1.ebuild,v 1.7 2008/08/07 00:03:12 mr_bones_ Exp $ inherit toolchain-funcs eutils games @@ -39,19 +39,16 @@ src_unpack() { find . -type f -name ".*" -exec rm -f \{\} \; sed -i \ - -e "/strip/d" \ -e "s:^DATADIR=.*:DATADIR=\"${GAMES_DATADIR}/${PN}\":" \ -e "/^INSTALL_BINDIR/s:/\$(PREFIX)/games:${GAMES_BINDIR}:" \ - -e "s:^CFLAGS=:CFLAGS+=:" \ - -e "/^LDFLAGS=/d" \ Makefile \ || die "sed failed" } src_compile() { - use opengl && want_opengl=true || want_opengl=false - emake CC="$(tc-getCXX)" CXX="$(tc-getCXX)" \ - ENABLE_OPENGL="${want_opengl}" || die "emake failed" + emake CXX="$(tc-getCXX)" \ + ENABLE_OPENGL="$(use opengl && echo true || echo false)" \ + || die "emake failed" } src_install() { |