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.

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