Makefile revision 5053
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsPATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_PROJECT_URL= http://subversion.apache.org/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:2bdb01eb3f3df5c9370af98580e1892822d6e75f2077ce97fc81749f316ef25a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# because we can't seem to get -norunpath to the java bindings build any
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(COMPONENT_TEST_RESULTS_DIR)/results-subversion.master
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User '-e "/libtool/d"' \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User '-e "/-m32/d"' \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User '-e "/-m64/d"' \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User '-e "s^lib/$(MACH64)^lib/MACH64^g"' \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User '-e "s/^make\[[0-9]\{1,\}\]/make/g"' \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User '-e "/ld: warning/d"' \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User '-e "/warning/d"'
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User# Let's write some post-configure hacks
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User $(PYTHON.$(BITS)) ./build/transform_sql.py ./subversion/libsvn_fs_fs/rep-cache-db.sql < ./subversion/libsvn_fs_fs/rep-cache-db.sql > $(BUILD_DIR_$(BITS))/subversion/libsvn_fs_fs/rep-cache-db.h 2>&1 )
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCOMPONENT_INSTALL_TARGETS = install install-lib \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserLIBSVNDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPR-CONFIG.32 = /usr/apr/$(APR_VERSION)/bin/apr-1-config
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserAPR-CONFIG.64 = /usr/apr/$(APR_VERSION)/bin/$(MACH64)/apr-1-config
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPU-CONFIG.32 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/apu-1-config
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPU-CONFIG.64 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/$(MACH64)/apu-1-config
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPR-CONFIG-RPATH.32 = /usr/apr/$(APR_VERSION)/lib
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserAPR-CONFIG-RPATH.64 = /usr/apr/$(APR_VERSION)/lib/$(MACH64)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPU-CONFIG-RPATH.32 = /usr/apr-util/$(APR_VERSION)/lib
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPU-CONFIG-RPATH.64 = /usr/apr-util/$(APR_VERSION)/lib/$(MACH64)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPACHE_LIBEXECDIR.32 = `$(APXS.32) -q libexecdir`
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserAPACHE_LIBEXECDIR.64 = `$(APXS.64) -q libexecdir`
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserLDFLAGS += -R$(LIBSVNDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User# Let's make noise just because we have to override --libdir
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --libdir=$(LIBSVNDIR.$(BITS))
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --disable-neon-version-check
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --disable-experimental-libtool
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-apr=/usr/apr/$(APR_VERSION)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/$(APR_UTIL_VERSION)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-apr=$(APR-CONFIG.$(BITS))
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS))
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserCONFIGURE_OPTIONS += --with-gssapi=$(CONFIGURE_PREFIX)
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User# Swig overwrites the 32-bit directory with 64-bit objects.
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User# So we work around that.
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User ( cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User $(MV) vendor-packages vendor-packages-$(BITS) ; \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User if test -d vendor-packages-64 ; then \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(GNUCP) -rpd vendor-packages-64/libsvn vendor-packages/64/ ; \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User $(GNUCP) -rpd vendor-packages-64/svn vendor-packages/64/ ; \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User $(GNUCP) -rpd vendor-packages-32/libsvn vendor-packages/ ; \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox User $(GNUCP) -rpd vendor-packages-32/svn vendor-packages/ ; \
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserREQUIRED_PACKAGES += developer/versioning/subversion
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserREQUIRED_PACKAGES += system/library/c++-runtime
3241ddcf9354c5ab50f4df5a656e72a5c68e172bTinderbox UserREQUIRED_PACKAGES += system/library/security/gss