added nrpe from #2498
[openwrt/svn-archive/archive.git] / net / ctorrent / 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:=ctorrent
12 PKG_VERSION:=dnh3.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.rahul.net/dholmes/ctorrent/
17 PKG_MD5SUM:=23b37cd7b558ad6a27974b311499bab6
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ctorrent
22 SUBMENU:=BitTorrent
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libopenssl +uclibcxx
26 TITLE:=console-based BitTorrent client
27 URL:=http://www.rahul.net/dholmes/ctorrent/
28 endef
29
30 define Package/ctorrent/description
31 CTorrent is a BitTorrent client written in the C programming language,
32 known to be a very robust and mature programming language, which produces
33 fast and optimized application.
34 endef
35
36 CONFIGURE_VARS += \
37 CXX="g++-uc" \
38 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
39
40 define Build/Configure
41 $(call Build/Configure/Default,)
42 $(call libtool_disable_rpath)
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) all
47 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
48 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
49 endef
50
51 define Package/ctorrent/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,ctorrent))