2 # Copyright (C) 2015 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
15 PKG_LICENSE_FILES
:=COPYING
16 PKG_MAINTAINER
:=Chih-Wei Chen
<changeway@gmail.com
>
19 PKG_SOURCE_URL
=https
://github.com
/strophe
/libstrophe
20 PKG_SOURCE_SUBDIR
=$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_SOURCE_VERSION
:=9931ad4fa2aa7f204c608010eb2ebf84bcf7d542
22 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
23 PKG_MIRROR_MD5SUM
:=6a499bcfc7c52db6765957ff38f48a344ad121ac0b665fd3d4adb7d8deadc427
28 PKG_CONFIG_DEPENDS
:= \
29 CONFIG_libstrophe-libxml2 \
30 CONFIG_libstrophe-expat
32 include $(INCLUDE_DIR
)/package.mk
34 ifeq ($(CONFIG_libstrophe-libxml2
),y
)
39 define Package
/libstrophe
42 TITLE
:=XMPP client library
43 URL
:=http
://strophe.im
/libstrophe
44 DEPENDS
:= +libopenssl
+libstrophe-libxml2
:libxml2
+libstrophe-expat
:libexpat
48 define Package
/libstrophe
/description
49 A simple
, lightweight C library for writing XMPP clients
52 define Package
/libstrophe
/config
53 source
"$(SOURCE)/Config.in"
56 define Build
/InstallDev
57 $(INSTALL_DIR
) $(1)/usr
/
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ $(1)/usr
/
60 $(INSTALL_DIR
) $(1)/usr
/lib
/
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libstrophe.
{la
,a
,so
*} $(1)/usr
/lib
/
64 define Package
/libstrophe
/install
65 $(INSTALL_DIR
) $(1)/usr
/lib
/
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libstrophe.so.
* $(1)/usr
/lib
69 $(eval
$(call BuildPackage
,libstrophe
))