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.

100 lines
2.7 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.5
  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:=11e5281c239474756ed606bffe8f24c1089a3a9eb2502cfac7815d25ebc4585a
  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. PYTHON3_PKG_BUILD:=0
  23. include $(INCLUDE_DIR)/package.mk
  24. include $(INCLUDE_DIR)/nls.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. endef
  53. define Package/python3-seafile-ccnet/description
  54. $(call Package/seafile-ccnet/description)
  55. This package contains Python bindings for Ccnet.
  56. endef
  57. CONFIGURE_ARGS += \
  58. --disable-console \
  59. --disable-ldap \
  60. --enable-python \
  61. --with-mysql="$(STAGING_DIR)/usr/bin/mysql_config"
  62. CONFIGURE_VARS += \
  63. PYTHON="$(HOST_PYTHON3_BIN)"
  64. define Package/seafile-ccnet/install
  65. $(INSTALL_DIR) $(1)/usr/{lib,libexec}
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/libexec/
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.so* $(1)/usr/lib/
  68. endef
  69. define Build/InstallDev
  70. $(INSTALL_DIR) $(1)/usr/include/ccnet
  71. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  72. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  73. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/ccnet/*.h $(1)/usr/include/ccnet/
  74. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libccnet.pc $(1)/usr/lib/pkgconfig/
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.{a,la,so*} $(1)/usr/lib/
  76. endef
  77. Py3Package/python3-seafile-ccnet/install:=:
  78. $(eval $(call BuildPackage,seafile-ccnet))
  79. $(eval $(call Py3Package,python3-seafile-ccnet))
  80. $(eval $(call BuildPackage,python3-seafile-ccnet))
  81. $(eval $(call BuildPackage,python3-seafile-ccnet-src))