update lame, fixes #3611
[openwrt/svn-archive/archive.git] / sound / lame / Makefile
1 #
2 # Copyright (C) 2007 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:=3.97
13 PKG_RELEASE:=1
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/lame
16 PKG_MD5SUM:=90a4acbb730d150dfe80de145126eef7
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/lame/Default
21 SECTION:=sound
22 CATEGORY:=Sound
23 URL:=http://sourceforge.net/projects/lame
24 endef
25
26 define Package/lame
27 $(call Package/lame/Default)
28 TITLE:=lame
29 MENU:=1
30 endef
31
32 define Package/lame/description
33 lame mp3 encoder
34 endef
35
36 define Package/lame-lib
37 $(call Package/lame/Default)
38 TITLE:=lame-lib
39 DEPENDS:=lame
40 endef
41
42 define Package/lame-lib/description
43 lame mp3 encoder libs
44 endef
45
46
47 define Build/Configure
48 $(call Build/Configure/Default)
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 all install
55 endef
56
57 define Package/lame/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
60 endef
61
62 define Package/lame-lib/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
65 endef
66
67 define Build/InstallDev
68 mkdir -p $(1)/usr/{lib,include}
69 ${CP} $(PKG_INSTALL_DIR)/usr/{lib,include} $(1)/usr/
70
71 endef
72
73 $(eval $(call BuildPackage,lame-lib))
74 $(eval $(call BuildPackage,lame))