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
|
2006-08-01 11:59:44 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
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)
|
|
|
|
TITLE+= (with builtin SHA-1 support)
|
|
|
|
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)
|
|
|
|
This package is built with builtin (Steve Reid's public-domain) SHA-1 support
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ctorrent-openssl
|
|
|
|
$(call Package/ctorrent/Default)
|
|
|
|
DEPENDS+= +libopenssl
|
|
|
|
TITLE+= (with OpenSSL support)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ctorrent-openssl/description
|
|
|
|
$(call Package/ctorrent/Default/description)
|
|
|
|
This package is built with OpenSSL support.
|
2007-09-03 15:58:55 +00:00
|
|
|
endef
|
2008-02-14 10:25:09 +00:00
|
|
|
|
|
|
|
define Build/Template
|
|
|
|
|
|
|
|
$(STAMP_BUILT)-$(2): $(STAMP_PREPARED)
|
|
|
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
|
|
|
$(call Build/Configure/Default,$(3))
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
|
|
( cd $(PKG_BUILD_DIR); mv -f $(PKG_NAME) $(PKG_NAME)-$(2) )
|
|
|
|
touch $$@
|
|
|
|
|
|
|
|
$(STAMP_BUILT): $(STAMP_BUILT)-$(2)
|
|
|
|
|
|
|
|
define Package/$(1)/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME)-$(2) $$(1)/usr/bin/$(PKG_NAME)
|
|
|
|
endef
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
CONFIGURE_VARS += \
|
2007-09-30 19:29:26 +00:00
|
|
|
CXX="g++-uc" \
|
2007-09-30 19:48:02 +00:00
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
|
|
|
|
|
2008-02-14 10:25:09 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_ctorrent),)
|
|
|
|
define Build/with-ssl
|
|
|
|
$(call Build/Template,ctorrent,with-ssl, \
|
|
|
|
--with-ssl=no \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
$(eval $(Build/with-ssl))
|
2006-08-01 11:59:44 +00:00
|
|
|
|
2008-02-14 10:25:09 +00:00
|
|
|
ifneq ($(SDK)$(CONFIG_PACKAGE_ctorrent-openssl),)
|
|
|
|
define Build/with-openssl
|
|
|
|
$(call Build/Template,ctorrent-openssl,with-openssl, \
|
|
|
|
--with-ssl="$(STAGING_DIR)/usr" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
$(eval $(Build/with-openssl))
|
2006-08-01 11:59:44 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ctorrent))
|
2008-02-14 10:25:09 +00:00
|
|
|
$(eval $(call BuildPackage,ctorrent-openssl))
|