From 437621931a1561ae23604c619fde40f78d750c3c Mon Sep 17 00:00:00 2001 From: Gergely Kiss Date: Sat, 30 Apr 2016 10:37:30 +0200 Subject: seafile: import version 5.1.1 and its dependencies Signed-off-by: Gergely Kiss --- libs/libsearpc/Makefile | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'libs/libsearpc') diff --git a/libs/libsearpc/Makefile b/libs/libsearpc/Makefile index 15c0e8ba3..2e99b2ea7 100644 --- a/libs/libsearpc/Makefile +++ b/libs/libsearpc/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2014 OpenWrt.org +# Copyright (C) 2007-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libsearpc -PKG_VERSION:=3.1.7 -PKG_RELEASE=$(PKG_SOURCE_VERSION) +PKG_VERSION:=5.1.1 +PKG_RELEASE=$(PKG_SOURCE_VERSION)-1 PKG_LICENSE:=GPL-3.0 PKG_SOURCE_PROTO:=git @@ -22,6 +22,7 @@ PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk +$(call include_mk, python-package.mk) define Package/libsearpc SECTION:=libs @@ -43,21 +44,6 @@ CONFIGURE_ARGS += --enable-compile-demo=no \ TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -liconv -include $(INCLUDE_DIR)/host-build.mk - -define Host/Configure -endef - -define Host/Compile -endef - -define Host/Install - $(INSTALL_DIR) $(STAGING_DIR)/host/bin - $(INSTALL_BIN) $(HOST_BUILD_DIR)/lib/searpc-codegen.py $(STAGING_DIR)/host/bin/ -endef - -$(eval $(call HostBuild)) - define Build/InstallDev $(INSTALL_DIR) $(1)/usr/{bin,include} $(INSTALL_DIR) $(1)/usr/lib/pkgconfig @@ -69,9 +55,10 @@ endef define Package/libsearpc/install $(INSTALL_DIR) $(1)/usr/lib - $(INSTALL_DIR) $(1)/usr/lib/python2.7/site-packages + $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsearpc.so* $(1)/usr/lib/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.7/site-packages/pysearpc $(1)/usr/lib/python2.7/site-packages/ + $(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/pysearpc $(1)$(PYTHON_PKG_DIR) + find $(1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f endef $(eval $(call BuildPackage,libsearpc)) -- cgit v1.2.3