fix spurious rcs build errors
[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 # $Id$
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=lame
13 PKG_VERSION:=398
14 PKG_RELEASE:=1
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/lame
17 PKG_MD5SUM:=f44b9f8e1b5d8835d0a77f9cc9cedd1c
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 define Package/lame/Default
25 SECTION:=sound
26 CATEGORY:=Sound
27 URL:=http://sourceforge.net/projects/lame
28 endef
29
30 define Package/lame
31 $(call Package/lame/Default)
32 TITLE:=lame
33 MENU:=1
34 endef
35
36 define Package/lame/description
37 lame mp3 encoder
38 endef
39
40 define Package/lame-lib
41 $(call Package/lame/Default)
42 TITLE:=lame-lib
43 DEPENDS:=lame
44 endef
45
46 define Package/lame-lib/description
47 lame mp3 encoder libs
48 endef
49
50 define Package/lame/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lame $(1)/usr/bin/
53 endef
54
55 define Package/lame-lib/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
58 endef
59
60 define Build/InstallDev
61 $(INSTALL_DIR) $(1)/usr/include/lame
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/include/lame/*.h \
64 $(1)/usr/include/lame/
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
68 $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,lame-lib))
72 $(eval $(call BuildPackage,lame))