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-sound
14 PKG_SOURCE:=SDL_sound-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://icculus.org/SDL_sound/downloads/
16 PKG_MD5SUM:=aa09cd52df85d29bee87a664424c94b5
17 PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_sound-$(PKG_VERSION)
19 include $(INCLUDE_DIR)/package.mk
21 define Package/libsdl-sound
24 TITLE:=Simple DirectMedia Layer Sound Decoder
25 URL:=http://icculus.org/SDL_sound/
29 define Package/libsdl-sound/description
30 SDL_sound is a library that handles the decoding
31 of several popular sound file formats, such as .WAV and .MP3.
34 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
37 --with-sdl-exec-prefix=$(STAGING_DIR)
40 LIBS="-lSDL -ldirect -ldirectfb -lfusion"
43 rm -rf $(PKG_INSTALL_DIR)
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
52 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_sound.h \
55 $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.{a,so*} \
59 define Package/libsdl-sound/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.so.* $(1)/usr/lib/
64 $(eval $(call BuildPackage,libsdl-sound))