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