2 # Copyright (C) 2009 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
14 PKG_SOURCE_URL:=http://www.balabit.com/downloads/files/eventlog/0.2/
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
17 include $(INCLUDE_DIR)/package.mk
19 define Package/libeventlog
22 TITLE:=A new API to format and send structured log messages.
25 define Package/eventlog/description
26 A new API to format and send structured log messages. It supports multiple message
27 representations (plain, XML attributes and XML tags) and multiple output methods
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 DESTDIR="$(PKG_INSTALL_DIR)" \
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/eventlog $(1)/usr/include/
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.{a,so*} $(1)/usr/lib/
42 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/eventlog.pc $(1)/usr/lib/pkgconfig/
46 define Package/libeventlog/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.so* $(1)/usr/lib/
51 $(eval $(call BuildPackage,libeventlog))