pcre: (#1979)
authorOliver Ertl <oliver@ertl-net.net>
Mon, 16 Jul 2007 06:51:11 +0000 (06:51 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Mon, 16 Jul 2007 06:51:11 +0000 (06:51 +0000)
 * Update: 7.0 > 7.2
 * Refresh patches
 * Cleanup Makefile

SVN-Revision: 8001

libs/pcre/Makefile
libs/pcre/patches/100-honor_cppflags_ldflags.patch [deleted file]
libs/pcre/patches/750-pcre_config_cross.patch

index ce403f7b5a4ecdd5562e469c1986ac80ab931685..1089eb1e4aada56ba4e04844835c51a268814d64 100644 (file)
@@ -9,13 +9,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pcre
-PKG_VERSION:=7.0
-PKG_RELEASE:=1
+PKG_VERSION:=7.2
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/pcre
-PKG_MD5SUM:=b97e3bb84bd665e0fbb7a90344d65a43
-PKG_CAT:=bzcat
+PKG_MD5SUM:=53305db73855f1ff155dcd2c05d448d3
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 
@@ -28,32 +27,23 @@ define Package/libpcre
   URL:=http://www.pcre.org/
 endef
 
-define Build/Configure
-       $(call Build/Configure/Default, \
-               --enable-shared \
-               --enable-static \
-               --enable-utf8 \
-       )
-endef
+CONFIGURE_ARGS += \
+       --enable-shared \
+       --enable-static \
+       --enable-utf8 \
+       --disable-cpp
 
-define Build/Compile
-       $(MAKE) -C "$(PKG_BUILD_DIR)" \
-               CC_FOR_BUILD="$(HOSTCC)" \
-               LINK_FOR_BUILD="$(HOSTCC)" \
-               CFLAGS_FOR_BUILD="" \
-               dftables
-       $(MAKE) -C "$(PKG_BUILD_DIR)" \
-               $(TARGET_CONFIGURE_OPTS) \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               all
-endef
+MAKE_FLAGS += \
+       $(TARGET_CONFIGURE_OPTS \
+       CFLAGS="$(TARGET_CFLAGS)" \
+       all
 
 define Build/InstallDev
-       mkdir -p $(STAGING_DIR)/usr/bin
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/bin
        $(CP) $(PKG_BUILD_DIR)/pcre-config $(STAGING_DIR)/usr/bin/
-       mkdir -p $(STAGING_DIR)/usr/include
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/include
        $(CP) $(PKG_BUILD_DIR)/pcre{,posix}.h $(STAGING_DIR)/usr/include/
-       mkdir -p $(STAGING_DIR)/usr/lib
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/.libs/libpcre{,posix}.{a,so*} $(STAGING_DIR)/usr/lib/
 endef
 
diff --git a/libs/pcre/patches/100-honor_cppflags_ldflags.patch b/libs/pcre/patches/100-honor_cppflags_ldflags.patch
deleted file mode 100644 (file)
index c90bb60..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN pcre-7.0/Makefile.in pcre-7.0.new/Makefile.in
---- pcre-7.0/Makefile.in       2006-12-19 10:31:35.000000000 +0100
-+++ pcre-7.0.new/Makefile.in   2007-01-01 21:43:22.000000000 +0100
-@@ -102,7 +102,7 @@
- # to do one or the other or both by ./configure.
- LIBTOOL = @LIBTOOL@
--LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
-+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(CPPFLAGS) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
- LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
- @ON_WINDOWS@LINK = $(CC) $(LDFLAGS) -I. -I$(top_srcdir) -L.libs
- @NOT_ON_WINDOWS@LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -I. -I$(top_srcdir)
index c61a7f5a1e398adf905e109b12e664cd593382a4..192da90e3c0ff744823359f2c5337c3737eecdfd 100644 (file)
@@ -1,8 +1,9 @@
-diff -ruN pcre-5.0-old/pcre-config.in pcre-5.0-new/pcre-config.in
---- pcre-5.0-old/pcre-config.in        2004-09-13 16:20:00.000000000 +0200
-+++ pcre-5.0-new/pcre-config.in        2005-09-04 16:34:39.000000000 +0200
-@@ -18,6 +18,10 @@
-   libR=" -R@libdir@"
+Index: pcre-7.2/pcre-config.in
+===================================================================
+--- pcre-7.2.orig/pcre-config.in       2007-07-16 08:33:37.000000000 +0200
++++ pcre-7.2/pcre-config.in    2007-07-16 08:33:37.000000000 +0200
+@@ -21,6 +21,10 @@
+   libR=" -Wl,-R@libdir@"
    ;;
  esac
 +libS=
@@ -12,7 +13,7 @@ diff -ruN pcre-5.0-old/pcre-config.in pcre-5.0-new/pcre-config.in
  
  while test $# -gt 0; do
    case "$1" in
-@@ -52,10 +56,10 @@
+@@ -55,10 +59,10 @@
        echo $includes
        ;;
      --libs-posix)