2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=1a676eacf562e3b8de90493f99fe059c
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/mutella
24 TITLE
:=Gnutella client with command line and http interface
25 URL
:=http
://mutella.sourceforge.net
/
26 DEPENDS
:=+libncurses
+libreadline
+libpthread
+uclibcxx
+zlib
29 define Package
/mutella
/description
30 Mutella supports
all the functionality required to participate
as
31 a full-featured node in the Gnutella network.
"Full-featured" implies
32 support for file search
, download and sharing. It is optimized for a
33 high-bandwidth connection
, where it sets standards for server
34 performance and stability
, but can also run on a modest-speed line.
36 Mutella can either be controlled via a colourful text mode interface
37 or via a web browser using a built in http interface.
42 CXXFLAGS
="$$$$CXXFLAGS -fno-rtti" \
45 $(call Build
/Prepare
/Default
)
46 $(SED
) 's,-I$$$$(includedir),,g' $(PKG_BUILD_DIR
)/{mutella
,util
}/Makefile.in
47 $(SED
) 's,-L$$$$(libdir),,g' $(PKG_BUILD_DIR
)/{mutella
,util
}/Makefile.in
50 define Build
/Configure
51 $(call Build
/Configure
/Default
)
52 $(call libtool_disable_rpath
)
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
57 $(call libtool_fixup_libdir
,$(PKG_INSTALL_DIR
))
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" install
61 define Package
/mutella
/install
62 $(INSTALL_DIR
) $(1)/usr
/bin
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/mutella
{,_sio
} $(1)/usr
/bin
/
64 $(INSTALL_DIR
) $(1)/usr
/share
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/mutella
$(1)/usr
/share
/
68 $(eval
$(call BuildPackage
,mutella
))