diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-08-28 21:44:34 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-08-28 21:44:34 +0000 |
commit | 28ab3817440e9ea1dc25dbc7d808a3cbc7c91638 (patch) | |
tree | 93aae9f769afa4088cd8e475e11abe3f50b43d91 /media-libs | |
parent | initial import wrt #481792 (diff) | |
download | gentoo-2-28ab3817440e9ea1dc25dbc7d808a3cbc7c91638.tar.gz gentoo-2-28ab3817440e9ea1dc25dbc7d808a3cbc7c91638.tar.bz2 gentoo-2-28ab3817440e9ea1dc25dbc7d808a3cbc7c91638.zip |
initial import wrt #481796
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/sdl2-mixer/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/sdl2-mixer/Manifest | 4 | ||||
-rw-r--r-- | media-libs/sdl2-mixer/metadata.xml | 17 | ||||
-rw-r--r-- | media-libs/sdl2-mixer/sdl2-mixer-2.0.0.ebuild | 104 |
4 files changed, 135 insertions, 0 deletions
diff --git a/media-libs/sdl2-mixer/ChangeLog b/media-libs/sdl2-mixer/ChangeLog new file mode 100644 index 000000000000..a1b0fe5a4c24 --- /dev/null +++ b/media-libs/sdl2-mixer/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-libs/sdl2-mixer +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl2-mixer/ChangeLog,v 1.1 2013/08/28 21:44:34 hasufell Exp $ + +*sdl2-mixer-2.0.0 (28 Aug 2013) + + 28 Aug 2013; Julian Ospald <hasufell@gentoo.org> +sdl2-mixer-2.0.0.ebuild, + +metadata.xml: + initial import wrt #481796 + diff --git a/media-libs/sdl2-mixer/Manifest b/media-libs/sdl2-mixer/Manifest new file mode 100644 index 000000000000..8054e52e6274 --- /dev/null +++ b/media-libs/sdl2-mixer/Manifest @@ -0,0 +1,4 @@ +DIST SDL2_mixer-2.0.0.tar.gz 10119589 SHA256 a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b SHA512 e04594abc13c2b6527cd92a94a8d3e18436e9e6aaee21bab83e288e259a2fb20aae8433765d07feeb3b5bf253951323d67054239091e79720846770beb30be4d WHIRLPOOL 58385d7bdb3382af4f9d3aa9904b40083fe1139af0c938fa807904d70d4561180f65314bb2ab56f3b67a35140252e72802753ed723bca2536a4745fad43cb905 +EBUILD sdl2-mixer-2.0.0.ebuild 2873 SHA256 b2bb6d669041dedadc0c277b66e7f2bc5a568435828bf1b9bcc2de8d8d962ab1 SHA512 c601e55b51938b41dad0629a97c9930283918dc2c677b80dfc2b1e8a9209e3e975f838a941bf4414e0d36468964c8d37ccac1536c3b25ebe0625310efa75f393 WHIRLPOOL 5de3eaa5e5390d4ba595d9583acfb5ff8e9730ca4abc4dfd541d6b0547d965084d3f80f333055a62aac62b2b2bb370e1ea706807d99b55cf58a8447687757491 +MISC ChangeLog 279 SHA256 c2f9efd84fd120cec7da4990245a04c8d652173e679a6c0bc00be2f890c6f152 SHA512 c18e581cc872be92c62609f2a690de3f7a7d51daa8198bd1c7835405d9decb8b9f5b20555da279a213355185827285ac8b523dd8c4ed8f8cd064fdd23c9961b8 WHIRLPOOL 33d9b40a3811d1153fbf3b75ddc21613fd529a2707a4bc1077cc90916a5e7f726f0f8336eac7ab8be19d4cf8c72551a5df53abedce98009bdcdb243797cf4548 +MISC metadata.xml 657 SHA256 9900dac3ab206adca75ceae4df1c50f840a131d4a779ecac28cc70bac2ff2a00 SHA512 f89f5271c5e364aac3c2ebc4e8b3177bb4472e09bb740c2d54e472ac9e5a2272988781d067b7b68bb1b80f8ba8c20611f74dd2adbb7b59fca68c36193b33bfef WHIRLPOOL caa85695a6653392f233afd978217be3b664d4e2ef0caffd2532620904c3c47c4555ba250b549d0262c111d20ab4b65c7fe4ab8127f46423bd547ff51ac25290 diff --git a/media-libs/sdl2-mixer/metadata.xml b/media-libs/sdl2-mixer/metadata.xml new file mode 100644 index 000000000000..0947c53cc68b --- /dev/null +++ b/media-libs/sdl2-mixer/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name='fluidsynth'>Use <pkg>media-sound/fluidsynth</pkg> + for MIDI support</flag> + <flag name='midi'>basic support for MIDI files</flag> + <flag name='mod'>basic support for MOD files</flag> + <flag name='playtools'>Install playwave and playmus tools (useful + for testing)</flag> + <flag name='smpeg'>Use <pkg>media-libs/smpeg</pkg> for MP3 support + </flag> + <flag name='tremor'>enable OGG Vorbis music via libtremor</flag> + <flag name='wav'>support WAVE files</flag> + </use> +</pkgmetadata> diff --git a/media-libs/sdl2-mixer/sdl2-mixer-2.0.0.ebuild b/media-libs/sdl2-mixer/sdl2-mixer-2.0.0.ebuild new file mode 100644 index 000000000000..c42f1138fc9d --- /dev/null +++ b/media-libs/sdl2-mixer/sdl2-mixer-2.0.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl2-mixer/sdl2-mixer-2.0.0.ebuild,v 1.1 2013/08/28 21:44:34 hasufell Exp $ + +EAPI=5 +inherit eutils + +MY_P=SDL2_mixer-${PV} +DESCRIPTION="Simple Direct Media Layer Mixer Library" +HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/" +SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="flac fluidsynth mad midi mikmod mod modplug mp3 playtools smpeg static-libs timidity tremor vorbis +wav" +REQUIRED_USE=" + midi? ( || ( timidity fluidsynth ) ) + timidity? ( midi ) + fluidsynth? ( midi ) + mp3? ( || ( smpeg mad ) ) + smpeg? ( mp3 ) + mad? ( mp3 ) + mod? ( || ( mikmod modplug ) ) + mikmod? ( mod ) + modplug? ( mod ) + tremor? ( vorbis ) + " + +DEPEND="media-libs/libsdl2 + flac? ( media-libs/flac ) + midi? ( + fluidsynth? ( media-sound/fluidsynth ) + timidity? ( media-sound/timidity++ ) + ) + mp3? ( + mad? ( media-libs/libmad ) + smpeg? ( >=media-libs/smpeg2-2.0.0 ) + ) + mod? ( + modplug? ( media-libs/libmodplug ) + mikmod? ( >=media-libs/libmikmod-3.1.10 ) + ) + vorbis? ( + tremor? ( media-libs/tremor ) + !tremor? ( >=media-libs/libvorbis-1.0_beta4 media-libs/libogg ) + )" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + --disable-sdltest \ + --enable-music-cmd \ + $(use_enable wav music-wave) \ + $(use_enable mod music-mod) \ + $(use_enable modplug music-mod-modplug) \ + --disable-music-mod-modplug-shared \ + $(use_enable mikmod music-mod-mikmod) \ + --disable-music-mod-mikmod-shared \ + $(use_enable midi music-midi) \ + $(use_enable timidity music-midi-timidity) \ + $(use_enable fluidsynth music-midi-fluidsynth) \ + --disable-music-fluidsynth-shared \ + $(use_enable vorbis music-ogg) \ + $(use_enable tremor music-ogg-tremor) \ + --disable-music-ogg-shared \ + $(use_enable flac music-flac) \ + --disable-music-flac-shared \ + $(use_enable mp3 music-mp3) \ + $(use_enable smpeg music-mp3-smpeg) \ + --disable-music-mp3-smpeg-shared \ + --disable-smpegtest \ + $(use_enable mad music-mp3-mad-gpl) +} + +src_install() { + emake DESTDIR="${D}" install + if use playtools; then + emake DESTDIR="${D}" install-bin + fi + dodoc {CHANGES,README}.txt + use static-libs || prune_libtool_files +} + +pkg_postinst() { + # bug 412035 + # https://bugs.gentoo.org/show_bug.cgi?id=412035 + if use midi ; then + if use fluidsynth; then + ewarn "FluidSynth support requires you to set the SDL_SOUNDFONTS" + ewarn "environment variable to the location of a SoundFont file" + ewarn "unless the game or application happens to do this for you." + + if use timidity; then + ewarn "Failing to do so will result in Timidity being used instead." + else + ewarn "Failing to do so will result in silence." + fi + fi + fi +} |