f43b649018412a9c22d3ee057c45c61761377ae0
[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.99.5
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/lame
17 PKG_HASH:=24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff
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
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 CONFIG_VARS+=NASM=no
56
57 ifeq ($(ARCH),i386)
58 TARGET_CFLAGS+=-msse
59 endif
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))