7042700 move pcre from SFW to userland
authorApril Chin <april.chin@oracle.com>
Wed, 11 May 2011 12:56:18 -0700
changeset 230 d6efadb643f7
parent 229 1fd565334dfc
child 231 9d0f929debda
7042700 move pcre from SFW to userland
components/meta-packages/history/SUNWpcre.p5m
components/pcre/Makefile
components/pcre/llib-lpcre
components/pcre/patches/Makefile.in.patch
components/pcre/pcre.license
components/pcre/pcre.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/meta-packages/history/SUNWpcre.p5m	Wed May 11 12:56:18 2011 -0700
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# Legacy package information for renamed SUNWpcre package
+#
+
+set name=pkg.fmri value=pkg:/[email protected],5.11-0.133
+set name=pkg.renamed value=true
+
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+depend fmri=library/[email protected] type=require
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pcre/Makefile	Wed May 11 12:56:18 2011 -0700
@@ -0,0 +1,120 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		pcre
+COMPONENT_VERSION=	7.8
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	sha1:229e6585ec816fbb7081a6b3d29daf1e048f362f
+COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
+COMPONENT_PROJECT_URL=  http://pcre.org
+
+include $(WS_TOP)/make-rules/prep.mk
+include $(WS_TOP)/make-rules/configure.mk
+include $(WS_TOP)/make-rules/ips.mk
+include $(WS_TOP)/make-rules/lint-libraries.mk
+
+# pick up -xc99=all in CFLAGS
+studio_C99MODE=        $(studio_C99_ENABLE)
+
+# pick up -xlang=c99 in XPG5MODE
+studio_cplusplus_C99MODE=	$(studio_cplusplus_C99_ENABLE)
+
+# turn on largefile support
+CFLAGS+=	$(CPP_LARGEFILES)
+
+CFLAGS+=	$(XPG6MODE)
+
+# Although -norunpath is set for CXXFLAGS, we need to put -norunpath 
+# here, otherwise -norunpath doesn't get set when creating the shared 
+# libraries (CC -G).
+CXX+=	$(studio_NORUNPATH)
+
+CXXFLAGS+=	$(CC_PIC)
+
+# turn on support for large files
+CXXFLAGS+=	$(CPP_LARGEFILES)
+
+CXXFLAGS+=	$(XPG5MODE)
+
+# We need to do this because libtool adds wrong paths to RPATH.
+LDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
+
+LINTFLAGS+=	-I. $(studio_XBITS) $(CPP_LARGEFILES)
+
+CONFIGURE_ENV+= "CC=$(CC)"
+CONFIGURE_ENV+=	"CFLAGS=$(CFLAGS)"
+CONFIGURE_ENV+=	"CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
+CONFIGURE_ENV+= "CXX=$(CXX)"
+CONFIGURE_ENV+=	"CXXFLAGS=$(CXXFLAGS)"
+CONFIGURE_ENV+=	"CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
+CONFIGURE_ENV+=	"LDFLAGS=$(LDFLAGS)"
+CONFIGURE_ENV+=	"CXXLDFLAGS=$(LDFLAGS)"
+CONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
+CONFIGURE_ENV+= "INSTALL=$(INSTALL)"
+CONFIGURE_ENV+= "MAKE=$(GMAKE)"
+
+CONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
+CONFIGURE_ENV.64+= "MACH64=$(MACH64)"
+
+CONFIGURE_OPTIONS+=	--includedir=$(CONFIGURE_INCLUDEDIR)/pcre
+CONFIGURE_OPTIONS+=	--localstatedir=/var
+CONFIGURE_OPTIONS+=	--disable-static
+CONFIGURE_OPTIONS+=	--enable-cpp
+CONFIGURE_OPTIONS+=	--enable-rebuild-chartables
+CONFIGURE_OPTIONS+=	--enable-utf8
+CONFIGURE_OPTIONS+=	--enable-unicode-properties
+CONFIGURE_OPTIONS+=	--enable-newline-is-any
+CONFIGURE_OPTIONS+=	--disable-stack-for-recursion
+CONFIGURE_OPTIONS+=	--enable-pcregrep-libz
+CONFIGURE_OPTIONS+=	--enable-pcregrep-libbz2
+CONFIGURE_OPTIONS+=	--with-posix-malloc-threshold=20
+CONFIGURE_OPTIONS+=	--with-link-size=4
+CONFIGURE_OPTIONS+=	--with-match-limit=10000000
+CONFIGURE_OPTIONS+=	--with-pic
+
+CONFIGURE_OPTIONS.64+=	--libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
+
+COMPONENT_BUILD_ENV+=	"LDFLAGS=$(LDFLAGS)"
+COMPONENT_BUILD_ENV+=	"INSTALL=$(INSTALL)"
+COMPONENT_BUILD_ENV+=	"MAKE=$(GMAKE)"
+
+COMPONENT_BUILD_ARGS+=	-e
+
+COMPONENT_INSTALL_ARGS+=	"INSTALL=$(INSTALL)"
+COMPONENT_INSTALL_ARGS+=	"MAKE=$(GMAKE)"
+
+# common targets
+
+build:		$(BUILD_32_and_64)
+
+install:	$(INSTALL_32_and_64)
+
+test:		$(TEST_32_and_64)
+
+BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
+
+include $(WS_TOP)/make-rules/depend.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pcre/llib-lpcre	Wed May 11 12:56:18 2011 -0700
@@ -0,0 +1,37 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/* 
+ * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/* LINTLIBRARY */
+/* PROTOLIB1 */
+
+/*
+ * This little dance is necessary to avoid ftello/fseeko
+ * complaints vs libc. We don't use them but we do #include
+ * stdio.h and as we are large file aware they get defined
+ * differently than libc.
+ */
+#include <sys/types.h>
+#include <pcre.h>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pcre/patches/Makefile.in.patch	Wed May 11 12:56:18 2011 -0700
@@ -0,0 +1,15 @@
+--- pcre-7.8.orig/Makefile.in	2008-09-05 09:40:07.000000000 -0700
++++ pcre-7.8/Makefile.in	2008-12-08 14:58:06.739010878 -0800
+@@ -251,9 +251,9 @@
+ ECHO_T = @ECHO_T@
+ EGREP = @EGREP@
+ EXEEXT = @EXEEXT@
+-EXTRA_LIBPCRECPP_LDFLAGS = @EXTRA_LIBPCRECPP_LDFLAGS@
+-EXTRA_LIBPCREPOSIX_LDFLAGS = @EXTRA_LIBPCREPOSIX_LDFLAGS@
+-EXTRA_LIBPCRE_LDFLAGS = @EXTRA_LIBPCRE_LDFLAGS@
++EXTRA_LIBPCRECPP_LDFLAGS = @CXXFLAGS@ @LDFLAGS@
++EXTRA_LIBPCREPOSIX_LDFLAGS = @LDFLAGS@
++EXTRA_LIBPCRE_LDFLAGS = @LDFLAGS@
+ F77 = @F77@
+ FFLAGS = @FFLAGS@
+ GREP = @GREP@
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pcre/pcre.license	Wed May 11 12:56:18 2011 -0700
@@ -0,0 +1,70 @@
+
+PCRE LICENCE
+------------
+
+PCRE is a library of functions to support regular expressions whose syntax
+and semantics are as close as possible to those of the Perl 5 language.
+
+Release 7 of PCRE is distributed under the terms of the "BSD" licence, as
+specified below. The documentation for PCRE, supplied in the "doc"
+directory, is distributed under the same terms as the software itself.
+
+The basic library functions are written in C and are freestanding. Also
+included in the distribution is a set of C++ wrapper functions.
+
+
+THE BASIC LIBRARY FUNCTIONS
+---------------------------
+
+Written by:       Philip Hazel
+Email local part: ph10
+Email domain:     cam.ac.uk
+
+University of Cambridge Computing Service,
+Cambridge, England. Phone: +44 1223 334714.
+
+Copyright (c) 1997-2006 University of Cambridge
+All rights reserved.
+
+
+THE C++ WRAPPER FUNCTIONS
+-------------------------
+
+Contributed by:   Google Inc.
+
+Copyright (c) 2006, Google Inc.
+All rights reserved.
+
+
+THE "BSD" LICENCE
+-----------------
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+    * Neither the name of the University of Cambridge nor the name of Google
+      Inc. nor the names of their contributors may be used to endorse or
+      promote products derived from this software without specific prior
+      written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+End
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pcre/pcre.p5m	Wed May 11 12:56:18 2011 -0700
@@ -0,0 +1,169 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
+
+set name=pkg.fmri value=pkg:/library/pcre@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Perl-Compatible Regular Expressions"
+set name=pkg.description value="The PCRE library is a set of functions that implement regular expression pattern matching using almost the same syntax and semantics as Perl"
+set name=info.classification value="org.opensolaris.category.2008:Development/C"
+set name=info.upstream_url value=$(COMPONENT_PROJECT_URL)
+set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+set name=opensolaris.arc_url \
+    value=http://arc.opensolaris.org/caselog/PSARC/2007/164
+
+dir path=usr
+dir path=usr/bin
+dir path=usr/bin/$(MACH64)
+dir path=usr/include
+dir path=usr/include/pcre
+dir path=usr/lib
+dir path=usr/lib/$(MACH64)
+dir path=usr/lib/$(MACH64)/pkgconfig
+dir path=usr/lib/pkgconfig
+dir path=usr/share
+dir path=usr/share/doc
+dir path=usr/share/doc/pcre
+dir path=usr/share/doc/pcre/html
+dir path=usr/share/man
+dir path=usr/share/man/man1
+dir path=usr/share/man/man3
+
+file path=usr/bin/$(MACH64)/pcre-config
+file path=usr/bin/pcre-config
+file path=usr/bin/pcregrep
+file path=usr/bin/pcretest
+file path=usr/include/pcre/pcre.h
+file pcre_internal.h path=usr/include/pcre/pcre_internal.h
+file path=usr/include/pcre/pcre_scanner.h
+file path=usr/include/pcre/pcre_stringpiece.h
+file path=usr/include/pcre/pcrecpp.h
+file path=usr/include/pcre/pcrecpparg.h
+file path=usr/include/pcre/pcreposix.h
+file ucp.h path=usr/include/pcre/ucp.h
+file path=usr/lib/$(MACH64)/libpcre.so.0.0.0
+file path=usr/lib/$(MACH64)/libpcrecpp.so.0.0.0
+file path=usr/lib/$(MACH64)/libpcreposix.so.0.0.0
+file path=usr/lib/$(MACH64)/llib-lpcre.ln
+file path=usr/lib/$(MACH64)/pkgconfig/libpcre.pc
+file path=usr/lib/$(MACH64)/pkgconfig/libpcrecpp.pc
+file path=usr/lib/libpcre.so.0.0.0
+file path=usr/lib/libpcrecpp.so.0.0.0
+file path=usr/lib/libpcreposix.so.0.0.0
+file llib-lpcre path=usr/lib/llib-lpcre
+file path=usr/lib/llib-lpcre.ln
+file path=usr/lib/pkgconfig/libpcre.pc
+file path=usr/lib/pkgconfig/libpcrecpp.pc
+file path=usr/share/doc/pcre/html/index.html
+file path=usr/share/doc/pcre/html/pcre.html
+file path=usr/share/doc/pcre/html/pcre_compile.html
+file path=usr/share/doc/pcre/html/pcre_compile2.html
+file path=usr/share/doc/pcre/html/pcre_config.html
+file path=usr/share/doc/pcre/html/pcre_copy_named_substring.html
+file path=usr/share/doc/pcre/html/pcre_copy_substring.html
+file path=usr/share/doc/pcre/html/pcre_dfa_exec.html
+file path=usr/share/doc/pcre/html/pcre_exec.html
+file path=usr/share/doc/pcre/html/pcre_free_substring.html
+file path=usr/share/doc/pcre/html/pcre_free_substring_list.html
+file path=usr/share/doc/pcre/html/pcre_fullinfo.html
+file path=usr/share/doc/pcre/html/pcre_get_named_substring.html
+file path=usr/share/doc/pcre/html/pcre_get_stringnumber.html
+file path=usr/share/doc/pcre/html/pcre_get_stringtable_entries.html
+file path=usr/share/doc/pcre/html/pcre_get_substring.html
+file path=usr/share/doc/pcre/html/pcre_get_substring_list.html
+file path=usr/share/doc/pcre/html/pcre_info.html
+file path=usr/share/doc/pcre/html/pcre_maketables.html
+file path=usr/share/doc/pcre/html/pcre_refcount.html
+file path=usr/share/doc/pcre/html/pcre_study.html
+file path=usr/share/doc/pcre/html/pcre_version.html
+file path=usr/share/doc/pcre/html/pcreapi.html
+file path=usr/share/doc/pcre/html/pcrebuild.html
+file path=usr/share/doc/pcre/html/pcrecallout.html
+file path=usr/share/doc/pcre/html/pcrecompat.html
+file path=usr/share/doc/pcre/html/pcrecpp.html
+file path=usr/share/doc/pcre/html/pcregrep.html
+file path=usr/share/doc/pcre/html/pcrematching.html
+file path=usr/share/doc/pcre/html/pcrepartial.html
+file path=usr/share/doc/pcre/html/pcrepattern.html
+file path=usr/share/doc/pcre/html/pcreperform.html
+file path=usr/share/doc/pcre/html/pcreposix.html
+file path=usr/share/doc/pcre/html/pcreprecompile.html
+file path=usr/share/doc/pcre/html/pcresample.html
+file path=usr/share/doc/pcre/html/pcrestack.html
+file path=usr/share/doc/pcre/html/pcretest.html
+file path=usr/share/man/man1/pcregrep.1
+file path=usr/share/man/man1/pcretest.1
+file path=usr/share/man/man3/pcre.3
+file path=usr/share/man/man3/pcre_compile.3
+file path=usr/share/man/man3/pcre_compile2.3
+file path=usr/share/man/man3/pcre_config.3
+file path=usr/share/man/man3/pcre_copy_named_substring.3
+file path=usr/share/man/man3/pcre_copy_substring.3
+file path=usr/share/man/man3/pcre_dfa_exec.3
+file path=usr/share/man/man3/pcre_exec.3
+file path=usr/share/man/man3/pcre_free_substring.3
+file path=usr/share/man/man3/pcre_free_substring_list.3
+file path=usr/share/man/man3/pcre_fullinfo.3
+file path=usr/share/man/man3/pcre_get_named_substring.3
+file path=usr/share/man/man3/pcre_get_stringnumber.3
+file path=usr/share/man/man3/pcre_get_stringtable_entries.3
+file path=usr/share/man/man3/pcre_get_substring.3
+file path=usr/share/man/man3/pcre_get_substring_list.3
+file path=usr/share/man/man3/pcre_info.3
+file path=usr/share/man/man3/pcre_maketables.3
+file path=usr/share/man/man3/pcre_refcount.3
+file path=usr/share/man/man3/pcre_study.3
+file path=usr/share/man/man3/pcre_version.3
+file path=usr/share/man/man3/pcreapi.3
+file path=usr/share/man/man3/pcrebuild.3
+file path=usr/share/man/man3/pcrecallout.3
+file path=usr/share/man/man3/pcrecompat.3
+file path=usr/share/man/man3/pcrecpp.3
+file path=usr/share/man/man3/pcrematching.3
+file path=usr/share/man/man3/pcrepartial.3
+file path=usr/share/man/man3/pcrepattern.3
+file path=usr/share/man/man3/pcreperform.3
+file path=usr/share/man/man3/pcreposix.3
+file path=usr/share/man/man3/pcreprecompile.3
+file path=usr/share/man/man3/pcresample.3
+file path=usr/share/man/man3/pcrestack.3
+
+link path=usr/lib/$(MACH64)/libpcre.so target=libpcre.so.0.0.0
+link path=usr/lib/$(MACH64)/libpcre.so.0 target=libpcre.so.0.0.0
+link path=usr/lib/$(MACH64)/libpcrecpp.so target=libpcrecpp.so.0.0.0
+link path=usr/lib/$(MACH64)/libpcrecpp.so.0 target=libpcrecpp.so.0.0.0
+link path=usr/lib/$(MACH64)/libpcreposix.so target=libpcreposix.so.0.0.0
+link path=usr/lib/$(MACH64)/libpcreposix.so.0 target=libpcreposix.so.0.0.0
+link path=usr/lib/libpcre.so target=libpcre.so.0.0.0
+link path=usr/lib/libpcre.so.0 target=libpcre.so.0.0.0
+link path=usr/lib/libpcrecpp.so target=libpcrecpp.so.0.0.0
+link path=usr/lib/libpcrecpp.so.0 target=libpcrecpp.so.0.0.0
+link path=usr/lib/libpcreposix.so target=libpcreposix.so.0.0.0
+link path=usr/lib/libpcreposix.so.0 target=libpcreposix.so.0.0.0
+
+license pcre.license license="BSD"
+
+legacy pkg=SUNWpcre \
+    desc="Perl-Compatible Regular Expressions" \
+    name="PCRE - Perl-Compatible Regular Expressions (7.8)"