summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-01-03 23:57:55 +0000
committerMike Frysinger <vapier@gentoo.org>2004-01-03 23:57:55 +0000
commit098fb63d8a838b7328a731fb7fac2854d717c4e0 (patch)
tree2c455b6c8540de316e22790dbbaa32196122c48a /games-emulation
parentlocal use flags for games-strategy/wesnoth (diff)
downloadgentoo-2-098fb63d8a838b7328a731fb7fac2854d717c4e0.tar.gz
gentoo-2-098fb63d8a838b7328a731fb7fac2854d717c4e0.tar.bz2
gentoo-2-098fb63d8a838b7328a731fb7fac2854d717c4e0.zip
fix zlib compilation #36515
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/visualboyadvance/ChangeLog5
-rw-r--r--games-emulation/visualboyadvance/files/digest-visualboyadvance-1.71
-rw-r--r--games-emulation/visualboyadvance/visualboyadvance-1.7.ebuild50
3 files changed, 38 insertions, 18 deletions
diff --git a/games-emulation/visualboyadvance/ChangeLog b/games-emulation/visualboyadvance/ChangeLog
index f8e87da313cb..99924fa00d08 100644
--- a/games-emulation/visualboyadvance/ChangeLog
+++ b/games-emulation/visualboyadvance/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for games-emulation/visualboyadvance
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/ChangeLog,v 1.4 2004/01/02 00:03:32 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/ChangeLog,v 1.5 2004/01/03 23:57:55 vapier Exp $
*visualboyadvance-1.7 (01 Jan 2004)
+ 01 Jan 2004; Mike Frysinger <vapier@gentoo.org> :
+ Fix zlib compilation bug #36515.
+
01 Jan 2004; Michael Sterrett <mr_bones_@gentoo.org>
visualboyadvance-1.6a.ebuild, visualboyadvance-1.7.ebuild,
files/visualboyadvance:
diff --git a/games-emulation/visualboyadvance/files/digest-visualboyadvance-1.7 b/games-emulation/visualboyadvance/files/digest-visualboyadvance-1.7
index 8982cff95df2..044790a01444 100644
--- a/games-emulation/visualboyadvance/files/digest-visualboyadvance-1.7
+++ b/games-emulation/visualboyadvance/files/digest-visualboyadvance-1.7
@@ -1 +1,2 @@
MD5 31a8665e90e84a079ab6664842083f55 VisualBoyAdvance-src-1.7.tar.gz 1078959
+MD5 aca2ce31e5cfd1a7bde1135d09e0fb58 visualboyadvance-1.7-zutil.h-1.2.bz2 2518
diff --git a/games-emulation/visualboyadvance/visualboyadvance-1.7.ebuild b/games-emulation/visualboyadvance/visualboyadvance-1.7.ebuild
index 1e8170d957f1..d3cb75739809 100644
--- a/games-emulation/visualboyadvance/visualboyadvance-1.7.ebuild
+++ b/games-emulation/visualboyadvance/visualboyadvance-1.7.ebuild
@@ -1,18 +1,17 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/visualboyadvance-1.7.ebuild,v 1.1 2004/01/02 00:03:32 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/visualboyadvance-1.7.ebuild,v 1.2 2004/01/03 23:57:55 vapier Exp $
inherit games
-S="${WORKDIR}/VisualBoyAdvance-${PV}"
DESCRIPTION="gameboy, gameboy color, and gameboy advance emulator"
HOMEPAGE="http://vboy.emuhq.com/"
-SRC_URI="mirror://sourceforge/vba/VisualBoyAdvance-src-${PV}.tar.gz"
+SRC_URI="mirror://sourceforge/vba/VisualBoyAdvance-src-${PV}.tar.gz
+ mirror://gentoo/${P}-zutil.h-1.2.bz2"
-KEYWORDS="~x86"
LICENSE="GPL-2"
SLOT="0"
-
+KEYWORDS="x86"
IUSE="mmx debug"
DEPEND="virtual/x11
@@ -22,33 +21,50 @@ DEPEND="virtual/x11
media-libs/libsdl
>=sys-apps/sed-4"
+S=${WORKDIR}/VisualBoyAdvance-${PV}
+
src_unpack() {
unpack ${A}
+ cd ${S}
sed -i \
- -e "s:@LIBTOOL@:/usr/bin/libtool:" `find -name Makefile.in` || \
- die "sed Makefile.in failed"
+ -e "s:@LIBTOOL@:/usr/bin/libtool:" \
+ `find -name Makefile.in` \
+ || die "sed Makefile.in failed"
+ cd win32/include/png
+ for f in * ; do
+ [ -e /usr/include/${f} ] \
+ && rm ${f} && ln -s /usr/include/${f}
+ done
+ cd ../zlib
+ for f in * ; do
+ [ -e /usr/include/${f} ] \
+ && rm ${f} && ln -s /usr/include/${f}
+ done
+ has_version '>=sys-libs/zlib-1.2' \
+ && unpack ${P}-zutil.h-1.2.bz2 \
+ && mv ${P}-zutil.h-1.2 zutil.h
}
src_compile() {
egamesconf \
--enable-c-core \
`use_with debug profiling` \
- `use_with mmx` || \
- die
+ `use_with mmx` \
+ || die
if [ ! `use debug` ] ; then
sed -i \
- -e 's:prof/libprof.a::' src/Makefile || \
- die "sed src/Makefile failed"
+ -e 's:prof/libprof.a::' \
+ src/Makefile \
+ || die "sed src/Makefile failed"
fi
emake || die "emake failed"
}
src_install() {
- make DESTDIR=${D} install || die "make install failed"
- dogamesbin "${FILESDIR}/visualboyadvance" || die "dogamesbin failed"
- insinto "${GAMES_DATADIR}/VisualBoyAdvance"
- doins src/VisualBoyAdvance.cfg || die "doins failed"
- dodoc AUTHORS ChangeLog INSTALL NEWS README README-win.txt || \
- die "dodoc failed"
+ make DESTDIR=${D} install || die "make install failed"
+ dogamesbin ${FILESDIR}/visualboyadvance
+ insinto ${GAMES_DATADIR}/VisualBoyAdvance
+ doins src/VisualBoyAdvance.cfg
+ dodoc AUTHORS ChangeLog INSTALL NEWS README README-win.txt
prepgamesdirs
}