[packages] apr: update to v1.3.9
[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:=2
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 DEPENDS:=lame
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))