2 # Copyright (C) 2006-2010 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:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.balabit.com/downloads/files/libol/0.3
16 PKG_MD5SUM:=cbadf4b7ea276dfa85acc38a1cc5ff17
21 include $(INCLUDE_DIR)/package.mk
26 TITLE:=Support library for syslog-ng
27 URL:=http://www.balabit.com/products/syslog_ng/
30 define Build/Configure
31 $(call Build/Configure/Default, \
37 TARGET_CFLAGS += $(FPIC)
39 # pass CFLAGS again to override -O2 set by configure
40 MAKE_ARGS += CFLAGS="$(TARGET_CFLAGS)"
42 define Build/InstallDev
43 $(INSTALL_DIR) $(2)/bin
45 $(PKG_INSTALL_DIR)/usr/bin/libol-config \
48 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
51 $(INSTALL_DIR) $(1)/usr/include/libol
53 $(PKG_INSTALL_DIR)/usr/include/libol/*.h \
54 $(1)/usr/include/libol/
56 $(INSTALL_DIR) $(1)/usr/lib
58 $(PKG_INSTALL_DIR)/usr/lib/libol.{a,la,so*} \
62 define Package/libol/install
63 $(INSTALL_DIR) $(1)/usr/lib
65 $(PKG_INSTALL_DIR)/usr/lib/libol.so* \
69 $(eval $(call BuildPackage,libol))