[packages] SDL_sound: use PKG_INSTALL, disable all external libs use explicitely...
[packages.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 define Package/libsdl-sound
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=Simple DirectMedia Layer Sound Decoder
27   URL:=http://icculus.org/SDL_sound/
28   DEPENDS:=+libsdl
29 endef
30
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.
34 endef
35
36 CONFIGURE_ARGS += \
37         --with-sdl-prefix="$(STAGING_DIR)/usr" \
38         --disable-flac \
39         --disable-mikmod \
40         --disable-modplug \
41         --disable-ogg \
42         --disable-smpeg \
43         --disable-speex \
44
45 define Build/InstallDev
46         $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib
47         $(CP) \
48                 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_sound.h \
49                 $(1)/usr/include/SDL/
50         $(CP) \
51                 $(PKG_INSTALL_DIR)/usr/lib/libSDL_sound*.{a,so*} \
52                 $(1)/usr/lib/
53 endef
54
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/
58 endef
59
60 $(eval $(call BuildPackage,libsdl-sound))