Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

libsdl: update to 1.2.15 and another time fix #310793

  • Loading branch information...
commit 94c6bae96870f8180482fa80703ee61e08c8a40e 1 parent 0b7d300
@11mariom 11mariom authored
Showing with 146 additions and 0 deletions.
  1. +3 −0  media-libs/libsdl/Manifest
  2. +143 −0 media-libs/libsdl/libsdl-1.2.15.ebuild
View
3  media-libs/libsdl/Manifest
@@ -3,4 +3,7 @@ AUX libsdl-1.2.14-click.patch 697 RMD160 73c58adbe5a17f26785c3c9d47a2794b53b40cd
AUX libsdl-1.2.14-glibc213.patch 350 RMD160 9de7a312e278e80e9bb224ecbdf2d0b2492f7f96 SHA1 7de75024aae58506ea9c5003e4262d7616fb0d4d SHA256 587c57f6eb654688d688c4384809a847afb3832908473a0efd6b78804b32373a
AUX libsdl-1.2.14-joystick.patch 1549 RMD160 bca682b320047021d3a6518fc2b0188fa997f047 SHA1 5e739931574fe384b35b2272dc86c4d669c409cd SHA256 1e7c83bc2ff155d15b44f582cce110bfed4477003f523d8e1d2a121bbf609ea5
DIST SDL-1.2.14.tar.gz 4014154 RMD160 a3a9a691f5510eb5327ca159a034f55a70cb5801 SHA1 ba625b4b404589b97e92d7acd165992debe576dd SHA256 5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642eed9b6
+DIST SDL-1.2.15.tar.gz 3920622 RMD160 d4802a090cb4a24eeb0c8ce5690802f596d394c3 SHA1 0c5f193ced810b0d7ce3ab06d808cbb5eef03a2c SHA256 d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
EBUILD libsdl-1.2.14-r6.ebuild 4659 RMD160 9178d2e157bc75291ce5e921231ac443eb296b79 SHA1 5d4de395c1ae810e373df6f9d46da3456d9228c9 SHA256 efa182220922d02e24c6500207b8d76b4fb2b2c695293ae8cbf26e71b31d3f85
+EBUILD libsdl-1.2.15.ebuild 4005 RMD160 8b1edbc748bae07d345d9491038c7393918db9d7 SHA1 a16d4a122abbd38cea3310131db51bcabd30cd43 SHA256 f0ecac984621b30481e23a87096a294fe492924e357d8e9ae1eb4520830d6da8
+MISC libsdl-1.2.15.ebuild~ 4108 RMD160 e105301ecd5f06956a0d695ac2d719ec22d60ae2 SHA1 f7575d263698128edaeaa3aea716330c403f8030 SHA256 c484518da10af17135f42e69077d97303eda749985163de646e67a6b8cefc994
View
143 media-libs/libsdl/libsdl-1.2.15.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit flag-o-matic multilib toolchain-funcs eutils libtool
+
+DESCRIPTION="Simple Direct Media Layer"
+HOMEPAGE="http://www.libsdl.org/"
+SRC_URI="http://www.libsdl.org/release/SDL-${PV}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+# WARNING:
+# If you turn on the custom-cflags use flag in USE and something breaks,
+# you pick up the pieces. Be prepared for bug reports to be marked INVALID.
+IUSE="oss alsa nas X dga xv xinerama fbcon directfb ggi svga tslib aalib opengl libcaca +audio +video +joystick custom-cflags pulseaudio ps3 static-libs"
+
+RDEPEND="audio? ( >=media-libs/audiofile-0.1.9 )
+ alsa? ( media-libs/alsa-lib )
+ nas? (
+ media-libs/nas
+ x11-libs/libXt
+ x11-libs/libXext
+ x11-libs/libX11
+ )
+ X? (
+ x11-libs/libXt
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXrandr
+ )
+ directfb? ( >=dev-libs/DirectFB-0.9.19 )
+ ggi? ( >=media-libs/libggi-2.0_beta3 )
+ svga? ( >=media-libs/svgalib-1.4.2 )
+ aalib? ( media-libs/aalib )
+ libcaca? ( >=media-libs/libcaca-0.9-r1 )
+ opengl? ( virtual/opengl virtual/glu )
+ ppc64? ( ps3? ( sys-libs/libspe2 ) )
+ tslib? ( x11-libs/tslib )
+ pulseaudio? ( media-sound/pulseaudio )"
+DEPEND="${RDEPEND}
+ nas? (
+ x11-proto/xextproto
+ x11-proto/xproto
+ )
+ X? (
+ x11-proto/xextproto
+ x11-proto/xproto
+ )
+ x86? ( || ( >=dev-lang/yasm-0.6.0 >=dev-lang/nasm-0.98.39-r3 ) )"
+
+S=${WORKDIR}/SDL-${PV}
+
+pkg_setup() {
+ if use custom-cflags ; then
+ ewarn "Since you've chosen to use possibly unsafe CFLAGS,"
+ ewarn "don't bother filing libsdl-related bugs until trying to remerge"
+ ewarn "libsdl without the custom-cflags use flag in USE."
+ epause 10
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sdl-config.patch
+
+ elibtoolize
+}
+
+src_configure() {
+ local myconf=
+ if [[ $(tc-arch) != "x86" ]] ; then
+ myconf="${myconf} --disable-nasm"
+ else
+ myconf="${myconf} --enable-nasm"
+ fi
+ use custom-cflags || strip-flags
+ use audio || myconf="${myconf} --disable-audio"
+ use video \
+ && myconf="${myconf} --enable-video-dummy" \
+ || myconf="${myconf} --disable-video"
+ use joystick || myconf="${myconf} --disable-joystick"
+
+ local directfbconf="--disable-video-directfb"
+ if use directfb ; then
+ # since DirectFB can link against SDL and trigger a
+ # dependency loop, only link against DirectFB if it
+ # isn't broken #61592
+ echo 'int main(){}' > directfb-test.c
+ $(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \
+ && directfbconf="--enable-video-directfb" \
+ || ewarn "Disabling DirectFB since libdirectfb.so is broken"
+ fi
+
+ myconf="${myconf} ${directfbconf}"
+
+ econf \
+ --disable-rpath \
+ --disable-arts \
+ --disable-esd \
+ --enable-events \
+ --enable-cdrom \
+ --enable-threads \
+ --enable-timers \
+ --enable-file \
+ --enable-cpuinfo \
+ $(use_enable alsa alsa-shared) \
+ $(use_enable esd esd-shared) \
+ $(use_enable pulseaudio pulseaudio-shared) \
+ --disable-arts-shared \
+ $(use_enable nas nas-shared) \
+ --disable-osmesa-shared \
+ $(use_enable oss) \
+ $(use_enable alsa) \
+ $(use_enable pulseaudio) \
+ $(use_enable nas) \
+ $(use_enable X video-x11) \
+ $(use_enable dga) \
+ $(use_enable xv video-x11-xv) \
+ $(use_enable xinerama video-x11-xinerama) \
+ $(use_enable X video-x11-xrandr) \
+ $(use_enable dga video-dga) \
+ $(use_enable fbcon video-fbcon) \
+ $(use_enable ggi video-ggi) \
+ $(use_enable svga video-svga) \
+ $(use_enable aalib video-aalib) \
+ $(use_enable libcaca video-caca) \
+ $(use_enable opengl video-opengl) \
+ $(use_enable ps3 video-ps3) \
+ $(use_enable tslib input-tslib) \
+ $(use_with X x) \
+ $(use_enable static-libs static) \
+ --disable-video-x11-xme \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/lib*.la
+ dodoc BUGS CREDITS README README-SDL.txt README.HG TODO WhatsNew
+ dohtml -r ./
+}
Please sign in to comment.
Something went wrong with that request. Please try again.