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
10 PKG_NAME:=libsdl-mixer
14 PKG_SOURCE:=SDL_mixer-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_mixer/release/
16 PKG_MD5SUM:=65ada3d997fe85109191a5fb083f248c
17 PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_mixer-$(PKG_VERSION)
19 include $(INCLUDE_DIR)/package.mk
21 define Package/libsdl-mixer
24 TITLE:=Simple DirectMedia Layer Sound Mixer
25 URL:=http://www.libsdl.org/projects/SDL_mixer/
26 DEPENDS:=+libsdl +libmikmod
29 define Package/libsdl-mixer/description
30 SDL_mixer is a sample multi-channel audio mixer library.
33 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
36 --with-sdl-exec-prefix=$(PKG_BUILD_DIR)
38 define Build/Configure
39 $(INSTALL_DIR) $(PKG_BUILD_DIR)/bin
40 $(INSTALL_BIN) ./files/sdl-config $(PKG_BUILD_DIR)/bin/
41 $(call Build/Configure/Default)
45 rm -rf $(PKG_INSTALL_DIR)
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
54 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \
57 $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,so*} \
61 define Package/libsdl-mixer/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.so.* $(1)/usr/lib/
66 $(eval $(call BuildPackage,libsdl-mixer))