liblame as well as the lame executable should depend on CONFIG_BUILD_PATENTED
[openwrt/svn-archive/archive.git] / sound / lame / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=lame
12 PKG_VERSION:=398-2
13 PKG_RELEASE:=3
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/lame
16 PKG_MD5SUM:=719dae0ee675d0c16e0e89952930ed35
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 define Package/lame/Default
24 SECTION:=sound
25 CATEGORY:=Sound
26 URL:=http://sourceforge.net/projects/lame
27 DEPENDS:=@BUILD_PATENTED
28 endef
29
30 define Package/lame
31 $(call Package/lame/Default)
32 TITLE:=lame
33 MENU:=1
34 endef
35
36 define Package/lame/description
37 lame mp3 encoder
38 endef
39
40 define Package/lame-lib
41 $(call Package/lame/Default)
42 TITLE:=lame-lib
43 endef
44
45 define Package/lame-lib/description
46 lame mp3 encoder libs
47 endef
48
49 define Build/Configure
50 $(call Build/Configure/Default, \
51 --disable-nasm \
52 )
53 endef
54
55
56 define Package/lame/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
59 endef
60
61 define Package/lame-lib/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
64 endef
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(1)/usr/include/lame
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
70 $(1)/usr/include/lame/
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) \
73 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
74 $(1)/usr/lib/
75 endef
76
77 $(eval $(call BuildPackage,lame-lib))
78 $(eval $(call BuildPackage,lame))