8f5676732e60defe0972b59add264644814d731f
[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 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ctorrent
24 SUBMENU:=BitTorrent
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libopenssl +uclibcxx
28 TITLE:=console-based BitTorrent client
29 URL:=http://www.rahul.net/dholmes/ctorrent/
30 endef
31
32 define Package/ctorrent/description
33 CTorrent is a BitTorrent client written in the C programming language,
34 known to be a very robust and mature programming language, which produces
35 fast and optimized application.
36 endef
37
38 CONFIGURE_VARS += \
39 CXX="g++-uc" \
40 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
44 endef
45
46 define Package/ctorrent/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,ctorrent))