379727d370cefe812f8bd49bd2a76d48ed634492
[openwrt/svn-archive/archive.git] / libs / libsdl_mixer / 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:=SDL_mixer
11 PKG_VERSION:=1.2.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_mixer/release/
16 PKG_MD5SUM:=65ada3d997fe85109191a5fb083f248c
17
18 PKG_FIXUP:=libtool
19 PKG_MACRO_PATHS:=acinclude
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
25
26 define Package/libsdl-mixer
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Simple DirectMedia Layer Sound Mixer
30 URL:=http://www.libsdl.org/projects/SDL_mixer/
31 DEPENDS:=+libsdl +libmikmod +libvorbisidec
32 endef
33
34 define Package/libsdl-mixer/description
35 SDL_mixer is a sample multi-channel audio mixer library.
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --disable-sdltest \
41 --enable-music-cmd \
42 --enable-music-wave \
43 --enable-music-mod \
44 --enable-music-mod-shared \
45 --enable-music-midi \
46 --disable-music-ogg \
47 --enable-music-ogg-tremor \
48 --enable-music-ogg-shared \
49 --disable-music-flac \
50 --enable-music-flag-shared \
51 --disable-music-mp3 \
52 --enable-music-mp3-shared \
53 --disable-smpegtest \
54 --disable-music-mp3-mad-gpl \
55 )
56 endef
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \
62 $(1)/usr/include/SDL/
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,la,so*} \
65 $(1)/usr/lib/
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
68 $(1)/usr/lib/pkgconfig/
69 endef
70
71 define Package/libsdl-mixer/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.so* $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,libsdl-mixer))