Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #
  2. # Copyright (C) 2007-2016 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:=5.1.4
  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.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=44f74fdc5160c1bf16a92e71d79b856763ddbc15
  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 (=5.1.4-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))