[package] lame-lib does not depend on lame (#6366)
[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 endef
28
29 define Package/lame
30 $(call Package/lame/Default)
31 TITLE:=lame
32 MENU:=1
33 endef
34
35 define Package/lame/description
36 lame mp3 encoder
37 endef
38
39 define Package/lame-lib
40 $(call Package/lame/Default)
41 TITLE:=lame-lib
42 endef
43
44 define Package/lame-lib/description
45 lame mp3 encoder libs
46 endef
47
48 define Build/Configure
49 $(call Build/Configure/Default, \
50 --disable-nasm \
51 )
52 endef
53
54
55 define Package/lame/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
58 endef
59
60 define Package/lame-lib/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
63 endef
64
65 define Build/InstallDev
66 $(INSTALL_DIR) $(1)/usr/include/lame
67 $(INSTALL_DATA) \
68 $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
69 $(1)/usr/include/lame/
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) \
72 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
73 $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,lame-lib))
77 $(eval $(call BuildPackage,lame))