lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1653B)


      1 #
      2 # Copyright (C) 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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=libstrophe
     11 PKG_VERSION:=0.9.1
     12 PKG_RELEASE=1
     13 
     14 PKG_LICENSE:=GPL-3.0
     15 PKG_LICENSE_FILES:=COPYING
     16 PKG_MAINTAINER:=Chih-Wei Chen <changeway@gmail.com>
     17 
     18 PKG_SOURCE_PROTO:=git
     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
     24 
     25 PKG_FIXUP:=autoreconf
     26 PKG_INSTALL:=1
     27 
     28 PKG_CONFIG_DEPENDS:= \
     29 	CONFIG_libstrophe-libxml2 \
     30 	CONFIG_libstrophe-expat
     31 
     32 include $(INCLUDE_DIR)/package.mk
     33 
     34 ifeq ($(CONFIG_libstrophe-libxml2),y)
     35 CONFIGURE_ARGS += \
     36 	--with-libxml2
     37 endif
     38 
     39 define Package/libstrophe
     40 	SECTION:=libs
     41 	CATEGORY:=Libraries
     42 	TITLE:=XMPP client library
     43 	URL:=http://strophe.im/libstrophe
     44 	DEPENDS:= +libopenssl +libstrophe-libxml2:libxml2 +libstrophe-expat:libexpat
     45 	MENU:=1
     46 endef
     47 
     48 define Package/libstrophe/description
     49 	A simple, lightweight C library for writing XMPP clients
     50 endef
     51 
     52 define Package/libstrophe/config
     53 	source "$(SOURCE)/Config.in"
     54 endef
     55 
     56 define Build/InstallDev
     57 	$(INSTALL_DIR) $(1)/usr/
     58 	$(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
     59 
     60 	$(INSTALL_DIR) $(1)/usr/lib/
     61 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.{la,a,so*} $(1)/usr/lib/
     62 endef
     63 
     64 define Package/libstrophe/install
     65 	$(INSTALL_DIR) $(1)/usr/lib/
     66 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libstrophe.so.* $(1)/usr/lib
     67 endef
     68 
     69 $(eval $(call BuildPackage,libstrophe))