暂无描述

Makefile 2.4KB

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