lede-packages-rs

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

Makefile (1550B)


      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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=loudmouth
     11 PKG_VERSION:=1.5.3
     12 PKG_RELEASE:=1
     13 
     14 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
     15 
     16 PKG_LICENSE:=LGPLv2.1
     17 PKG_LICENSE_FILES:=COPYING
     18 
     19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
     20 PKG_SOURCE_PROTO:=git
     21 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     22 PKG_SOURCE_URL:=https://github.com/mcabber/loudmouth.git
     23 PKG_SOURCE_VERSION:=$(PKG_VERSION)
     24 PKG_MD5SUM:=7616cf124a8d72d007e7475b5aeb20ad
     25 
     26 PKG_FIXUP:=autoreconf
     27 PKG_INSTALL:=1
     28 
     29 include $(INCLUDE_DIR)/package.mk
     30 
     31 define Package/loudmouth
     32   SECTION:=libs
     33   CATEGORY:=Libraries
     34   DEPENDS:=+glib2 +libopenssl
     35   TITLE:=loudmouth
     36   URL:=https://github.com/mcabber/loudmouth
     37 endef
     38 
     39 define Package/loudmouth/description
     40   Lightweight and easy-to-use C library for programming with the Jabber protocol
     41 endef
     42 
     43 CONFIGURE_ARGS += \
     44 	--with-ssl=openssl \
     45 	--with-idn=no
     46 
     47 define Build/InstallDev
     48 	$(INSTALL_DIR) $(1)/usr/include/
     49 	$(CP) \
     50 		$(PKG_INSTALL_DIR)/usr/include/loudmouth-1.0/ \
     51 		$(1)/usr/include/
     52 	$(INSTALL_DIR) $(1)/usr/lib/
     53 	$(CP) \
     54 		$(PKG_INSTALL_DIR)/usr/lib/*.so* \
     55 		$(1)/usr/lib/
     56 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
     57 	$(INSTALL_DATA) \
     58 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
     59 		$(1)/usr/lib/pkgconfig/
     60 endef
     61 
     62 define Package/loudmouth/install
     63 	$(INSTALL_DIR) $(1)/usr/lib
     64 	$(CP) \
     65 		$(PKG_INSTALL_DIR)/usr/lib/*.so* \
     66 		$(1)/usr/lib/
     67 endef
     68 
     69 $(eval $(call BuildPackage,loudmouth))