summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-08-28 21:36:58 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-08-28 21:36:58 +0000
commitf4d6a8c6ef738c3a7a35dcdc74a4d33dba15dc9d (patch)
treeb1d4826779cfa194970321af646f72ea2935a72a /media-libs/libsdl2
parentinitial import wrt #480826 (diff)
downloadhistorical-f4d6a8c6ef738c3a7a35dcdc74a4d33dba15dc9d.tar.gz
historical-f4d6a8c6ef738c3a7a35dcdc74a4d33dba15dc9d.tar.bz2
historical-f4d6a8c6ef738c3a7a35dcdc74a4d33dba15dc9d.zip
initial import wrt #480826
Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'media-libs/libsdl2')
-rw-r--r--media-libs/libsdl2/Manifest18
-rw-r--r--media-libs/libsdl2/files/libsdl2-2.0.0-static-libs.patch81
-rw-r--r--media-libs/libsdl2/libsdl2-2.0.0.ebuild146
-rw-r--r--media-libs/libsdl2/metadata.xml37
4 files changed, 280 insertions, 2 deletions
diff --git a/media-libs/libsdl2/Manifest b/media-libs/libsdl2/Manifest
index 767af7ad3019..24ad5d2db57c 100644
--- a/media-libs/libsdl2/Manifest
+++ b/media-libs/libsdl2/Manifest
@@ -1,5 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX libsdl2-2.0.0-static-libs.patch 4292 SHA256 b94faa8e0f54102ed790aebf7fb4a120e80aadc95171de7f1627f79eb5af79d9 SHA512 c7a766fc124a4cc4ba9af143579769967158e3a1617afc55ce13c20ac148cf067b73b2fd0b15d197b5587b981e07b648cb1f800f8099aaa976596e421389bb06 WHIRLPOOL f1dbbe6f45f4c4a7d705cf9beadb8edb215fb302707ce917abc89f5eccfccdd0c7ff2f25f9279284de03ea011354c54f94a4fd2b4e66d0e5bed03ce0795606d4
DIST SDL2-2.0.0.tar.gz 3623960 SHA256 6f6ac8153d90e06a118474d5400624ae82b3d3e080915505db27cebc52b27178 SHA512 6650ca1afcf2ad172f511adb80d265722c7533b1e614925ef5bcdce1b898b42c261d6ed8188e15e56bab2002f16d16c255bdd984932e347de6252c0ee54a7f53 WHIRLPOOL 38111cb4f47dda36a658b94f8ab9b50c6009926b45e3d55f255d03e2c0f66040a5b8786d44da51fe572a03eb7fa5ac5d8fa5a0933bbc0579ed0e86de1b2a4c12
-EBUILD libsdl2-2.0.0.ebuild 3869 SHA256 ab757abb80125ff4021816aae1fdcc3babd296e16beabd57499f73e34a5ad709 SHA512 7d81490b142274eeb6ccba8fca208920fd609d4d984643d1056d0e709d4b91e2c2b6a339ca134d06ea6e118bd64fce2dca128e3ccfdd605dd028531985fbddd9 WHIRLPOOL dbc83ec5f9db5efedeb3934855f8bebacaae3a711ded0160442aad5e230f3aa5be6c4c848341652e9b9f26911e08f4e082ed1a0dc27fb00df68097898183f9ff
-MISC ChangeLog 310 SHA256 902158ae4530b5b630f4ddbf7854f330a9cfd8399f72f525431f64a28d9e83f1 SHA512 413dccc3652aa268a536dd8b1a218380221b67bf0114e690a75b9734c74d1b63333933ad57a84f92e174a9c55f53508f4331fc0b8c3304f15a0ae48261209a60 WHIRLPOOL 8355ae5ab7daee7afb071cb7aafbe2f12b78f45e0b4539cbae576a2ed206f68a23235f68cf49cde596525cea88e70b9172980ace8e0c3a8fa8820b1a04dc49ca
+EBUILD libsdl2-2.0.0.ebuild 3972 SHA256 0e14617c9ebf1be43d74f4bb8aa59ef1836ae541ebda085a2f4d435ea8bcd937 SHA512 8230e1eb035634738b53d13f0425ec529b777b1a3169f5b27e81ae1e7f2b828248e694dda5485ac474c84e175a1d3ec7df8768197a77ca17d7a2bb9707553f69 WHIRLPOOL fdb272922657333743c31350a152906e30ce74bd73f07fb2e10623f64b8519af7ef1362dfc1330ccb4a5c14f097f1c882f4adc2ea76fff4609cc93a78a9e35a8
+MISC ChangeLog 402 SHA256 38cffe007c0cd5e9e8a902c589a46d53d37f1c88a88216d9486ef6c1990b039b SHA512 755847a436e9d4b0482d74b4728c3f6288d8c607ac35ee78f6ff52f7bdf207841d075543fbd11d3f4553ff7d11b7242aa8e5becc26c9c6e92bc253bd402b018c WHIRLPOOL c9e289d3057221df28ea16094e06dadd639c42de0006591c7dc45bb4b8f4656515c1ad0b98cab5e75dd3d088c2a339fb027f4fb1c0636d48da5e0f28d9844a79
MISC metadata.xml 1532 SHA256 b0de84edcfbcf286934f7adf119917dcd138c0570d78b25286f25b3a2d110da9 SHA512 fe8e84981baee1567e80430a2352feffa03915864b871916c13cfec4fd734c12dd6d9195ed20da26e7985dcd39c55498d1f55ac0a5dd61c2d4100e6e964b5e79 WHIRLPOOL dfda175811d3dc27eadc3e7b61920c6257ad9e062626cd786adaf0a1c52ab283f8814feb85d0121bfd01ce52cab56f587c078b3d20aa1fc954a1986d176bb4aa
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iQEcBAEBCAAGBQJSHm16AAoJEFpvPKfnPDWzbeQH/3sg/HEtUj4Q/FQJDo4U3zXr
+mzAs9vJzzjVomOF3mzauypODWe+M3r6a5NmBGEy/goxL6zWkqfJOchfkAMDAC1i3
+oIwRJTru4zsjLg2bghxWuRBY5hyXXh2+e/414Q2LISPluNWm2apFNv8+IJ2/1C6P
+UrlEBkN8RlJSkUjHzZjfSFC3xsdzFKTMwdGkGKfueCaTaNH1orKv1HB7aGYZpZ08
+zjJt68YSvL2P6opi+bASJJ0b9/cebRd1xZnwHOEYBNR/ll2SIZnN2z621YgU9+HO
+5O/GUF2C3R3ouZMl+F7xmL7uteqYW9r5XkuRg8dmuTB520wzbAHQ3IdZG04HVi4=
+=svvO
+-----END PGP SIGNATURE-----
diff --git a/media-libs/libsdl2/files/libsdl2-2.0.0-static-libs.patch b/media-libs/libsdl2/files/libsdl2-2.0.0-static-libs.patch
new file mode 100644
index 000000000000..0409c32740e2
--- /dev/null
+++ b/media-libs/libsdl2/files/libsdl2-2.0.0-static-libs.patch
@@ -0,0 +1,81 @@
+diff -r c1563f514b5b Makefile.in
+--- a/Makefile.in Thu Apr 04 11:35:22 2013 -0400
++++ b/Makefile.in Wed Apr 17 14:17:09 2013 -0400
+@@ -33,10 +33,10 @@
+ OBJECTS = @OBJECTS@
+ VERSION_OBJECTS = @VERSION_OBJECTS@
+
+-SDLMAIN_TARGET = libSDL2main.a
++SDLMAIN_TARGET = libSDL2main.la
+ SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
+
+-SDLTEST_TARGET = libSDL2_test.a
++SDLTEST_TARGET = libSDL2_test.la
+ SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
+
+ SRC_DIST = acinclude Android.mk autogen.sh BUGS build-scripts configure configure.in COPYING CREDITS debian include INSTALL Makefile.minimal Makefile.in README* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test TODO VisualC.html VisualC WhatsNew Xcode Xcode-iOS
+@@ -122,15 +122,13 @@
+ .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
+
+ $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
+- $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
++ $(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
+
+ $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
+- $(AR) cru $@ $(SDLMAIN_OBJECTS)
+- $(RANLIB) $@
++ $(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
+
+ $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
+- $(AR) cru $@ $(SDLTEST_OBJECTS)
+- $(RANLIB) $@
++ $(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
+
+ install: all install-bin install-hdrs install-lib install-data
+ install-bin:
+@@ -151,10 +149,8 @@
+ install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
+ $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
+ $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
+- $(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
+- $(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
+- $(INSTALL) -m 644 $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
+- $(RANLIB) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
++ $(LIBTOOL) --mode=install $(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
++ $(LIBTOOL) --mode=install $(INSTALL) -m 644 $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
+ install-data:
+ $(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
+ $(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
+diff -r c1563f514b5b configure.in
+--- a/configure.in Thu Apr 04 11:35:22 2013 -0400
++++ b/configure.in Wed Apr 17 14:17:09 2013 -0400
+@@ -2659,23 +2659,23 @@
+
+ VERSION_OBJECTS=`echo $VERSION_SOURCES`
+ VERSION_DEPENDS=`echo $VERSION_SOURCES`
+-VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
++VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.lo,g'`
+ VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
+-\\$(objects)/\\2.o: \\1/\\2.rc\\\\
++\\$(objects)/\\2.lo: \\1/\\2.rc\\\\
+ \\$(WINDRES) \\$< \\$@,g"`
+
+ SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
+ SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
+-SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
++SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
+ SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
+-\\$(objects)/\\2.o: \\1/\\2.c\\\\
++\\$(objects)/\\2.lo: \\1/\\2.c\\\\
+ \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
+
+ SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
+ SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
+-SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
++SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
+ SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
+-\\$(objects)/\\2.o: \\1/\\2.c\\\\
++\\$(objects)/\\2.lo: \\1/\\2.c\\\\
+ \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
+
+ # Set runtime shared library paths as needed
diff --git a/media-libs/libsdl2/libsdl2-2.0.0.ebuild b/media-libs/libsdl2/libsdl2-2.0.0.ebuild
new file mode 100644
index 000000000000..ce485052b237
--- /dev/null
+++ b/media-libs/libsdl2/libsdl2-2.0.0.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl2/libsdl2-2.0.0.ebuild,v 1.1 2013/08/28 21:36:52 hasufell Exp $
+
+EAPI=5
+inherit autotools flag-o-matic toolchain-funcs eutils
+
+MY_P=SDL2-${PV}
+DESCRIPTION="Simple Direct Media Layer"
+HOMEPAGE="http://www.libsdl.org"
+SRC_URI="http://www.libsdl.org/release/${MY_P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="3dnow alsa altivec +audio dbus directfb fusionsound gles haptic +joystick mmx nas opengl oss pulseaudio sse sse2 static-libs tslib udev +video X xinerama xscreensaver"
+REQUIRED_USE="
+ alsa? ( audio )
+ fusionsound? ( audio )
+ gles? ( video )
+ nas? ( audio )
+ opengl? ( video )
+ pulseaudio? ( audio )
+ xinerama? ( X )
+ xscreensaver? ( X )"
+
+RDEPEND="
+ alsa? ( media-libs/alsa-lib )
+ dbus? ( sys-apps/dbus )
+ directfb? ( >=dev-libs/DirectFB-1.0.0 )
+ fusionsound? ( >=media-libs/FusionSound-1.1.1 )
+ gles? ( media-libs/mesa[gles2] )
+ nas? ( media-libs/nas )
+ opengl? ( virtual/opengl virtual/glu )
+ pulseaudio? ( media-sound/pulseaudio )
+ tslib? ( x11-libs/tslib )
+ udev? ( virtual/udev )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXcursor
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXt
+ x11-libs/libXxf86vm
+ xinerama? ( x11-libs/libXinerama )
+ xscreensaver? ( x11-libs/libXScrnSaver )
+ )"
+DEPEND="${RDEPEND}
+ X? (
+ x11-proto/xextproto
+ x11-proto/xproto
+ )
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # https://bugzilla.libsdl.org/show_bug.cgi?id=1431
+ epatch "${FILESDIR}"/${P}-static-libs.patch
+ AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf
+}
+
+src_configure() {
+ 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
+
+ # sorted by `./configure --help`
+ #
+ # --disable-threads broken
+ # https://bugzilla.libsdl.org/show_bug.cgi?id=2070
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable audio) \
+ $(use_enable video) \
+ --enable-render \
+ --enable-events \
+ $(use_enable joystick) \
+ $(use_enable haptic) \
+ --enable-power \
+ --enable-threads \
+ --enable-timers \
+ --enable-file \
+ --disable-loadso \
+ --enable-cpuinfo \
+ --enable-atomic \
+ --enable-assembly \
+ $(use_enable sse ssemath) \
+ $(use_enable mmx) \
+ $(use_enable 3dnow) \
+ $(use_enable sse) \
+ $(use_enable sse2) \
+ $(use_enable altivec) \
+ $(use_enable oss) \
+ $(use_enable alsa) \
+ --disable-alsa-shared \
+ --disable-esd \
+ $(use_enable pulseaudio) \
+ --disable-pulseaudio-shared \
+ --disable-arts \
+ $(use_enable nas) \
+ --disable-nas-shared \
+ --disable-sndio \
+ --disable-sndio-shared \
+ $(use_enable audio diskaudio) \
+ $(use_enable audio dummyaudio) \
+ $(use_enable X video-x11) \
+ --disable-x11-shared \
+ $(use_enable X video-x11-xcursor) \
+ $(use_enable xinerama video-x11-xinerama) \
+ $(use_enable X video-x11-xinput) \
+ $(use_enable X video-x11-xrandr) \
+ $(use_enable xscreensaver video-x11-scrnsaver) \
+ $(use_enable X video-x11-xshape) \
+ $(use_enable X video-x11-vm) \
+ --disable-video-cocoa \
+ ${directfbconf} \
+ --disable-directfb-shared \
+ $(use_enable fusionsound) \
+ --disable-fusionsound-shared \
+ $(use_enable video video-dummy) \
+ $(use_enable opengl video-opengl) \
+ $(use_enable gles video-opengles) \
+ $(use_enable udev libudev) \
+ $(use_enable dbus) \
+ $(use_enable tslib input-tslib) \
+ --disable-directx \
+ --disable-rpath \
+ --disable-render-d3d \
+ $(use_with X x)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use static-libs || prune_libtool_files
+ dodoc {BUGS,CREDITS,README,README-SDL,README-hg,TODO,WhatsNew}.txt
+}
diff --git a/media-libs/libsdl2/metadata.xml b/media-libs/libsdl2/metadata.xml
new file mode 100644
index 000000000000..78ca1ace025e
--- /dev/null
+++ b/media-libs/libsdl2/metadata.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription>
+ Simple DirectMedia Layer is a cross-platform multimedia library
+ designed to provide low level access to audio, keyboard, mouse,
+ joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is
+ used by MPEG playback software, emulators, and many popular games,
+ including the award winning Linux port of "Civilization: Call To
+ Power."
+
+ Simple DirectMedia Layer supports Linux, Windows, BeOS, MacOS
+ Classic, MacOS X, FreeBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.
+ There is also code, but no official support, for Windows CE,
+ AmigaOS, Dreamcast, Atari, NetBSD, AIX, OSF/Tru64, RISC OS, and
+ SymbianOS.
+
+ SDL is written in C, but works with C++ natively, and has bindings
+ to several other languages, including Ada, Eiffel, Java, Lua, ML,
+ Perl, PHP, Pike, Python, and Ruby.
+ </longdescription>
+ <use>
+ <flag name="audio">Control audio support (disable at your own risk)
+ </flag>
+ <flag name="fusionsound">use FusionSound audio driver</flag>
+ <flag name="gles">include OpenGL ES support</flag>
+ <flag name="haptic">Enable the haptic (force feedback) subsystem
+ </flag>
+ <flag name="joystick">Control joystick support
+ (disable at your own risk)</flag>
+ <flag name="tslib">Build with tslib support for touchscreen devices
+ </flag>
+ <flag name="video">Control video support (disable at your own risk)
+ </flag>
+ </use>
+</pkgmetadata>