230N/A#
230N/A# CDDL HEADER START
230N/A#
230N/A# The contents of this file are subject to the terms of the
230N/A# Common Development and Distribution License (the "License").
230N/A# You may not use this file except in compliance with the License.
230N/A#
230N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
230N/A# or http://www.opensolaris.org/os/licensing.
230N/A# See the License for the specific language governing permissions
230N/A# and limitations under the License.
230N/A#
230N/A# When distributing Covered Code, include this CDDL HEADER in each
230N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
230N/A# If applicable, add the following below this CDDL HEADER, with the
230N/A# fields enclosed by brackets "[]" replaced with your own identifying
230N/A# information: Portions Copyright [yyyy] [name of copyright owner]
230N/A#
230N/A# CDDL HEADER END
230N/A
230N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
230N/A#
230N/A
230N/Ainclude ../../make-rules/shared-macros.mk
230N/A
230N/ACOMPONENT_NAME= pcre
5228N/ACOMPONENT_VERSION= 8.38
230N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
230N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
5228N/A sha256:9883e419c336c63b0cb5202b09537c140966d585e4d0da66147dc513da13e629
230N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
618N/ACOMPONENT_PROJECT_URL= http://pcre.org/
1273N/ACOMPONENT_BUGDB= library/pcre
230N/A
5228N/ATPNO= 25877
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
230N/A
230N/A# pick up -xc99=all in CFLAGS
230N/Astudio_C99MODE= $(studio_C99_ENABLE)
230N/A
230N/A# pick up -xlang=c99 in XPG5MODE
230N/Astudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
230N/A
230N/A# turn on largefile support
230N/ACFLAGS+= $(CPP_LARGEFILES)
230N/A
230N/ACFLAGS+= $(XPG6MODE)
230N/A
230N/A# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
230N/A# here, otherwise -norunpath doesn't get set when creating the shared
230N/A# libraries (CC -G).
230N/ACXX+= $(studio_NORUNPATH)
230N/A
230N/ACXXFLAGS+= $(CC_PIC)
230N/A
230N/A# turn on support for large files
230N/ACXXFLAGS+= $(CPP_LARGEFILES)
230N/A
230N/ACXXFLAGS+= $(XPG5MODE)
230N/A
230N/A# We need to do this because libtool adds wrong paths to RPATH.
230N/ALDFLAGS += -L$(CONFIGURE_LIBDIR.$(BITS)) -R$(CONFIGURE_LIBDIR.$(BITS))
230N/A
230N/ALINTFLAGS+= -I. $(studio_XBITS) $(CPP_LARGEFILES)
230N/A
230N/ACONFIGURE_ENV+= "CC=$(CC)"
230N/ACONFIGURE_ENV+= "CFLAGS=$(CFLAGS)"
230N/ACONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
230N/ACONFIGURE_ENV+= "CXX=$(CXX)"
230N/ACONFIGURE_ENV+= "CXXFLAGS=$(CXXFLAGS)"
230N/ACONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
230N/ACONFIGURE_ENV+= "LDFLAGS=$(LDFLAGS)"
230N/ACONFIGURE_ENV+= "CXXLDFLAGS=$(LDFLAGS)"
230N/ACONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
230N/ACONFIGURE_ENV+= "INSTALL=$(INSTALL)"
230N/ACONFIGURE_ENV+= "MAKE=$(GMAKE)"
230N/A
230N/ACONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
230N/ACONFIGURE_ENV.64+= "MACH64=$(MACH64)"
230N/A
230N/ACONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
230N/ACONFIGURE_OPTIONS+= --localstatedir=/var
230N/ACONFIGURE_OPTIONS+= --disable-static
230N/ACONFIGURE_OPTIONS+= --enable-cpp
230N/ACONFIGURE_OPTIONS+= --enable-rebuild-chartables
230N/ACONFIGURE_OPTIONS+= --enable-utf8
230N/ACONFIGURE_OPTIONS+= --enable-unicode-properties
230N/ACONFIGURE_OPTIONS+= --enable-newline-is-any
230N/ACONFIGURE_OPTIONS+= --disable-stack-for-recursion
230N/ACONFIGURE_OPTIONS+= --enable-pcregrep-libz
230N/ACONFIGURE_OPTIONS+= --enable-pcregrep-libbz2
230N/ACONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
230N/ACONFIGURE_OPTIONS+= --with-link-size=4
230N/ACONFIGURE_OPTIONS+= --with-match-limit=10000000
230N/ACONFIGURE_OPTIONS+= --with-pic
230N/A
230N/ACONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
230N/A
230N/ACOMPONENT_BUILD_ENV+= "LDFLAGS=$(LDFLAGS)"
230N/ACOMPONENT_BUILD_ENV+= "INSTALL=$(INSTALL)"
230N/ACOMPONENT_BUILD_ENV+= "MAKE=$(GMAKE)"
230N/A
230N/ACOMPONENT_BUILD_ARGS+= -e
230N/A
4581N/AASLR_MODE = $(ASLR_ENABLE)
4581N/A
230N/ACOMPONENT_INSTALL_ARGS+= "INSTALL=$(INSTALL)"
230N/ACOMPONENT_INSTALL_ARGS+= "MAKE=$(GMAKE)"
230N/A
230N/A# common targets
230N/A
230N/Abuild: $(BUILD_32_and_64)
230N/A
230N/Ainstall: $(INSTALL_32_and_64)
230N/A
230N/Atest: $(TEST_32_and_64)
230N/A
230N/A
3996N/AREQUIRED_PACKAGES += compress/bzip2
3996N/AREQUIRED_PACKAGES += library/zlib
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/c++-runtime