[package] update libsigc++ to 2.2.3, do not build docs and tests
[openwrt/svn-archive/archive.git] / libs / pcre / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pcre
12 PKG_VERSION:=7.6
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/pcre
17 PKG_MD5SUM:=2af38e083fb90ef60fa9eda7cc290e86
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libpcre
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=A Perl Compatible Regular Expression library
27 URL:=http://www.pcre.org/
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 CONFIGURE_ARGS += \
33 --enable-shared \
34 --enable-static \
35 --enable-utf8 \
36 --disable-cpp \
37
38 MAKE_FLAGS += \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 all \
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/pcre-config $(1)/usr/bin/
46 ln -sf $(STAGING_DIR)/usr/bin/pcre-config $(2)/bin
47 $(CP) $(PKG_BUILD_DIR)/pcre{,posix}.h $(1)/usr/include/
48 $(CP) $(PKG_BUILD_DIR)/.libs/libpcre{,posix}.{a,so*} $(1)/usr/lib/
49 endef
50
51 define Package/libpcre/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_BUILD_DIR)/.libs/libpcre{,posix}.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libpcre))