[packages] sshtunnel: Add SSH VPN support
[packages.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:=3
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/lame
16 PKG_MD5SUM:=719dae0ee675d0c16e0e89952930ed35
17 PKG_FIXUP:=autoreconf
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   DEPENDS:=@BUILD_PATENTED
28 endef
29
30 define Package/lame
31 $(call Package/lame/Default)
32   TITLE:=lame
33   MENU:=1
34   DEPENDS += +libncurses
35 endef
36
37 define Package/lame/description
38 lame mp3 encoder
39 endef
40
41 define Package/lame-lib
42 $(call Package/lame/Default)
43   TITLE:=lame-lib
44 endef
45
46 define Package/lame-lib/description
47 lame mp3 encoder libs
48 endef
49
50 define Build/Configure
51         $(call Build/Configure/Default, \
52         --disable-nasm \
53         )
54 endef
55
56
57 define Package/lame/install
58         $(INSTALL_DIR) $(1)/usr/bin
59         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
60 endef
61
62 define Package/lame-lib/install
63         $(INSTALL_DIR) $(1)/usr/lib
64         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
65 endef
66
67 define Build/InstallDev
68         $(INSTALL_DIR) $(1)/usr/include/lame
69         $(INSTALL_DATA) \
70                 $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
71                 $(1)/usr/include/lame/
72         $(INSTALL_DIR) $(1)/usr/lib
73         $(CP) \
74                 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
75                 $(1)/usr/lib/
76 endef
77
78 $(eval $(call BuildPackage,lame-lib))
79 $(eval $(call BuildPackage,lame))