lede-packages-rs

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

Makefile (1254B)


      1 include $(TOPDIR)/rules.mk
      2 
      3 PKG_NAME:=eventlog
      4 PKG_VERSION:=0.2.12
      5 PKG_RELEASE:=2
      6 
      7 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
      8 
      9 PKG_SOURCE_URL:=https://my.balabit.com/downloads/eventlog/0.2/
     10 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
     11 PKG_MD5SUM:=3d6ebda8a161d36cb40d09328f78786b
     12 
     13 PKG_FIXUP:=autoreconf
     14 PKG_INSTALL:=1
     15 
     16 include $(INCLUDE_DIR)/package.mk
     17 
     18 define Package/libeventlog
     19   SECTION:=libs
     20   CATEGORY:=Libraries
     21   TITLE:=A new API to format and send structured log messages.
     22 endef
     23 
     24 define Package/eventlog/description
     25   A new API to format and send structured log messages. It supports multiple message
     26   representations (plain, XML attributes and XML tags) and multiple output methods
     27   (local syslogd).
     28 endef
     29 
     30 define Build/InstallDev
     31 	$(INSTALL_DIR) $(1)/usr/include
     32 	$(CP) $(PKG_INSTALL_DIR)/usr/include/eventlog $(1)/usr/include/
     33 	$(INSTALL_DIR) $(1)/usr/lib
     34 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.{a,so*} $(1)/usr/lib/
     35 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     36 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/eventlog.pc $(1)/usr/lib/pkgconfig/
     37 endef
     38 
     39 define Package/libeventlog/install
     40 	$(INSTALL_DIR) $(1)/usr/lib
     41 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.so* $(1)/usr/lib/
     42 endef
     43 
     44 $(eval $(call BuildPackage,libeventlog))