mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Added bep file to build sdl-mixer from hg, patched native_midi cpp file that got cut off in previous patch.
This commit is contained in:
27
media-libs/sdl-mixer/patches/sdl-mixer-1.2-hg.patch
Normal file
27
media-libs/sdl-mixer/patches/sdl-mixer-1.2-hg.patch
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
diff -r 4b699c9a269d native_midi/native_midi_haiku.cpp
|
||||||
|
--- a/native_midi/native_midi_haiku.cpp Mon Mar 21 16:54:59 2011 -0700
|
||||||
|
+++ b/native_midi/native_midi_haiku.cpp Tue Apr 05 11:32:08 2011 +0000
|
||||||
|
@@ -259,3 +259,23 @@
|
||||||
|
currentSong = song;
|
||||||
|
}
|
||||||
|
void native_midi_stop()
|
||||||
|
+{
|
||||||
|
+ if (currentSong == NULL) return;
|
||||||
|
+ currentSong->store->Stop();
|
||||||
|
+ currentSong->store->Disconnect(&synth);
|
||||||
|
+ while (currentSong->store->IsPlaying())
|
||||||
|
+ usleep(1000);
|
||||||
|
+ currentSong = NULL;
|
||||||
|
+}
|
||||||
|
+int native_midi_active()
|
||||||
|
+{
|
||||||
|
+ if (currentSong == NULL) return 0;
|
||||||
|
+ return currentSong->store->CurrentEvent() < currentSong->store->CountEvents();
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+const char* native_midi_error(void)
|
||||||
|
+{
|
||||||
|
+ return lasterr;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+#endif /* __HAIKU__ */
|
||||||
39
media-libs/sdl-mixer/sdl-mixer-1.2-hg.bep
Normal file
39
media-libs/sdl-mixer/sdl-mixer-1.2-hg.bep
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
DESCRIPTION="Simple Direct Layer Mixer Library"
|
||||||
|
HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/"
|
||||||
|
SRC_URI="hg+http://hg.libsdl.org/SDL_mixer/"
|
||||||
|
#CHECKSUM_MD5=""
|
||||||
|
REVISION="1"
|
||||||
|
STATUS_HAIKU="stable"
|
||||||
|
DEPEND="libsdl >= 1.2.14
|
||||||
|
media-libs/flac >= 1.2.1
|
||||||
|
media-libs/libmad >= 0.15.1
|
||||||
|
media-libs/libvorbis >= 1.3.1
|
||||||
|
media-libs/libmikmod >= 3.1.11
|
||||||
|
media-libs/libogg >= 1.2.0
|
||||||
|
media-libs/smpeg >= 0.4.5"
|
||||||
|
BUILD {
|
||||||
|
cd sdl-mixer-1.2-hg
|
||||||
|
libtoolize --force --copy --install
|
||||||
|
cp ltmain.sh build-scripts/ltmain.sh
|
||||||
|
cp `aclocal --print-ac-dir`/libtool.m4 acinclude
|
||||||
|
cp `aclocal --print-ac-dir`/ltoptions.m4 acinclude
|
||||||
|
cp `aclocal --print-ac-dir`/ltversion.m4 acinclude
|
||||||
|
cp `aclocal --print-ac-dir`/ltsugar.m4 acinclude
|
||||||
|
cp `aclocal --print-ac-dir`/lt~obsolete.m4 acinclude
|
||||||
|
./autogen.sh
|
||||||
|
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||||
|
LIBDIR=`finddir B_COMMON_LIB_DIRECTORY`
|
||||||
|
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||||
|
--libdir=$LIBDIR \
|
||||||
|
--mandir=$MANDIR \
|
||||||
|
--enable-music-midi
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL {
|
||||||
|
cd sdl-mixer-1.2-hg
|
||||||
|
make install
|
||||||
|
}
|
||||||
|
|
||||||
|
LICENSE="GNU LGPL v2.1"
|
||||||
|
COPYRIGHT="1997-2011 Sam Lantinga"
|
||||||
Reference in New Issue
Block a user