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 TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
25 define Package/libsdl-mixer
28 TITLE:=Simple DirectMedia Layer Sound Mixer
29 URL:=http://www.libsdl.org/projects/SDL_mixer/
30 DEPENDS:=+libsdl +libmikmod +libvorbisidec
33 define Package/libsdl-mixer/description
34 SDL_mixer is a sample multi-channel audio mixer library.
37 define Build/Configure
38 $(call Build/Configure/Default, \
43 --enable-music-mod-shared \
46 --enable-music-ogg-tremor \
47 --enable-music-ogg-shared \
48 --disable-music-flac \
49 --enable-music-flag-shared \
51 --enable-music-mp3-shared \
53 --disable-music-mp3-mad-gpl \
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig
60 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \
63 $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,la,so*} \
66 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
67 $(1)/usr/lib/pkgconfig/
70 define Package/libsdl-mixer/install
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.so* $(1)/usr/lib/
75 $(eval $(call BuildPackage,libsdl-mixer))