packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.
[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.96.1
13 PKG_RELEASE:=1
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/lame
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/lame/Default
20 SECTION:=sound
21 CATEGORY:=Sound
22 URL:=http://sourceforge.net/projects/lame
23 endef
24
25 define Package/lame
26 $(call Package/lame/Default)
27 TITLE:=lame
28 MENU:=1
29 endef
30
31 define Package/lame/description
32 lame mp3 encoder
33 endef
34
35 define Package/lame-lib
36 $(call Package/lame/Default)
37 TITLE:=lame-lib
38 DEPENDS:=lame
39 endef
40
41 define Package/lame-lib/description
42 lame mp3 encoder libs
43 endef
44
45
46 define Build/Configure
47 $(call Build/Configure/Default)
48 endef
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 all install
54 endef
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 mkdir -p $(1)/usr/{lib,include}
68 ${CP} $(PKG_INSTALL_DIR)/usr/{lib,include} $(1)/usr/
69
70 endef
71
72 $(eval $(call BuildPackage,lame-lib))
73 $(eval $(call BuildPackage,lame))