2008-02-16 10:39:38 +00:00
|
|
|
#
|
2010-02-12 14:55:39 +00:00
|
|
|
# Copyright (C) 2006-2010 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-02-12 14:55:39 +00:00
|
|
|
PKG_VERSION:=8.01
|
2009-04-17 13:21:22 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-18 13:39:42 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/pcre
|
2010-02-12 14:55:39 +00:00
|
|
|
PKG_MD5SUM:=413be1c23dabe91f637fb3770f640006
|
2006-10-28 22:43:08 +00:00
|
|
|
|
2006-07-18 13:39:42 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libpcre
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A Perl Compatible Regular Expression library
|
|
|
|
URL:=http://www.pcre.org/
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-07-16 06:51:11 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--enable-utf8 \
|
2008-02-16 10:39:38 +00:00
|
|
|
--disable-cpp \
|
2006-07-18 13:39:42 +00:00
|
|
|
|
2007-07-16 06:51:11 +00:00
|
|
|
MAKE_FLAGS += \
|
2007-12-25 01:59:55 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-07-16 06:51:11 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2008-02-16 10:39:38 +00:00
|
|
|
all \
|
2006-07-18 13:39:42 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-27 02:12:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/pcre-config $(1)/usr/bin/
|
2007-12-27 02:12:26 +00:00
|
|
|
ln -sf $(STAGING_DIR)/usr/bin/pcre-config $(2)/bin
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/pcre{,posix}.h $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/.libs/libpcre{,posix}.{a,so*} $(1)/usr/lib/
|
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
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/.libs/libpcre{,posix}.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-18 13:39:42 +00:00
|
|
|
$(eval $(call BuildPackage,libpcre))
|