2 # Copyright (C) 2006-2008 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
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=Support library for syslog-ng
25 URL
:=http
://www.balabit.com
/products
/syslog_ng
/
28 define Build
/Configure
29 $(call Build
/Configure
/Default
, \
35 TARGET_CFLAGS
+= $(FPIC
)
38 # pass CFLAGS again to override -O2 set by configure
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 CFLAGS
="$(TARGET_CFLAGS)" \
41 DESTDIR
="$(PKG_INSTALL_DIR)" \
45 define Build
/InstallDev
46 $(INSTALL_DIR
) $(2)/bin
48 $(PKG_INSTALL_DIR
)/usr
/bin
/libol-config \
51 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
54 $(INSTALL_DIR
) $(1)/usr
/include/libol
56 $(PKG_INSTALL_DIR
)/usr
/include/libol
/*.h \
57 $(1)/usr
/include/libol
/
59 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(PKG_INSTALL_DIR
)/usr
/lib
/libol.
{a
,la
,so
*} \
65 define Package
/libol
/install
66 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(PKG_INSTALL_DIR
)/usr
/lib
/libol.so
* \
72 $(eval
$(call BuildPackage
,libol
))