[packages] Add missing libtool fixups
[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
17 PKG_FIXUP:=libtool
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libeventlog
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=A new API to format and send structured log messages.
26 endef
27
28 define Package/eventlog/description
29 A new API to format and send structured log messages. It supports multiple message
30 representations (plain, XML attributes and XML tags) and multiple output methods
31 (local syslogd).
32 endef
33
34 define Build/InstallDev
35 $(INSTALL_DIR) $(1)/usr/include
36 $(CP) $(PKG_INSTALL_DIR)/usr/include/eventlog $(1)/usr/include/
37 $(INSTALL_DIR) $(1)/usr/lib
38 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.{a,so*} $(1)/usr/lib/
39 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/eventlog.pc $(1)/usr/lib/pkgconfig/
41 endef
42
43 define Package/libeventlog/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.so* $(1)/usr/lib/
46 endef
47
48 $(eval $(call BuildPackage,libeventlog))