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.

76 lines
2.4 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:=6.3.0
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)-1
  11. PKG_LICENSE:=GPL-3.0
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/haiwen/ccnet-server.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=614926b161623b267b4fb77fa1861718da406103
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_MIRROR_HASH:=843660e05809e6a6e076cf4d5ea3a6aad65b9b03aa1eaa3b4d980a314e7aed61
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. include ../../lang/python/python-package.mk
  23. define Package/seafile-ccnet
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=Seafile server - ccnet component
  27. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  28. URL:=http://seafile.com/
  29. DEPENDS:=+libsearpc +libevent2 +libopenssl \
  30. +glib2 +python +libzdb +libuuid \
  31. +libpthread +libsqlite3 +jansson $(ICONV_DEPENDS)
  32. EXTRA_DEPENDS:=libsearpc (=3.0.8-12a01268825e9c7e17794c58c367e3b4db912ad9-1)
  33. endef
  34. define Package/seafile-ccnet/description
  35. Ccnet is a framework for writing networked applications in C.
  36. endef
  37. CONFIGURE_ARGS += --disable-client \
  38. --enable-server \
  39. --disable-ldap \
  40. --disable-cluster \
  41. --enable-python \
  42. --disable-server-pkg \
  43. --disable-static-build \
  44. --disable-compile-demo \
  45. --disable-console
  46. PKG_BUILD_DEPENDS:=vala/host
  47. TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -liconv \
  48. -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient -lz
  49. define Package/seafile-ccnet/install
  50. $(INSTALL_DIR) $(1)/usr/{bin,lib}
  51. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  52. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ccnet* $(1)/usr/bin/
  53. $(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/ccnet $(1)$(PYTHON_PKG_DIR)
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.so* $(1)/usr/lib/
  55. find $(1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
  56. endef
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/include
  59. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  60. $(CP) $(PKG_INSTALL_DIR)/usr/include/ccnet* $(1)/usr/include/
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libccnet.pc $(1)/usr/lib/pkgconfig/
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.so* $(1)/usr/lib/
  63. endef
  64. $(eval $(call BuildPackage,seafile-ccnet))