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
19 PKG_MACRO_PATHS
:=acinclude
22 include $(INCLUDE_DIR
)/package.mk
24 TARGET_LDFLAGS
+= -Wl
,-rpath-link
,$(STAGING_DIR
)/usr
/lib
26 define Package
/libsdl-mixer
29 TITLE
:=Simple DirectMedia Layer Sound Mixer
30 URL
:=http
://www.libsdl.org
/projects
/SDL_mixer
/
31 DEPENDS
:=+libsdl
+libmikmod
+libvorbisidec
34 define Package
/libsdl-mixer
/description
35 SDL_mixer is a sample multi-channel audio mixer library.
38 define Build
/Configure
39 $(call Build
/Configure
/Default
, \
44 --enable-music-mod-shared \
47 --enable-music-ogg-tremor \
48 --enable-music-ogg-shared \
49 --disable-music-flac \
50 --enable-music-flag-shared \
52 --enable-music-mp3-shared \
54 --disable-music-mp3-mad-gpl \
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include/SDL
$(1)/usr
/lib
/pkgconfig
61 $(PKG_INSTALL_DIR
)/usr
/include/SDL
/SDL_mixer.h \
64 $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL_mixer
*.
{a
,la
,so
*} \
67 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
68 $(1)/usr
/lib
/pkgconfig
/
71 define Package
/libsdl-mixer
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL_mixer
*.so
* $(1)/usr
/lib
/
76 $(eval
$(call BuildPackage
,libsdl-mixer
))