diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-03-20 20:18:17 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-03-20 20:18:17 +0000 |
commit | 020a5bc4ec7c45df7ce0208c265e794ae0a68846 (patch) | |
tree | 5dfdfcc3c63d99e8c49f78fb59b2a85fe0632919 /games-puzzle | |
parent | Stable on sparc wrt #126984 (diff) | |
download | gentoo-2-020a5bc4ec7c45df7ce0208c265e794ae0a68846.tar.gz gentoo-2-020a5bc4ec7c45df7ce0208c265e794ae0a68846.tar.bz2 gentoo-2-020a5bc4ec7c45df7ce0208c265e794ae0a68846.zip |
Added library patch and opengl USE flag as requested by flameeyes. Closing bug #126835.
(Portage version: 2.1_pre6-r2)
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/flobopuyo/ChangeLog | 7 | ||||
-rw-r--r-- | games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch | 43 | ||||
-rw-r--r-- | games-puzzle/flobopuyo/flobopuyo-0.20.ebuild | 19 |
3 files changed, 62 insertions, 7 deletions
diff --git a/games-puzzle/flobopuyo/ChangeLog b/games-puzzle/flobopuyo/ChangeLog index 58094f4ba0e8..6f1d07769c1f 100644 --- a/games-puzzle/flobopuyo/ChangeLog +++ b/games-puzzle/flobopuyo/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-puzzle/flobopuyo # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/ChangeLog,v 1.7 2006/03/12 04:31:28 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/ChangeLog,v 1.8 2006/03/20 20:18:17 wolf31o2 Exp $ + + 20 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org> + +files/flobopuyo-0.20-libs.patch, flobopuyo-0.20.ebuild: + Added library patch and opengl USE flag as requested by flameeyes. Closing + bug #126835. 12 Mar 2006; Michael Sterrett <mr_bones_@gentoo.org> flobopuyo-0.20.ebuild: diff --git a/games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch b/games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch new file mode 100644 index 000000000000..f7e787e02df5 --- /dev/null +++ b/games-puzzle/flobopuyo/files/flobopuyo-0.20-libs.patch @@ -0,0 +1,43 @@ +Index: flobopuyo-0.20/Makefile +=================================================================== +--- flobopuyo-0.20.orig/Makefile ++++ flobopuyo-0.20/Makefile +@@ -49,7 +49,8 @@ LDFLAGS= + + ifneq ($(PLATFORM), $(CYGWIN_VERSION)) + CFLAGS:=$(CFLAGS) `$(SDL_CONFIG) --cflags` -I/sw/include +-LDFLAGS:=$(LDFLAGS) `$(SDL_CONFIG) --cflags --libs` ++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 + # Win32 + ifeq ($(PLATFORM), $(CYGWIN_VERSION)) + 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 ++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 + OBJFILES:=$(OBJFILES) glSDL.o + ifeq ($(PLATFORM), Linux) +-LDFLAGS:=$(LDFLAGS) -lGL ++LDFLAGS:=$(LDFLAGS) ++LIBS:=$(LIBS) -lGL + endif + endif + +@@ -110,7 +113,7 @@ 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 "--------------------------------------" + @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 diff --git a/games-puzzle/flobopuyo/flobopuyo-0.20.ebuild b/games-puzzle/flobopuyo/flobopuyo-0.20.ebuild index 923528327bbd..4fc194046592 100644 --- a/games-puzzle/flobopuyo/flobopuyo-0.20.ebuild +++ b/games-puzzle/flobopuyo/flobopuyo-0.20.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/flobopuyo-0.20.ebuild,v 1.8 2006/03/12 04:31:28 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/flobopuyo/flobopuyo-0.20.ebuild,v 1.9 2006/03/20 20:18:17 wolf31o2 Exp $ inherit toolchain-funcs eutils games @@ -11,12 +11,12 @@ SRC_URI="http://www.ios-software.com/flobopuyo/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc ~amd64" -IUSE="" +IUSE="opengl" DEPEND="media-libs/libsdl media-libs/sdl-image media-libs/sdl-mixer - virtual/opengl" + opengl? ( virtual/opengl )" src_unpack() { unpack ${A} @@ -24,19 +24,26 @@ src_unpack() { epatch \ "${FILESDIR}"/${P}-gcc4.patch \ - "${FILESDIR}"/${P}-gcc41.patch + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-libs.patch 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 "/^CC=/s/g++/$(tc-getCXX)/" \ - -e "/^CXX=/s/g++/$(tc-getCXX)/" \ + -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" +} + src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc Changelog TODO |