[packages] libtorrent: apply fix from [22233] to armeb as well
[openwrt/svn-archive/archive.git] / libs / libsdl_sound / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsdl-sound
11 PKG_VERSION:=1.0.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=SDL_sound-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://icculus.org/SDL_sound/downloads/
16 PKG_MD5SUM:=aa09cd52df85d29bee87a664424c94b5
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_sound-$(PKG_VERSION)
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
24
25 define Package/libsdl-sound
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Simple DirectMedia Layer Sound Decoder
29 URL:=http://icculus.org/SDL_sound/
30 DEPENDS:=+libsdl
31 endef
32
33 define Package/libsdl-sound/description
34 SDL_sound is a library that handles the decoding
35 of several popular sound file formats, such as .WAV and .MP3.
36 endef
37
38 CONFIGURE_ARGS += \
39 --with-sdl-prefix="$(STAGING_DIR)/usr" \
40 --disable-flac \
41 --disable-mikmod \
42 --disable-modplug \
43 --disable-ogg \
44 --disable-smpeg \
45 --disable-speex \
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_sound.h \
51 $(1)/usr/include/SDL/
52 $(CP) \
53 $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.{a,so*} \
54 $(1)/usr/lib/
55 endef
56
57 define Package/libsdl-sound/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libsdl-sound))