[packages] Fix/Cleanup libsdl-mixer
[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_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libsdl-mixer
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Simple DirectMedia Layer Sound Mixer
27 URL:=http://www.libsdl.org/projects/SDL_mixer/
28 DEPENDS:=+libsdl +libmikmod +libvorbisidec
29 endef
30
31 define Package/libsdl-mixer/description
32 SDL_mixer is a sample multi-channel audio mixer library.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --disable-sdltest \
38 --enable-music-cmd \
39 --enable-music-wave \
40 --enable-music-mod \
41 --enable-music-mod-shared \
42 --enable-music-midi \
43 --disable-music-ogg \
44 --enable-music-ogg-tremor \
45 --enable-music-ogg-shared \
46 --disable-music-flac \
47 --enable-music-flag-shared \
48 --disable-music-mp3 \
49 --enable-music-mp3-shared \
50 --disable-smpegtest \
51 --disable-music-mp3-mad-gpl \
52 )
53 endef
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig
57 $(CP) \
58 $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \
59 $(1)/usr/include/SDL/
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,la,so*} \
62 $(1)/usr/lib/
63 $(INSTALL_DATA) \
64 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
65 $(1)/usr/lib/pkgconfig/
66 endef
67
68 define Package/libsdl-mixer/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.so* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libsdl-mixer))