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