2006-10-30 13:51:50 +00:00
|
|
|
#
|
2008-04-10 16:36:32 +00:00
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2006-08-01 11:59:44 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ctorrent
|
2008-06-20 13:52:40 +00:00
|
|
|
PKG_VERSION:=dnh3.3.2
|
2010-03-09 00:07:00 +00:00
|
|
|
PKG_RELEASE:=5
|
2006-08-01 11:59:44 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2008-04-10 16:36:32 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/dtorrent \
|
|
|
|
http://www.rahul.net/dholmes/ctorrent/
|
2008-06-20 13:52:40 +00:00
|
|
|
PKG_MD5SUM:=59b23dd05ff70791cd6449effa7fc3b6
|
2006-08-01 11:59:44 +00:00
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
2006-08-01 11:59:44 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-02-14 10:25:09 +00:00
|
|
|
define Package/ctorrent/Default
|
2007-09-25 18:38:55 +00:00
|
|
|
SUBMENU:=BitTorrent
|
2006-08-01 11:59:44 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2008-02-14 10:25:09 +00:00
|
|
|
DEPENDS:=+uclibcxx
|
2006-08-01 11:59:44 +00:00
|
|
|
TITLE:=console-based BitTorrent client
|
2010-10-16 11:23:19 +00:00
|
|
|
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
2006-08-01 11:59:44 +00:00
|
|
|
URL:=http://www.rahul.net/dholmes/ctorrent/
|
|
|
|
endef
|
2007-09-03 15:58:55 +00:00
|
|
|
|
2008-02-14 10:25:09 +00:00
|
|
|
define Package/ctorrent/Default/description
|
|
|
|
CTorrent is a BitTorrent client written in the C programming language,
|
|
|
|
known to be a very robust and mature programming language, which produces
|
|
|
|
fast and optimized application.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ctorrent
|
|
|
|
$(call Package/ctorrent/Default)
|
2010-02-28 17:32:15 +00:00
|
|
|
TITLE+= (with OpenSSL support)
|
2010-03-01 18:31:27 +00:00
|
|
|
DEPENDS+=+libopenssl
|
2010-02-28 17:32:15 +00:00
|
|
|
VARIANT:=ssl
|
2008-02-14 10:25:09 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/ctorrent/description
|
2008-02-14 10:25:09 +00:00
|
|
|
$(call Package/ctorrent/Default/description)
|
2010-02-28 17:32:15 +00:00
|
|
|
This package is built with OpenSSL support.
|
2008-02-14 10:25:09 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
define Package/ctorrent-nossl
|
2008-02-14 10:25:09 +00:00
|
|
|
$(call Package/ctorrent/Default)
|
2010-02-28 17:32:15 +00:00
|
|
|
TITLE+= (with builtin SHA-1)
|
|
|
|
VARIANT:=nossl
|
2008-02-14 10:25:09 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
define Package/ctorrent-nossl/description
|
2008-02-14 10:25:09 +00:00
|
|
|
$(call Package/ctorrent/Default/description)
|
2010-02-28 17:32:15 +00:00
|
|
|
This package is built with builtin (Steve Reid's public-domain) SHA-1 support
|
2007-09-03 15:58:55 +00:00
|
|
|
endef
|
2008-02-14 10:25:09 +00:00
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
CXX="g++-uc" \
|
2010-03-09 00:07:00 +00:00
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
|
2012-02-14 17:34:08 +00:00
|
|
|
LIBS="-nodefaultlibs -lc -luClibc++ $(LIBGCC_S) -lc"
|
2008-02-14 10:25:09 +00:00
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-ssl="$(STAGING_DIR)/usr"
|
|
|
|
endif
|
2008-02-14 10:25:09 +00:00
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),nossl)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-ssl=no
|
|
|
|
endif
|
2008-02-14 10:25:09 +00:00
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
define Package/ctorrent/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
|
2008-02-14 10:25:09 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-28 17:32:15 +00:00
|
|
|
Package/ctorrent-nossl/install = $(Package/ctorrent/install)
|
2006-08-01 11:59:44 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ctorrent))
|
2010-02-28 17:32:15 +00:00
|
|
|
$(eval $(call BuildPackage,ctorrent-nossl))
|