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.

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