2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
16 PKG_SOURCE_URL
:=https
://github.com
/haiwen
/libsearpc.git
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=8998e7b2c5587f0b94c48db24e2952d08def5add
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/nls.mk
26 define Package
/libsearpc
29 TITLE
:=Seafile RPC Library
30 MAINTAINER
:=Gergely Kiss
<mail.gery@gmail.com
>
31 URL
:=http
://seafile.com
/
32 DEPENDS
:=+glib2
+jansson
+python
$(ICONV_DEPENDS
)
35 define Package
/libsearpc
/description
36 Searpc is a simple C language RPC framework based on GObject system.
37 Searpc handles the serialization
/deserialization part of RPC
,
38 the transport part is left to users.
41 CONFIGURE_ARGS
+= --enable-compile-demo
=no \
44 TARGET_LDFLAGS
+= -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
-liconv
46 include $(INCLUDE_DIR
)/host-build.mk
55 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
56 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/lib
/searpc-codegen.py
$(STAGING_DIR_HOST
)/bin
/
59 $(eval
$(call HostBuild
))
61 define Build
/InstallDev
62 $(INSTALL_DIR
) $(1)/usr
/{bin
,include}
63 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsearpc.so
* $(1)/usr
/lib
/
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/searpc
* $(1)/usr
/include/
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libsearpc.
pc $(1)/usr
/lib
/pkgconfig
/
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/searpc-codegen.py
$(1)/usr
/bin
/
70 define Package
/libsearpc
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(INSTALL_DIR
) $(1)/usr
/lib
/python2.7
/site-packages
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsearpc.so
* $(1)/usr
/lib
/
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/python2.7
/site-packages
/pysearpc
$(1)/usr
/lib
/python2.7
/site-packages
/
77 $(eval
$(call BuildPackage
,libsearpc
))