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
18 PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_sound-$(PKG_VERSION)
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libsdl-sound
26 TITLE:=Simple DirectMedia Layer Sound Decoder
27 URL:=http://icculus.org/SDL_sound/
31 define Package/libsdl-sound/description
32 SDL_sound is a library that handles the decoding
33 of several popular sound file formats, such as .WAV and .MP3.
37 --with-sdl-prefix="$(STAGING_DIR)/usr" \
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
48 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_sound.h \
51 $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.{a,so*} \
55 define Package/libsdl-sound/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.so.* $(1)/usr/lib/
60 $(eval $(call BuildPackage,libsdl-sound))