summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-08-03 17:47:52 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-08-03 17:47:52 +0000
commit0b9ef79562176ddb2863b1d667797c80f738be14 (patch)
tree4987058bc0beb529a60bba953f867c6291615fa0 /games-action
parentKeyworded ~sparc for chiguire (diff)
downloadgentoo-2-0b9ef79562176ddb2863b1d667797c80f738be14.tar.gz
gentoo-2-0b9ef79562176ddb2863b1d667797c80f738be14.tar.bz2
gentoo-2-0b9ef79562176ddb2863b1d667797c80f738be14.zip
Use the system libpng
(Portage version: 2.1.3.2)
Diffstat (limited to 'games-action')
-rw-r--r--games-action/chromium/ChangeLog10
-rw-r--r--games-action/chromium/chromium-0.9.12-r7.ebuild87
-rw-r--r--games-action/chromium/files/0.9.12-png.patch62
-rw-r--r--games-action/chromium/files/digest-chromium-0.9.12-r76
4 files changed, 163 insertions, 2 deletions
diff --git a/games-action/chromium/ChangeLog b/games-action/chromium/ChangeLog
index 0469aa4f06df..895b738ef0e9 100644
--- a/games-action/chromium/ChangeLog
+++ b/games-action/chromium/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-action/chromium
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/chromium/ChangeLog,v 1.24 2006/10/06 22:06:36 nyhm Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/chromium/ChangeLog,v 1.25 2007/08/03 17:47:52 nyhm Exp $
+
+*chromium-0.9.12-r7 (03 Aug 2007)
+
+ 03 Aug 2007; Tristan Heaven <nyhm@gentoo.org> +files/0.9.12-png.patch,
+ +chromium-0.9.12-r7.ebuild:
+ Use the system libpng
06 Oct 2006; Tristan Heaven <nyhm@gentoo.org> chromium-0.9.12-r6.ebuild:
Use qt3 eclass
diff --git a/games-action/chromium/chromium-0.9.12-r7.ebuild b/games-action/chromium/chromium-0.9.12-r7.ebuild
new file mode 100644
index 000000000000..05c91949bdb8
--- /dev/null
+++ b/games-action/chromium/chromium-0.9.12-r7.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/chromium/chromium-0.9.12-r7.ebuild,v 1.1 2007/08/03 17:47:52 nyhm Exp $
+
+inherit eutils flag-o-matic qt3 toolchain-funcs versionator games
+
+MY_PV=$(get_version_component_range -2)
+DESCRIPTION="Chromium B.S.U. - an arcade game"
+HOMEPAGE="http://www.reptilelabour.com/software/chromium/"
+SRC_URI="http://www.reptilelabour.com/software/files/${PN}/${PN}-src-${PV}.tar.gz
+ http://www.reptilelabour.com/software/files/${PN}/${PN}-data-${PV}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="sdl qt3 vorbis"
+
+DEPEND="virtual/opengl
+ virtual/glu
+ x11-libs/libXmu
+ sdl? ( media-libs/libsdl
+ media-libs/smpeg )
+ !sdl? ( virtual/glut )
+ vorbis? ( media-libs/libvorbis )
+ qt3? ( $(qt_min_version 3.3) )
+ media-libs/libpng
+ media-libs/openal
+ media-libs/freealut"
+
+S=${WORKDIR}/Chromium-${MY_PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch \
+ "${FILESDIR}"/${PV}-gcc3-gentoo.patch \
+ "${FILESDIR}"/${PV}-freealut.patch \
+ "${FILESDIR}"/${PV}-configure.patch \
+ "${FILESDIR}"/${PV}-qt3.patch \
+ "${FILESDIR}"/${PV}-png.patch
+ append-flags -DPKGDATADIR="'\"${GAMES_DATADIR}/${PN}\"'"
+ append-flags -DPKGBINDIR="'\"${GAMES_BINDIR}\"'"
+ sed -i \
+ -e "s:-O2 -DOLD_OPENAL:${CXXFLAGS}:" src/Makefile \
+ || die "sed src/Makefile failed"
+ sed -i \
+ -e "s:-g:${CXXFLAGS}:" src-setup/Makefile \
+ || die "sed src-setup/Makefile failed"
+ sed -i \
+ -e "s:-O2:${CFLAGS}:" support/glpng/src/Makefile \
+ || die "sed support/glpng/src/Makefile failed"
+ find "${S}" -type d -name CVS -exec rm -rf '{}' \; >& /dev/null
+}
+
+src_compile() {
+ if use sdl ; then
+ export ENABLE_SDL="yes"
+ export ENABLE_SMPEG="yes"
+ else
+ export ENABLE_SDL="no"
+ export ENABLE_SMPEG="no"
+ fi
+ use vorbis \
+ && export ENABLE_VORBIS="yes" \
+ || export ENABLE_VORBIS="no"
+ if use qt3 ; then
+ export ENABLE_SETUP="yes"
+ else
+ export ENABLE_SETUP="no"
+ fi
+ ./configure || die "configure failed"
+ emake -j1 \
+ CC=$(tc-getCC) \
+ CXX=$(tc-getCXX) \
+ LINK=$(tc-getCXX) \
+ || die "emake failed"
+}
+
+src_install() {
+ dogamesbin bin/chromium* || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}/${PN}"
+ rm -rf data/png/.xvpics
+ doins -r data || die "doins failed"
+ newicon data/png/hero.png ${PN}.png
+ make_desktop_entry chromium "Chromium B.S.U"
+ prepgamesdirs
+}
diff --git a/games-action/chromium/files/0.9.12-png.patch b/games-action/chromium/files/0.9.12-png.patch
new file mode 100644
index 000000000000..0b72bd245b0f
--- /dev/null
+++ b/games-action/chromium/files/0.9.12-png.patch
@@ -0,0 +1,62 @@
+--- src/Makefile
++++ src/Makefile
+@@ -12,10 +12,10 @@
+ CXX = g++
+ CFLAGS = -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT
+ CXXFLAGS= -pipe $(PKG_CFLAGS) $(AL_CFLAGS) $(SDL_CFLAGS) $(SMPEG_CFLAGS) -O2 -DOLD_OPENAL -DAUDIO_OPENAL -D_REENTRANT
+-INCPATH = -I../support/include -I../support/glpng/include -I/usr/X11R6/include
++INCPATH = -I../support/glpng/include -I/usr/X11R6/include
+ LINK = g++
+ LFLAGS =
+-LIBS = $(SUBLIBS) -L../support/glpng/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib $(GL_LIBS) $(AL_LIBS) $(SDL_LIBS) $(SMPEG_LIBS) $(VORBIS_LIBS)
++LIBS = $(SUBLIBS) -L../support/glpng/lib -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib $(GL_LIBS) $(AL_LIBS) $(SDL_LIBS) $(SMPEG_LIBS) $(VORBIS_LIBS) -lpng
+ MOC = $(QTDIR)/bin/moc
+ UIC = $(QTDIR)/bin/uic
+
+--- support/glpng/src/glpng.c
++++ support/glpng/src/glpng.c
+@@ -3,11 +3,12 @@
+ #include <windows.h>
+ #endif
+
++#define GL_GLEXT_PROTOTYPES 1
+ #include <GL/glpng.h>
+ #include <GL/gl.h>
+ #include <stdlib.h>
+ #include <math.h>
+-#include "png/png.h"
++#include <png.h>
+
+ /* Used to decide if GL/gl.h supports the paletted extension */
+ #ifdef GL_COLOR_INDEX1_EXT
+--- support/glpng/src/Makefile
++++ support/glpng/src/Makefile
+@@ -54,27 +54,7 @@
+ zlib/inftrees.c \
+ zlib/infutil.c \
+ zlib/zutil.c
+-OBJECTS = glpng.o \
+- png/png.o \
+- png/pngerror.o \
+- png/pngget.o \
+- png/pngmem.o \
+- png/pngpread.o \
+- png/pngread.o \
+- png/pngrio.o \
+- png/pngrtran.o \
+- png/pngrutil.o \
+- png/pngset.o \
+- png/pngtrans.o \
+- zlib/adler32.o \
+- zlib/crc32.o \
+- zlib/infblock.o \
+- zlib/infcodes.o \
+- zlib/inffast.o \
+- zlib/inflate.o \
+- zlib/inftrees.o \
+- zlib/infutil.o \
+- zlib/zutil.o
++OBJECTS = glpng.o
+ INTERFACES =
+ UICDECLS =
+ UICIMPLS =
diff --git a/games-action/chromium/files/digest-chromium-0.9.12-r7 b/games-action/chromium/files/digest-chromium-0.9.12-r7
new file mode 100644
index 000000000000..9e1dd867f920
--- /dev/null
+++ b/games-action/chromium/files/digest-chromium-0.9.12-r7
@@ -0,0 +1,6 @@
+MD5 173fdf76f1e4d7496142cd5662456a73 chromium-data-0.9.12.tar.gz 1111134
+RMD160 b05510d8b4a5a868b632108f688ec187a89ed805 chromium-data-0.9.12.tar.gz 1111134
+SHA256 749d10bcedeff7a82701da97701f9d31b4a057dfa84f33e197085ac71975b195 chromium-data-0.9.12.tar.gz 1111134
+MD5 969883f2f20f10cd6cdb380582f130c4 chromium-src-0.9.12.tar.gz 640283
+RMD160 f422098a67efedb53fafbbb08119596c6b87a1d8 chromium-src-0.9.12.tar.gz 640283
+SHA256 a4a2c929dfd462a9281d8c0dae485c70362140e038f532608550f6528b6ab745 chromium-src-0.9.12.tar.gz 640283