[packages] make libintl and libiconv stub/full implementations switchable, use the...
[openwrt/svn-archive/archive.git] / libs / libol / Makefile
1 #
2 # Copyright (C) 2006-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:=libol
11 PKG_VERSION:=0.3.18
12 PKG_RELEASE:=2
13
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
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libol
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Support library for syslog-ng
27 URL:=http://www.balabit.com/products/syslog_ng/
28 endef
29
30 define Build/Configure
31 $(call Build/Configure/Default, \
32 --enable-shared \
33 --enable-static \
34 )
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 # pass CFLAGS again to override -O2 set by configure
40 MAKE_ARGS += CFLAGS="$(TARGET_CFLAGS)"
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(2)/bin
44 $(INSTALL_BIN) \
45 $(PKG_INSTALL_DIR)/usr/bin/libol-config \
46 $(2)/bin/
47 $(SED) \
48 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
49 $(2)/bin/libol-config
50
51 $(INSTALL_DIR) $(1)/usr/include/libol
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/include/libol/*.h \
54 $(1)/usr/include/libol/
55
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) \
58 $(PKG_INSTALL_DIR)/usr/lib/libol.{a,la,so*} \
59 $(1)/usr/lib/
60 endef
61
62 define Package/libol/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/libol.so* \
66 $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libol))