summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz>2003-04-03 08:17:21 +0000
committerwiz <wiz>2003-04-03 08:17:21 +0000
commit6c74fa70fa2348f94346028bad0005451c33aaf3 (patch)
treec2be8058702dc552668d285104356e18e019a4e8
parentcfff5a6a993b72b091799a3fa3406c690de174a5 (diff)
downloadpkgsrc-6c74fa70fa2348f94346028bad0005451c33aaf3.tar.gz
Re-import SDL-mixer as SDL_mixer (original name).
-rw-r--r--audio/SDL_mixer/DESCR4
-rw-r--r--audio/SDL_mixer/Makefile32
-rw-r--r--audio/SDL_mixer/PLIST10
-rw-r--r--audio/SDL_mixer/buildlink2.mk22
-rw-r--r--audio/SDL_mixer/distinfo5
-rw-r--r--audio/SDL_mixer/patches/patch-aa13
6 files changed, 86 insertions, 0 deletions
diff --git a/audio/SDL_mixer/DESCR b/audio/SDL_mixer/DESCR
new file mode 100644
index 00000000000..18b7f9ca7f8
--- /dev/null
+++ b/audio/SDL_mixer/DESCR
@@ -0,0 +1,4 @@
+ 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,
+Ogg Vorbis, and SMPEG MP3 libraries.
diff --git a/audio/SDL_mixer/Makefile b/audio/SDL_mixer/Makefile
new file mode 100644
index 00000000000..b49d24236a1
--- /dev/null
+++ b/audio/SDL_mixer/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/04/03 08:17:22 wiz Exp $
+#
+
+DISTNAME= SDL_mixer-1.2.4
+PKGREVISION= 1
+CATEGORIES= audio
+MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.libsdl.org/projects/SDL_mixer/
+COMMENT= multi-channel audio mixer library
+
+GNU_CONFIGURE= YES
+USE_X11= YES
+USE_LIBTOOL= YES
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+
+USE_BUILDLINK2= YES
+BUILDLINK_DEPENDS.SDL= SDL>=1.2.2
+
+CPPFLAGS+= -Dunix=1
+
+post-configure:
+ ${SED} -e "s|@PREFIX@|${PREFIX}|" ${WRKSRC}/timidity/config.h \
+ > ${WRKSRC}/timidity/config.h.patched
+ ${MV} ${WRKSRC}/timidity/config.h.patched ${WRKSRC}/timidity/config.h
+
+.include "../../audio/libogg/buildlink2.mk"
+.include "../../devel/gettext-lib/buildlink2.mk"
+.include "../../devel/smpeg/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/SDL_mixer/PLIST b/audio/SDL_mixer/PLIST
new file mode 100644
index 00000000000..07109f9e46a
--- /dev/null
+++ b/audio/SDL_mixer/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/03 08:17:21 wiz Exp $
+bin/playmus
+bin/playwave
+include/SDL/SDL_mixer.h
+lib/libSDL_mixer-1.2.so
+lib/libSDL_mixer-1.2.so.2
+lib/libSDL_mixer-1.2.so.2.2
+lib/libSDL_mixer.a
+lib/libSDL_mixer.la
+lib/libSDL_mixer.so
diff --git a/audio/SDL_mixer/buildlink2.mk b/audio/SDL_mixer/buildlink2.mk
new file mode 100644
index 00000000000..970e2c3e06e
--- /dev/null
+++ b/audio/SDL_mixer/buildlink2.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/04/03 08:17:22 wiz Exp $
+
+.if !defined(SDL_MIXER_BUILDLINK2_MK)
+SDL_MIXER_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= SDL_mixer
+BUILDLINK_DEPENDS.SDL_mixer?= SDL_mixer>=1.2.0
+BUILDLINK_PKGSRCDIR.SDL_mixer?= ../../audio/SDL_mixer
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.SDL_mixer=SDL_mixer
+BUILDLINK_PREFIX.SDL_mixer_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.SDL_mixer= include/SDL_mixer/*
+BUILDLINK_FILES.SDL_mixer+= lib/libSDL_mixer-*
+BUILDLINK_FILES.SDL_mixer+= lib/libSDL_mixer.*
+
+.include "../../devel/SDL/buildlink2.mk"
+
+BUILDLINK_TARGETS+= SDL_mixer-buildlink
+
+SDL_mixer-buildlink: _BUILDLINK_USE
+
+.endif # SDL_MIXER_BUILDLINK2_MK
diff --git a/audio/SDL_mixer/distinfo b/audio/SDL_mixer/distinfo
new file mode 100644
index 00000000000..8a1c68d2721
--- /dev/null
+++ b/audio/SDL_mixer/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/04/03 08:17:22 wiz Exp $
+
+SHA1 (SDL_mixer-1.2.4.tar.gz) = 96c4d173382d3eaefa3a837c388d5f50f34a7d11
+Size (SDL_mixer-1.2.4.tar.gz) = 955542 bytes
+SHA1 (patch-aa) = dc8f4f72e347caaa3c470b3757dd124850ff3059
diff --git a/audio/SDL_mixer/patches/patch-aa b/audio/SDL_mixer/patches/patch-aa
new file mode 100644
index 00000000000..b1f99b01f28
--- /dev/null
+++ b/audio/SDL_mixer/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/04/03 08:17:22 wiz Exp $
+
+--- timidity/config.h.orig Mon Mar 24 00:04:57 2003
++++ timidity/config.h Mon Mar 24 00:06:06 2003
+@@ -206,7 +206,7 @@
+
+ /* You could specify a complete path, e.g. "/etc/timidity.cfg", and
+ then specify the library directory in the configuration file. */
+-#define CONFIG_FILE "timidity.cfg"
++#define CONFIG_FILE "@PREFIX@/share/timidity/timidity.cfg"
+ #ifdef __WIN32__
+ #define DEFAULT_PATH "\\TIMIDITY"
+ #else