Makefile revision 7292
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# CDDL HEADER START
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# The contents of this file are subject to the terms of the
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Common Development and Distribution License (the "License").
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# You may not use this file except in compliance with the License.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# or http://www.opensolaris.org/os/licensing.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# See the License for the specific language governing permissions
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# and limitations under the License.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# When distributing Covered Code, include this CDDL HEADER in each
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# If applicable, add the following below this CDDL HEADER, with the
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# fields enclosed by brackets "[]" replaced with your own identifying
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# information: Portions Copyright [yyyy] [name of copyright owner]
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# CDDL HEADER END
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojBUILD_BITS= 64_and_32
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/shared-macros.mk
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_NAME= pcre
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_VERSION= 8.38
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE_HASH= \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha sha256:9883e419c336c63b0cb5202b09537c140966d585e4d0da66147dc513da13e629
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/pcre/files/pcre/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaCOMPONENT_ARCHIVE_URL= ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$(COMPONENT_ARCHIVE)
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaCOMPONENT_PROJECT_URL= http://pcre.org/
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_BUGDB= library/pcre
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
e50587e6b2ff25bdcbe29410be5bf8f4792016eegregamesTPNO= 25877
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
0d9c389e9c63d02edb068917d49af2fa8012af91marcinclude $(WS_MAKE_RULES)/common.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
dadf206a4cf1eccf5c13b64bd9678610dd763868rbb# pick up -xc99=all in CFLAGS
dadf206a4cf1eccf5c13b64bd9678610dd763868rbbstudio_C99MODE= $(studio_C99_ENABLE)
a773226ea345018b49d45cf2e076ff2452eead5arbb
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# pick up -xlang=c99 in XPG5MODE
6ca0e6973c8176100f4a426444823ae5e777e28fsaschastudio_cplusplus_C99MODE= $(studio_cplusplus_C99_ENABLE)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# turn on largefile support
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCFLAGS+= $(CPP_LARGEFILES)
4cbb3bcf66a6788196bcc7244e4e36705acfbb57rbb
5f69f46ccdf50afd8f0a23f134746e6066185e89rbbCFLAGS+= $(XPG6MODE)
12b0070d002520b81a273ae892b9ea08e810b123rbb
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb# here, otherwise -norunpath doesn't get set when creating the shared
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# libraries (CC -G).
305a68a1a5db3cc264077d89b3caa6f923257150fieldingCXX+= $(studio_NORUNPATH)
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha
105475009f541187ba7a14a367547d9404c578befieldingCXXFLAGS+= $(CC_PIC)
105475009f541187ba7a14a367547d9404c578befielding
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha# turn on support for large files
f07a80771bc5d30b1e0cfcb7256c1a302da77675rbbCXXFLAGS+= $(CPP_LARGEFILES)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
80e9324586de2fa55e2da4df409e6a85885ea659fieldingCXXFLAGS+= $(XPG5MODE)
9022fa73d4ac101553e7c36a1457ead52a73333borlikowskiCXXFLAGS+= -std=sun03
9022fa73d4ac101553e7c36a1457ead52a73333borlikowski
105475009f541187ba7a14a367547d9404c578befieldingLINT_FLAGS+= $(CPP_LARGEFILES)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV+= "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV+= "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV+= "CXXLDFLAGS=$(LDFLAGS)"
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV+= "INSTALL=$(INSTALL)"
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV+= "MAKE=$(GMAKE)"
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_ENV.64+= "MACH64=$(MACH64)"
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_OPTIONS+= --localstatedir=$(VARDIR)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS+= --disable-static
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS+= --enable-cpp
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS+= --enable-rebuild-chartables
cb5d3f2f217d457dada4883addb1dc9f3f17bb85fieldingCONFIGURE_OPTIONS+= --enable-utf8
6a1c919219ae7e3382fb22f1c4cf89f11b4becffcoarCONFIGURE_OPTIONS+= --enable-unicode-properties
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS+= --enable-newline-is-any
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS+= --disable-stack-for-recursion
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS+= --enable-pcregrep-libz
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS+= --enable-pcregrep-libbz2
cdb58be93a9cbeaba1ebc759b48aa8ed519675a9bjhCONFIGURE_OPTIONS+= --with-posix-malloc-threshold=20
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS+= --with-link-size=4
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS+= --with-match-limit=10000000
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS+= --with-pic
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS.64+= --libexecdir=$(CONFIGURE_PREFIX)/libexec/$(MACH64)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_BUILD_ENV+= "LDFLAGS=$(LDFLAGS)"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_BUILD_ENV+= "INSTALL=$(INSTALL)"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_BUILD_ENV+= "MAKE=$(GMAKE)"
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaCOMPONENT_BUILD_ARGS+= -e
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# Master test results are the same for 32-bit and 64-bit, so override
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# here, rather than create multiple identical master files.
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csaschaCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojCOMPONENT_TEST_TRANSFORMS += \
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj '-e "/Nothing to be done/d"' \
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj '-e "/Leaving directory/d"' \
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj '-e "/Entering directory/d"' \
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj '-e "s|Testsuite summary for PCRE .*|Testsuite summary for PCRE|" '
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojCOMPONENT_INSTALL_ARGS+= "INSTALL=$(INSTALL)"
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojCOMPONENT_INSTALL_ARGS+= "MAKE=$(GMAKE)"
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manoj
b90c64e517df3fe1c97806830f84a30362187f0afieldingREQUIRED_PACKAGES += compress/bzip2
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojREQUIRED_PACKAGES += library/zlib
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojREQUIRED_PACKAGES += shell/ksh93
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojREQUIRED_PACKAGES += system/library/c++-runtime
b90c64e517df3fe1c97806830f84a30362187f0afieldingREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manojREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
e6b0215ca481b00d658a0adfea378c36a67aa088trawick