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.

97 lines
2.4 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-svn
  9. PKG_REV:=322
  10. PKG_VERSION:=r$(PKG_REV)
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://dtorrent.svn.sourceforge.net/svnroot/dtorrent/dtorrent/trunk
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=$(PKG_REV)
  16. PKG_SOURCE_PROTO:=svn
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/ctorrent-svn/Default
  20. SUBMENU:=BitTorrent
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+uclibcxx
  24. TITLE:=console-based BitTorrent client
  25. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  26. URL:=http://www.rahul.net/dholmes/ctorrent/
  27. endef
  28. define Package/ctorrent-svn/Default/description
  29. CTorrent is a BitTorrent client written in the C programming language,
  30. known to be a very robust and mature programming language, which produces
  31. fast and optimized application.
  32. endef
  33. define Package/ctorrent-svn
  34. $(call Package/ctorrent-svn/Default)
  35. TITLE+= (with OpenSSL support)
  36. DEPENDS+=+libopenssl
  37. VARIANT:=ssl
  38. endef
  39. define Package/ctorrent-svn/description
  40. $(call Package/ctorrent-svn/Default/description)
  41. This package is built with OpenSSL support.
  42. endef
  43. define Package/ctorrent-svn-nossl
  44. $(call Package/ctorrent-svn/Default)
  45. TITLE+= (with builtin SHA-1)
  46. VARIANT:=nossl
  47. endef
  48. define Package/ctorrent-svn-nossl/description
  49. $(call Package/ctorrent-svn/Default/description)
  50. This package is built with builtin (Steve Reid's public-domain) SHA-1 support
  51. endef
  52. CONFIGURE_VARS += \
  53. CXX="g++-uc" \
  54. LIBS="-nodefaultlibs -luClibc++ $(LIBGCC_S) -lc"
  55. ifeq ($(BUILD_VARIANT),ssl)
  56. CONFIGURE_ARGS += \
  57. --with-ssl="$(STAGING_DIR)/usr"
  58. endif
  59. ifeq ($(BUILD_VARIANT),nossl)
  60. CONFIGURE_ARGS += \
  61. --with-ssl=no
  62. endif
  63. define Build/Configure
  64. (cd $(PKG_BUILD_DIR); touch \
  65. configure.ac \
  66. aclocal.m4 \
  67. Makefile.in \
  68. config.h.in \
  69. configure \
  70. );
  71. $(call Build/Configure/Default)
  72. endef
  73. define Package/ctorrent-svn/install
  74. $(INSTALL_DIR) $(1)/usr/bin
  75. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ctorrent $(1)/usr/bin/ctorrent
  76. endef
  77. Package/ctorrent-svn-nossl/install = $(Package/ctorrent-svn/install)
  78. $(eval $(call BuildPackage,ctorrent-svn))
  79. $(eval $(call BuildPackage,ctorrent-svn-nossl))