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.

107 lines
3.1 KiB

  1. #
  2. # Copyright (C) 2007-2017 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:=seafile-ccnet
  9. PKG_VERSION:=7.1.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/haiwen/ccnet-server/tar.gz/v$(PKG_VERSION)-server?
  13. PKG_HASH:=32d3d7290415497c52ab407a64468538662dde81ccd139b6e4499e3f2c5b8d4b
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
  15. PKG_LICENSE:=AGPL-3.0-only
  16. PKG_LICENSE_FILES:=LICENSE.txt
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/ccnet-server-$(PKG_VERSION)-server
  18. PKG_BUILD_DEPENDS:=vala/host
  19. PKG_FIXUP:=autoreconf
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. include ../../lang/python/python-package.mk
  25. include ../../lang/python/python3-package.mk
  26. define Package/seafile-ccnet
  27. SECTION:=net
  28. CATEGORY:=Network
  29. TITLE:=Seafile server - ccnet component
  30. URL:=http://seafile.com/
  31. DEPENDS:= \
  32. +glib2 \
  33. +jansson \
  34. +libevent2 \
  35. +libmariadb \
  36. +libopenssl \
  37. +libpthread \
  38. +libsearpc \
  39. +libsqlite3 \
  40. +libuuid \
  41. $(ICONV_DEPENDS)
  42. endef
  43. define Package/seafile-ccnet/description
  44. Ccnet is a framework for writing networked applications in C.
  45. endef
  46. define Package/python3-seafile-ccnet
  47. SECTION:=lang
  48. CATEGORY:=Languages
  49. SUBMENU:=Python
  50. TITLE:=Python bindings for Seafile Ccnet
  51. DEPENDS:=+seafile-ccnet +python3-light +python3-searpc
  52. VARIANT:=python3
  53. endef
  54. define Package/python3-seafile-ccnet/description
  55. $(call Package/seafile-ccnet/description)
  56. This package contains Python bindings for Ccnet.
  57. endef
  58. CONFIGURE_ARGS += \
  59. --disable-console \
  60. --disable-ldap \
  61. --enable-python \
  62. --with-mysql="$(STAGING_DIR)/usr/bin/mysql_config"
  63. # Include Python 2 bindings in this package to maintain compatibility with previous versions
  64. define Package/seafile-ccnet/install
  65. $(INSTALL_DIR) $(1)/usr/{lib,libexec}
  66. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/ccnet
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/libexec/
  68. $(INSTALL_DATA) $(PKG_BUILD_DIR)/python/ccnet/*.py $(1)$(PYTHON_PKG_DIR)/ccnet/
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.so* $(1)/usr/lib/
  70. endef
  71. define Build/InstallDev
  72. $(INSTALL_DIR) $(1)/usr/include/ccnet
  73. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  74. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  75. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/ccnet/*.h $(1)/usr/include/ccnet/
  76. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libccnet.pc $(1)/usr/lib/pkgconfig/
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.{a,la,so*} $(1)/usr/lib/
  78. endef
  79. define Py3Build/Compile
  80. rm -rf $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/ccnet
  81. $(INSTALL_DIR) $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/ccnet
  82. $(INSTALL_DATA) $(PKG_BUILD_DIR)/python/ccnet/*.py $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/ccnet/
  83. endef
  84. Py3Package/python3-seafile-ccnet/install:=:
  85. $(eval $(call BuildPackage,seafile-ccnet))
  86. $(eval $(call Py3Package,python3-seafile-ccnet))
  87. $(eval $(call BuildPackage,python3-seafile-ccnet))
  88. $(eval $(call BuildPackage,python3-seafile-ccnet-src))