nuke $Id$ in /packages as well
[openwrt/svn-archive/archive.git] / libs / libol / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=1
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 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libol
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Support library for syslog-ng
25 URL:=http://www.balabit.com/products/syslog_ng/
26 endef
27
28 define Build/Configure
29 $(call Build/Configure/Default, \
30 --enable-shared \
31 --enable-static \
32 )
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 define Build/Compile
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)" \
42 all install
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(2)/bin
47 $(INSTALL_BIN) \
48 $(PKG_INSTALL_DIR)/usr/bin/libol-config \
49 $(2)/bin/
50 $(SED) \
51 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
52 $(2)/bin/libol-config
53
54 $(INSTALL_DIR) $(1)/usr/include/libol
55 $(INSTALL_DATA) \
56 $(PKG_INSTALL_DIR)/usr/include/libol/*.h \
57 $(1)/usr/include/libol/
58
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/lib/libol.{a,la,so*} \
62 $(1)/usr/lib/
63 endef
64
65 define Package/libol/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) \
68 $(PKG_INSTALL_DIR)/usr/lib/libol.so* \
69 $(1)/usr/lib/
70 endef
71
72 $(eval $(call BuildPackage,libol))