Makefile revision 6047
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# CDDL HEADER START
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
a52bc627e27a94219f06896ac183d90deb79ad31lgentis# The contents of this file are subject to the terms of the
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# Common Development and Distribution License (the "License").
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# You may not use this file except in compliance with the License.
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# or http://www.opensolaris.org/os/licensing.
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# See the License for the specific language governing permissions
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# and limitations under the License.
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# When distributing Covered Code, include this CDDL HEADER in each
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# If applicable, add the following below this CDDL HEADER, with the
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# fields enclosed by brackets "[]" replaced with your own identifying
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# information: Portions Copyright [yyyy] [name of copyright owner]
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# CDDL HEADER END
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor#
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# Prefer 32-bit as only "binary" delivered is a script with embedded paths.
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorBUILD_BITS= 32_and_64
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorinclude ../../make-rules/shared-macros.mk
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_NAME = libneon
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_VERSION = 0.30.1
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_PROJECT_URL= http://www.webdav.org/neon/
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_SRC_NAME = neon
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_ARCHIVE_HASH = \
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor sha256:00c626c0dc18d094ab374dbd9a354915bfe4776433289386ed489c2ec0845cdd
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_BUGDB= library/neon
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorTPNO= 21902
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorinclude $(WS_MAKE_RULES)/common.mk
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# Fix 64-bit linking done via compiler.
3841a292dc897875faf23e639807abcc90082f3clgentisLDFLAGS += $(CC_BITS)
3841a292dc897875faf23e639807abcc90082f3clgentis
3841a292dc897875faf23e639807abcc90082f3clgentisPATCH_LEVEL = 0
3841a292dc897875faf23e639807abcc90082f3clgentis
3841a292dc897875faf23e639807abcc90082f3clgentisCPPFLAGS += $(CPP_LARGEFILES)
3841a292dc897875faf23e639807abcc90082f3clgentis
3841a292dc897875faf23e639807abcc90082f3clgentisCOMPONENT_TEST_MASTER = \
3841a292dc897875faf23e639807abcc90082f3clgentis $(COMPONENT_TEST_RESULTS_DIR)/results-libneon.master
3841a292dc897875faf23e639807abcc90082f3clgentis
a52bc627e27a94219f06896ac183d90deb79ad31lgentisCOMPONENT_TEST_TRANSFORMS += \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/libtool/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/-m32/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/-m64/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/ld: warning/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/warning/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/prototype:/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/argument/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/Entering/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/Leaving/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "/Nothing to be done/d"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s/[0-9]\{1,\}\.[0-9]\{1,\} s, //g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s^[0-9]\{1,\} kB/s^^g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s^[0-9]\{1,\} kB/s^^g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s/([0-9]\{1,\} B)//g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s/([0-9]\{1,\} B)//g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s/copied,/copied/g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s/ \{1,\}copied/ copied/g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s/copied $$/copied/g"' \
3841a292dc897875faf23e639807abcc90082f3clgentis '-e "s/copied [0-9]\{1,\}\./copied/g"'
3841a292dc897875faf23e639807abcc90082f3clgentis
3841a292dc897875faf23e639807abcc90082f3clgentisCONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
3841a292dc897875faf23e639807abcc90082f3clgentisCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
3841a292dc897875faf23e639807abcc90082f3clgentisCONFIGURE_OPTIONS += --enable-shared
3841a292dc897875faf23e639807abcc90082f3clgentisCONFIGURE_OPTIONS += --disable-static
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --enable-webdav
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --enable-threadsafe-ssl=posix
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --enable-nls
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --disable-warnings
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --disable-ld-version-script
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --with-zlib
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --with-ssl=openssl
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --with-libproxy
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --with-gssapi
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --with-libxml2
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCONFIGURE_OPTIONS += --with-pic
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorCOMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# If there is no mediator, use MIT. Note, once all userland build systems have
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# the Userland security/kerberos-5 pkg installed this logic can be removed.
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorKRB5_API = $(shell pkg mediator -H kerberos5 2>/dev/null | nawk '{print $$4;}')
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorREQUIRED_PACKAGES += library/libproxy
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorREQUIRED_PACKAGES += library/libxml2
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorREQUIRED_PACKAGES += library/security/openssl
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorREQUIRED_PACKAGES += library/zlib
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorREQUIRED_PACKAGES += shell/ksh93
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorifeq ($(KRB5_API), solaris)
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor # require the solaris version of GSS
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor REQUIRED_PACKAGES += system/library/security/gss
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorelse
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor # require the Userland version of GSS
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor REQUIRED_PACKAGES += security/kerberos-5
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzorendif
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor