2014-03-27 07:04:30 +00:00
|
|
|
#
|
2010-01-02 12:20:28 +00:00
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libsdl-sound
|
|
|
|
PKG_VERSION:=1.0.3
|
2010-03-09 19:11:53 +00:00
|
|
|
PKG_RELEASE:=2
|
2010-01-02 12:20:28 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=SDL_sound-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://icculus.org/SDL_sound/downloads/
|
|
|
|
PKG_MD5SUM:=aa09cd52df85d29bee87a664424c94b5
|
2010-03-09 19:11:53 +00:00
|
|
|
|
2010-01-02 12:20:28 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_sound-$(PKG_VERSION)
|
2010-03-09 19:11:53 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-01-02 12:20:28 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-03-17 23:43:04 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
|
|
|
|
2010-01-02 12:20:28 +00:00
|
|
|
define Package/libsdl-sound
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Simple DirectMedia Layer Sound Decoder
|
|
|
|
URL:=http://icculus.org/SDL_sound/
|
|
|
|
DEPENDS:=+libsdl
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsdl-sound/description
|
|
|
|
SDL_sound is a library that handles the decoding
|
|
|
|
of several popular sound file formats, such as .WAV and .MP3.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2010-03-09 19:11:53 +00:00
|
|
|
--with-sdl-prefix="$(STAGING_DIR)/usr" \
|
|
|
|
--disable-flac \
|
|
|
|
--disable-mikmod \
|
|
|
|
--disable-modplug \
|
|
|
|
--disable-ogg \
|
|
|
|
--disable-smpeg \
|
|
|
|
--disable-speex \
|
2010-01-02 12:20:28 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/SDL/SDL_sound.h \
|
|
|
|
$(1)/usr/include/SDL/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.{a,so*} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsdl-sound/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-03-09 19:11:53 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.so.* $(1)/usr/lib/
|
2010-01-02 12:20:28 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsdl-sound))
|