2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.libsdl.org
/projects
/SDL_mixer
/release
/
16 PKG_MD5SUM
:=65ada3d997fe85109191a5fb083f248c
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libsdl-mixer
26 TITLE
:=Simple DirectMedia Layer Sound Mixer
27 URL
:=http
://www.libsdl.org
/projects
/SDL_mixer
/
28 DEPENDS
:=+libsdl
+libmikmod
+libvorbisidec
31 define Package
/libsdl-mixer
/description
32 SDL_mixer is a sample multi-channel audio mixer library.
35 define Build
/Configure
36 $(call Build
/Configure
/Default
, \
41 --enable-music-mod-shared \
44 --enable-music-ogg-tremor \
45 --enable-music-ogg-shared \
46 --disable-music-flac \
47 --enable-music-flag-shared \
49 --enable-music-mp3-shared \
51 --disable-music-mp3-mad-gpl \
55 define Build
/InstallDev
56 $(INSTALL_DIR
) $(1)/usr
/include/SDL
$(1)/usr
/lib
/pkgconfig
58 $(PKG_INSTALL_DIR
)/usr
/include/SDL
/SDL_mixer.h \
61 $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL_mixer
*.
{a
,la
,so
*} \
64 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
65 $(1)/usr
/lib
/pkgconfig
/
68 define Package
/libsdl-mixer
/install
69 $(INSTALL_DIR
) $(1)/usr
/lib
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL_mixer
*.so
* $(1)/usr
/lib
/
73 $(eval
$(call BuildPackage
,libsdl-mixer
))