sound/lame: Update to 3.100
[feed/packages.git] / sound / lame / Makefile
1 #
2 # Copyright (C) 2007-2016 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.100
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/lame
17 PKG_HASH:=ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e
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 endef
34
35 define Package/lame
36 $(call Package/lame/Default)
37 TITLE:=lame
38 MENU:=1
39 DEPENDS += +libncurses +lame-lib
40 endef
41
42 define Package/lame/description
43 lame mp3 encoder
44 endef
45
46 define Package/lame-lib
47 $(call Package/lame/Default)
48 TITLE:=lame-lib
49 endef
50
51 define Package/lame-lib/description
52 lame mp3 encoder libs
53 endef
54
55 ifeq ($(ARCH),i386)
56 TARGET_CFLAGS+=-msse
57 endif
58
59 CONFIGURE_ARGS += --disable-gtktest --disable-static
60
61 define Package/lame/install
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
64 endef
65
66 define Package/lame-lib/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
69 endef
70
71 define Build/InstallDev
72 $(INSTALL_DIR) $(1)/usr/include/lame
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
75 $(1)/usr/include/lame/
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) \
78 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
79 $(1)/usr/lib/
80 endef
81
82 $(eval $(call BuildPackage,lame-lib))
83 $(eval $(call BuildPackage,lame))