diff options
author | rodent <rodent@pkgsrc.org> | 2014-02-02 15:39:01 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2014-02-02 15:39:01 +0000 |
commit | 65cee24cdc804cafb320eb19446a73d781c31317 (patch) | |
tree | 3f631e6ae8b20b267f5094364e9657b8aa610bc4 /audio/SDL2_mixer | |
parent | 7e2399b011313459573cd6d4b20b01d58179b2be (diff) | |
download | pkgsrc-65cee24cdc804cafb320eb19446a73d781c31317.tar.gz |
Import SDL2_mixer-2.0.0 as audio/SDL2_mixer.
SDL_mixer is a sample multi-channel audio mixer library. It supports any number
of simultaneously playing channels of 16 bit stereo audio, plus a single channel
of music, mixed by the popular FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and
SMPEG MP3 libraries.
As of SDL_mixer 1.2.7, FLAC, MikMod, Ogg Vorbis and MP3 loading libraries are
dynamically loaded, so if you don't need to load those formats, you don't need
to include those shared libraries.
Diffstat (limited to 'audio/SDL2_mixer')
-rw-r--r-- | audio/SDL2_mixer/DESCR | 8 | ||||
-rw-r--r-- | audio/SDL2_mixer/Makefile | 30 | ||||
-rw-r--r-- | audio/SDL2_mixer/PLIST | 4 | ||||
-rw-r--r-- | audio/SDL2_mixer/buildlink3.mk | 14 | ||||
-rw-r--r-- | audio/SDL2_mixer/distinfo | 5 | ||||
-rw-r--r-- | audio/SDL2_mixer/options.mk | 48 |
6 files changed, 109 insertions, 0 deletions
diff --git a/audio/SDL2_mixer/DESCR b/audio/SDL2_mixer/DESCR new file mode 100644 index 00000000000..fe0652b63ff --- /dev/null +++ b/audio/SDL2_mixer/DESCR @@ -0,0 +1,8 @@ +SDL_mixer is a sample multi-channel audio mixer library. It supports any number +of simultaneously playing channels of 16 bit stereo audio, plus a single channel +of music, mixed by the popular FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and +SMPEG MP3 libraries. + +As of SDL_mixer 1.2.7, FLAC, MikMod, Ogg Vorbis and MP3 loading libraries are +dynamically loaded, so if you don't need to load those formats, you don't need +to include those shared libraries. diff --git a/audio/SDL2_mixer/Makefile b/audio/SDL2_mixer/Makefile new file mode 100644 index 00000000000..f5a87b7157e --- /dev/null +++ b/audio/SDL2_mixer/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 2014/02/02 15:39:01 rodent Exp $ + +DISTNAME= SDL2_mixer-2.0.0 +CATEGORIES= audio +MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/ + +MAINTAINER= rodent@NetBSD.org +HOMEPAGE= http://www.libsdl.org/projects/SDL_mixer/ +COMMENT= Sample multi-channel audio mixer library +LICENSE= zlib + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= gmake pkg-config +USE_LANGUAGES= c c++ + +PKGCONFIG_OVERRIDE+= SDL2_mixer.pc.in +PKGCONFIG_OVERRIDE+= external/flac-1.2.1/src/libFLAC/flac.pc.in +PKGCONFIG_OVERRIDE+= external/flac-1.2.1/src/libFLAC++/flac++.pc.in +PKGCONFIG_OVERRIDE+= external/libmodplug-0.8.8.4/libmodplug.pc.in +PKGCONFIG_OVERRIDE+= external/libogg-1.3.1/ogg.pc.in +PKGCONFIG_OVERRIDE+= external/libvorbis-1.3.3/vorbis.pc.in +PKGCONFIG_OVERRIDE+= external/libvorbis-1.3.3/vorbisenc.pc.in +PKGCONFIG_OVERRIDE+= external/libvorbis-1.3.3/vorbisfile.pc.in +PKGCONFIG_OVERRIDE+= external/libvorbisidec-1.2.1/vorbisidec.pc.in + +.include "options.mk" + +.include "../../devel/SDL2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/audio/SDL2_mixer/PLIST b/audio/SDL2_mixer/PLIST new file mode 100644 index 00000000000..3262625c647 --- /dev/null +++ b/audio/SDL2_mixer/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2014/02/02 15:39:01 rodent Exp $ +include/SDL2/SDL_mixer.h +lib/libSDL2_mixer.la +lib/pkgconfig/SDL2_mixer.pc diff --git a/audio/SDL2_mixer/buildlink3.mk b/audio/SDL2_mixer/buildlink3.mk new file mode 100644 index 00000000000..155b40d4591 --- /dev/null +++ b/audio/SDL2_mixer/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/02/02 15:39:01 rodent Exp $ + +BUILDLINK_TREE+= SDL2_mixer + +.if !defined(SDL2_MIXER_BUILDLINK3_MK) +SDL2_MIXER_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.SDL2_mixer+= SDL2_mixer>=2.0.0 +BUILDLINK_PKGSRCDIR.SDL2_mixer?= ../../devel/SDL2_mixer + +.include "../../devel/SDL2/buildlink3.mk" +.endif # SDL2_MIXER_BUILDLINK3_MK + +BUILDLINK_TREE+= -SDL2_mixer diff --git a/audio/SDL2_mixer/distinfo b/audio/SDL2_mixer/distinfo new file mode 100644 index 00000000000..28802b14fab --- /dev/null +++ b/audio/SDL2_mixer/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2014/02/02 15:39:01 rodent Exp $ + +SHA1 (SDL2_mixer-2.0.0.tar.gz) = 9ed975587f09a1776ba9776dcc74a58e695aba6e +RMD160 (SDL2_mixer-2.0.0.tar.gz) = a49884a68351f77fefe76c2fcf8ee317e6d971e2 +Size (SDL2_mixer-2.0.0.tar.gz) = 10119589 bytes diff --git a/audio/SDL2_mixer/options.mk b/audio/SDL2_mixer/options.mk new file mode 100644 index 00000000000..6fa46abd2c5 --- /dev/null +++ b/audio/SDL2_mixer/options.mk @@ -0,0 +1,48 @@ +# $NetBSD: options.mk,v 1.1 2014/02/02 15:39:01 rodent Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.SDL2_mixer +PKG_SUPPORTED_OPTIONS= flac fluidsynth modplug smpeg2 static vorbis +PKG_SUGGESTED_OPTIONS+= flac modplug smpeg2 static vorbis + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mflac) +.include "../../audio/flac/buildlink3.mk" +CONFIGURE_ARGS+= --enable-music-flac=yes +.else +CONFIGURE_ARGS+= --enable-music-flac=no +.endif + +.if !empty(PKG_OPTIONS:Mfluidsynth) +.include "../../audio/fluidsynth/buildlink3.mk" +CONFIGURE_ARGS+= --enable-music-midi-fluidsynth=yes +.else +CONFIGURE_ARGS+= --enable-music-midi-fluidsynth=no +.endif + +.if !empty(PKG_OPTIONS:Mmodplug) +.include "../../audio/libmodplug/buildlink3.mk" +CONFIGURE_ARGS+= --enable-music-mod-modplug=yes +.else +CONFIGURE_ARGS+= --enable-music-mod-modplug=no +.endif + +.if !empty(PKG_OPTIONS:Msmpeg2) +.include "../../multimedia/smpeg2/buildlink3.mk" +CONFIGURE_ARGS+= --enable-music-mp3-smpeg=yes +.else +CONFIGURE_ARGS+= --enable-music-mp3-smpeg=no +.endif + +.if !empty(PKG_OPTIONS:Mstatic) +CONFIGURE_ARGS+= --enable-static=yes +.else +CONFIGURE_ARGS+= --enable-static=no +.endif + +.if !empty(PKG_OPTIONS:Mvorbis) +.include "../../audio/libvorbis/buildlink3.mk" +CONFIGURE_ARGS+= --enable-music-ogg=yes +.else +CONFIGURE_ARGS+= --enable-music-ogg=no +.endif |