[packages] libiconv-full: autoreconf is broken with this package, use patch-libtool...
[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:=autoreconf
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 --with-sdl-exec-prefix="$(STAGING_DIR)/usr" \
56 )
57 endef
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \
63 $(1)/usr/include/SDL/
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,la,so*} \
66 $(1)/usr/lib/
67 $(INSTALL_DATA) \
68 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
69 $(1)/usr/lib/pkgconfig/
70 endef
71
72 define Package/libsdl-mixer/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.so* $(1)/usr/lib/
75 endef
76
77 $(eval $(call BuildPackage,libsdl-mixer))