added shorewall from #2553
[openwrt/svn-archive/archive.git] / net / mutella / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mutella
12 PKG_VERSION:=0.4.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=1a676eacf562e3b8de90493f99fe059c
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/mutella
22 SUBMENU:=P2P
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Gnutella client with command line and http interface
26 URL:=http://mutella.sourceforge.net/
27 DEPENDS:=+libncurses +libreadline +libpthread +uclibcxx +zlib
28 endef
29
30 define Package/mutella/description
31 Mutella supports all the functionality required to participate as
32 a full-featured node in the Gnutella network. "Full-featured" implies
33 support for file search, download and sharing. It is optimized for a
34 high-bandwidth connection, where it sets standards for server
35 performance and stability, but can also run on a modest-speed line.
36 .
37 Mutella can either be controlled via a colourful text mode interface
38 or via a web browser using a built in http interface.
39 endef
40
41 CONFIGURE_VARS += \
42 CXX="g++-uc+std" \
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/Configure
52 $(call Build/Configure/Default)
53 $(call libtool_disable_rpath)
54 endef
55
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) all
58 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
59 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
60 endef
61
62 define Package/mutella/install
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(CP) $(PKG_INSTALL_DIR)/usr/bin/mutella{,_sio} $(1)/usr/bin/
65 $(INSTALL_DIR) $(1)/usr/share
66 $(CP) $(PKG_INSTALL_DIR)/usr/share/mutella $(1)/usr/share/
67 endef
68
69 $(eval $(call BuildPackage,mutella))
70