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 TARGET_LDFLAGS
+= -Wl
,-rpath-link
,$(STAGING_DIR
)/usr
/lib
25 define Package
/libsdl-sound
28 TITLE
:=Simple DirectMedia Layer Sound Decoder
29 URL
:=http
://icculus.org
/SDL_sound
/
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.
39 --with-sdl-prefix
="$(STAGING_DIR)/usr" \
47 define Build
/InstallDev
48 $(INSTALL_DIR
) $(1)/usr
/include/SDL
$(1)/usr
/lib
50 $(PKG_INSTALL_DIR
)/usr
/include/SDL
/SDL_sound.h \
53 $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL_sound
*.
{a
,so
*} \
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
/
62 $(eval
$(call BuildPackage
,libsdl-sound
))