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-2015 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:=4.1.2
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)-2
  11. PKG_LICENSE:=GPL-3.0
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/haiwen/ccnet.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=a73109f09af4ecc49cdc4c57cdde51b38e15c31a
  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. define Package/seafile-ccnet
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=Seafile server - ccnet component
  25. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  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. libsearpc/host
  45. TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -liconv \
  46. -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient -lz
  47. define Package/seafile-ccnet/install
  48. $(INSTALL_DIR) $(1)/usr/{bin,lib}
  49. $(INSTALL_DIR) $(1)/usr/lib/python2.7/site-packages
  50. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ccnet* $(1)/usr/bin/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.7/site-packages/ccnet $(1)/usr/lib/python2.7/site-packages/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.so* $(1)/usr/lib/
  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.a $(1)/usr/lib/
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libccnet.so* $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,seafile-ccnet))