nuke $Id$ in /packages as well
[packages.git] / net / mutella / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mutella
11 PKG_VERSION:=0.4.5
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=1a676eacf562e3b8de90493f99fe059c
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/mutella
23   SUBMENU:=P2P
24   SECTION:=net
25   CATEGORY:=Network
26   TITLE:=Gnutella client with command line and http interface
27   URL:=http://mutella.sourceforge.net/
28   DEPENDS:=+libncurses +libreadline +libpthread +libstdcpp +zlib
29 endef
30
31 define Package/mutella/description
32  Mutella supports all the functionality required to participate as
33  a full-featured node in the Gnutella network. "Full-featured" implies
34  support for file search, download and sharing. It is optimized for a
35  high-bandwidth connection, where it sets standards for server
36  performance and stability, but can also run on a modest-speed line.
37  .
38  Mutella can either be controlled via a colourful text mode interface
39  or via a web browser using a built in http interface.
40 endef
41
42 CONFIGURE_VARS += \
43         CXXFLAGS="$$$$CXXFLAGS -fno-rtti"  \
44
45 define Build/Prepare
46         $(call Build/Prepare/Default)
47         $(SED) 's,-I$$$$(includedir),,g' $(PKG_BUILD_DIR)/{mutella,util}/Makefile.in
48         $(SED) 's,-L$$$$(libdir),,g' $(PKG_BUILD_DIR)/{mutella,util}/Makefile.in
49 endef
50
51 define Build/Compile
52         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
53 endef
54
55 define Package/mutella/install
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mutella{,_sio} $(1)/usr/bin/
58         $(INSTALL_DIR) $(1)/usr/share
59         $(CP) $(PKG_INSTALL_DIR)/usr/share/mutella $(1)/usr/share/
60 endef
61
62 $(eval $(call BuildPackage,mutella))
63