c2bc99bec7b37817bd7ed62cee415a70021283fe
[openwrt/svn-archive/archive.git] / libs / eventlog / Makefile
1 #
2 # Copyright (C) 2009-2010 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:=eventlog
11 PKG_VERSION:=0.2.9
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=http://www.balabit.com/downloads/files/eventlog/0.2/
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=76e3d7a0b8f335c12099e9b91191fbf1
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libeventlog
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=A new API to format and send structured log messages.
27 endef
28
29 define Package/eventlog/description
30 A new API to format and send structured log messages. It supports multiple message
31 representations (plain, XML attributes and XML tags) and multiple output methods
32 (local syslogd).
33 endef
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/include
37 $(CP) $(PKG_INSTALL_DIR)/usr/include/eventlog $(1)/usr/include/
38 $(INSTALL_DIR) $(1)/usr/lib
39 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.{a,so*} $(1)/usr/lib/
40 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/eventlog.pc $(1)/usr/lib/pkgconfig/
42 endef
43
44 define Package/libeventlog/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.so* $(1)/usr/lib/
47 endef
48
49 $(eval $(call BuildPackage,libeventlog))