You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2006-2008 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ctorrent
  9. PKG_VERSION:=dnh3.3.2
  10. PKG_RELEASE:=6
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/dtorrent \
  13. http://www.rahul.net/dholmes/ctorrent/
  14. PKG_MD5SUM:=59b23dd05ff70791cd6449effa7fc3b6
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/uclibc++.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ctorrent/Default
  19. SUBMENU:=BitTorrent
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=$(CXX_DEPENDS)
  23. TITLE:=console-based BitTorrent client
  24. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  25. URL:=http://www.rahul.net/dholmes/ctorrent/
  26. endef
  27. define Package/ctorrent/Default/description
  28. CTorrent is a BitTorrent client written in the C programming language,
  29. known to be a very robust and mature programming language, which produces
  30. fast and optimized application.
  31. endef
  32. define Package/ctorrent
  33. $(call Package/ctorrent/Default)
  34. TITLE+= (with OpenSSL support)
  35. DEPENDS+=+libopenssl
  36. VARIANT:=ssl
  37. endef
  38. define Package/ctorrent/description
  39. $(call Package/ctorrent/Default/description)
  40. This package is built with OpenSSL support.
  41. endef
  42. define Package/ctorrent-nossl
  43. $(call Package/ctorrent/Default)
  44. TITLE+= (with builtin SHA-1)
  45. VARIANT:=nossl
  46. endef
  47. define Package/ctorrent-nossl/description
  48. $(call Package/ctorrent/Default/description)
  49. This package is built with builtin (Steve Reid's public-domain) SHA-1 support
  50. endef
  51. CONFIGURE_VARS += \
  52. CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
  53. ifeq ($(BUILD_VARIANT),ssl)
  54. CONFIGURE_ARGS += \
  55. --with-ssl="$(STAGING_DIR)/usr"
  56. endif
  57. ifeq ($(BUILD_VARIANT),nossl)
  58. CONFIGURE_ARGS += \
  59. --with-ssl=no
  60. endif
  61. define Package/ctorrent/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME)
  64. endef
  65. Package/ctorrent-nossl/install = $(Package/ctorrent/install)
  66. $(eval $(call BuildPackage,ctorrent))
  67. $(eval $(call BuildPackage,ctorrent-nossl))