Merge pull request #174 from brynet/patch-1
[feed/packages.git] / sound / lame / Makefile
1 #
2 # Copyright (C) 2007-2014 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.99.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/lame
17 PKG_MD5SUM:=84835b313d4a8b68f5349816d33e07ce
18 PKG_FIXUP:=autoreconf
19
20 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
21
22 PKG_LICENSE:=LGPL-2.0
23 PKG_LICENSE_FILES:=COPYING LICENSE
24
25 include $(INCLUDE_DIR)/package.mk
26
27 PKG_INSTALL=1
28
29 define Package/lame/Default
30 SECTION:=sound
31 CATEGORY:=Sound
32 URL:=http://sourceforge.net/projects/lame
33 DEPENDS:=@BUILD_PATENTED
34 endef
35
36 define Package/lame
37 $(call Package/lame/Default)
38 TITLE:=lame
39 MENU:=1
40 DEPENDS += +libncurses
41 endef
42
43 define Package/lame/description
44 lame mp3 encoder
45 endef
46
47 define Package/lame-lib
48 $(call Package/lame/Default)
49 TITLE:=lame-lib
50 endef
51
52 define Package/lame-lib/description
53 lame mp3 encoder libs
54 endef
55
56 define Build/Configure
57 $(call Build/Configure/Default, \
58 --disable-nasm \
59 )
60 endef
61
62
63 define Package/lame/install
64 $(INSTALL_DIR) $(1)/usr/bin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
66 endef
67
68 define Package/lame-lib/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
71 endef
72
73 define Build/InstallDev
74 $(INSTALL_DIR) $(1)/usr/include/lame
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
77 $(1)/usr/include/lame/
78 $(INSTALL_DIR) $(1)/usr/lib
79 $(CP) \
80 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
81 $(1)/usr/lib/
82 endef
83
84 $(eval $(call BuildPackage,lame-lib))
85 $(eval $(call BuildPackage,lame))