2008-02-16 10:39:38 +00:00
|
|
|
#
|
2011-05-24 08:40:37 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-07-18 13:39:42 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pcre
|
2010-12-22 01:42:23 +00:00
|
|
|
PKG_VERSION:=8.11
|
2011-05-24 08:40:37 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-18 13:39:42 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/pcre
|
2010-12-22 01:42:23 +00:00
|
|
|
PKG_MD5SUM:=ef907b8792ec7f90f0dcd773848f0b3b
|
2006-10-28 22:43:08 +00:00
|
|
|
|
2011-04-29 15:39:59 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-12-09 13:41:52 +00:00
|
|
|
|
2010-03-22 14:25:18 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-02-19 00:14:01 +00:00
|
|
|
|
2006-07-18 13:39:42 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-04-29 15:39:59 +00:00
|
|
|
define Package/libpcre/default
|
2006-07-18 13:39:42 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
URL:=http://www.pcre.org/
|
|
|
|
endef
|
|
|
|
|
2011-04-29 15:39:59 +00:00
|
|
|
define Package/libpcre
|
|
|
|
$(call Package/libpcre/default)
|
|
|
|
TITLE:=A Perl Compatible Regular Expression library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libpcrecpp
|
|
|
|
$(call Package/libpcre/default)
|
|
|
|
TITLE:=C++ wrapper for Perl Compatible Regular Expression library
|
|
|
|
DEPENDS:=+libpcre
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-07-16 06:51:11 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-utf8 \
|
2011-05-24 08:40:37 +00:00
|
|
|
--enable-unicode-properties \
|
2011-04-29 15:39:59 +00:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_PACKAGE_libpcrecpp),)
|
|
|
|
CONFIGURE_ARGS+= --enable-cpp
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS+= --disable-cpp
|
|
|
|
endif
|
2006-07-18 13:39:42 +00:00
|
|
|
|
2007-07-16 06:51:11 +00:00
|
|
|
MAKE_FLAGS += \
|
2010-03-22 14:25:18 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
2006-07-18 13:39:42 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2010-03-22 14:25:18 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pcre-config $(1)/usr/bin/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
$(LN) $(STAGING_DIR)/usr/bin/pcre-config $(2)/bin
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2011-04-29 15:39:59 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/pcre*.h $(1)/usr/include/
|
2010-03-22 14:25:18 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-04-29 15:39:59 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre*.{a,so*} $(1)/usr/lib//
|
2010-05-19 13:08:07 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2011-04-29 15:39:59 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpcre*.pc $(1)/usr/lib/pkgconfig/
|
2010-05-19 13:08:07 +00:00
|
|
|
|
2006-07-18 13:39:42 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libpcre/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-03-22 15:31:55 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.so.* $(1)/usr/lib/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2011-04-29 15:39:59 +00:00
|
|
|
define Package/libpcrecpp/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcrecpp.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-18 13:39:42 +00:00
|
|
|
$(eval $(call BuildPackage,libpcre))
|
2011-04-29 15:39:59 +00:00
|
|
|
$(eval $(call BuildPackage,libpcrecpp))
|