diff options
author | mva <mva@FreeBSD.org> | 2013-06-22 03:56:27 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2013-06-22 03:56:27 +0800 |
commit | ca9e88f577e783e47f3270238d1f57adb749bf18 (patch) | |
tree | 16b6a36999fedc7fbad7af76e86d017a12040f78 /audio | |
parent | 03330a7fa2f520aae235ca03d5a8ac8ea716e7db (diff) | |
download | freebsd-ports-gnome-ca9e88f577e783e47f3270238d1f57adb749bf18.tar.gz freebsd-ports-gnome-ca9e88f577e783e47f3270238d1f57adb749bf18.tar.zst freebsd-ports-gnome-ca9e88f577e783e47f3270238d1f57adb749bf18.zip |
Welcome SDL2 to the FreeBSD ports system!
A set of new SDL2 related ports has been added, which are essentially
the same as their corresponding port for SDL1.2:
audio/sdl2_mixer
graphics/sdl2_image
graphics/sdl2_ttf
net/sdl2_net
A set of new USE_SDL knobs is available to enable SDL2 and its related
ports to be added as dependency to ports. Use either of
USE_SDL= sdl2 image2 mixer2 net2 ttf2
to pull in the specific sdl2_* or sdl20 port.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/sdl2_mixer/Makefile | 60 | ||||
-rw-r--r-- | audio/sdl2_mixer/distinfo | 2 | ||||
-rw-r--r-- | audio/sdl2_mixer/pkg-descr | 6 | ||||
-rw-r--r-- | audio/sdl2_mixer/pkg-plist | 7 |
5 files changed, 76 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index cb48b6ffae8a..c12ba52d51d7 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -703,6 +703,7 @@ SUBDIR += schism SUBDIR += scmpc SUBDIR += scrobbler + SUBDIR += sdl2_mixer SUBDIR += sdl_mixer SUBDIR += sdl_sound SUBDIR += sfront diff --git a/audio/sdl2_mixer/Makefile b/audio/sdl2_mixer/Makefile new file mode 100644 index 000000000000..f184fecc080c --- /dev/null +++ b/audio/sdl2_mixer/Makefile @@ -0,0 +1,60 @@ +# $FreeBSD$ + +PORTNAME= sdl2_mixer +PORTVERSION= 2.0.p1 +CATEGORIES= audio +MASTER_SITES= http://www.libsdl.org/tmp/SDL_mixer/release/ +DISTNAME= SDL2_mixer-2.0.0 + +MAINTAINER= mva@FreeBSD.org +COMMENT= A sample multi-channel audio mixer library + +LICENSE= ZLIB + +USES= pathfix pkgconfig:build +USE_GMAKE= yes +USE_SDL= sdl2 +GNU_CONFIGURE= yes +LDFLAGS+= -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include +USE_LDCONFIG= yes + +OPTIONS_DEFINE= FLUIDSYNTH MODPLUG FLAC VORBIS +OPTIONS_DEFAULT= FLUIDSYNTH MODPLUG FLAC VORBIS + +FLUIDSYNTH_DESC= Enable SoundFont2 Midi support via fluidsynth +MODPLUG_DESC= Enable MOD music via libModPlug +FLAC_DESC= Enable FLAC encoding support via flac +VORBIS_DESC= Enable Ogg Vorbis music + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MMODPLUG} +LIB_DEPENDS+= modplug:${PORTSDIR}/audio/libmodplug +CONFIGURE_ARGS+= --enable-music-mod --enable-music-mod-modplug +.else +CONFIGURE_ARGS+= --disable-music-mod --disable-music-mod-modplug +.endif + +.if ${PORT_OPTIONS:MFLAC} +LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac +CONFIGURE_ARGS+= --enable-music-flac +.else +CONFIGURE_ARGS+= --disable-music-flac +.endif + +.if ${PORT_OPTIONS:MFLUIDSYNTH} +LIB_DEPENDS+= fluidsynth:${PORTSDIR}/audio/fluidsynth +CONFIGURE_ARGS+= --enable-music-midi --enable-music-midi-fluidsynth +.else +CONFIGURE_ARGS+= --disable-music-midi --disable-music-midi-fluidsynth +.endif + +.if ${PORT_OPTIONS:MVORBIS} +LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis +CONFIGURE_ARGS+= --enable-music-ogg +.else +CONFIGURE_ARGS+= --disable-music-ogg +.endif + +.include <bsd.port.mk> diff --git a/audio/sdl2_mixer/distinfo b/audio/sdl2_mixer/distinfo new file mode 100644 index 000000000000..8d8fb422c147 --- /dev/null +++ b/audio/sdl2_mixer/distinfo @@ -0,0 +1,2 @@ +SHA256 (SDL2_mixer-2.0.0.tar.gz) = a3d72b0a02d27defc58665ffeef09247d874ea3e652a0326ef9b9f339581f836 +SIZE (SDL2_mixer-2.0.0.tar.gz) = 10109109 diff --git a/audio/sdl2_mixer/pkg-descr b/audio/sdl2_mixer/pkg-descr new file mode 100644 index 000000000000..4ba39805f1c8 --- /dev/null +++ b/audio/sdl2_mixer/pkg-descr @@ -0,0 +1,6 @@ +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 MikMod MOD, Timidity MIDI and SMPEG MP3 +libraries. + +WWW: http://www.libsdl.org/projects/SDL_mixer/index.html diff --git a/audio/sdl2_mixer/pkg-plist b/audio/sdl2_mixer/pkg-plist new file mode 100644 index 000000000000..a7552a9553af --- /dev/null +++ b/audio/sdl2_mixer/pkg-plist @@ -0,0 +1,7 @@ +include/SDL2/SDL_mixer.h +lib/libSDL2_mixer-2.0.so +lib/libSDL2_mixer-2.0.so.0 +lib/libSDL2_mixer.a +lib/libSDL2_mixer.la +lib/libSDL2_mixer.so +libdata/pkgconfig/SDL2_mixer.pc |