Makefile revision 5170
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# CDDL HEADER START
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# The contents of this file are subject to the terms of the
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Common Development and Distribution License (the "License").
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# You may not use this file except in compliance with the License.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# See the License for the specific language governing permissions
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# and limitations under the License.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# When distributing Covered Code, include this CDDL HEADER in each
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# If applicable, add the following below this CDDL HEADER, with the
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# CDDL HEADER END
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncPATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_PROJECT_URL= http://subversion.apache.org/
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a180a41bba1d50822df23fff0099e90b86638b89vboxsync sha256:2bdb01eb3f3df5c9370af98580e1892822d6e75f2077ce97fc81749f316ef25a
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# because we can't seem to get -norunpath to the java bindings build any
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# other way.
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
a180a41bba1d50822df23fff0099e90b86638b89vboxsync $(COMPONENT_TEST_RESULTS_DIR)/results-subversion.master
a180a41bba1d50822df23fff0099e90b86638b89vboxsync '-e "/libtool/d"' \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync '-e "/-m32/d"' \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync '-e "/-m64/d"' \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync '-e "s^lib/$(MACH64)^lib/MACH64^g"' \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync '-e "s/^make\[[0-9]\{1,\}\]/make/g"' \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync '-e "/ld: warning/d"' \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync '-e "/warning/d"'
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Let's write some post-configure hacks
a180a41bba1d50822df23fff0099e90b86638b89vboxsync $(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 )
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
a180a41bba1d50822df23fff0099e90b86638b89vboxsync$(BUILD_DIR)/$(MACH64)/.installed: COMPONENT_INSTALL_TARGETS += install-mods-shared
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncAPR-CONFIG.32 = /usr/apr/$(APR_VERSION)/bin/apr-1-config
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncAPR-CONFIG.64 = /usr/apr/$(APR_VERSION)/bin/$(MACH64)/apr-1-config
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncAPU-CONFIG.32 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/apu-1-config
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncAPU-CONFIG.64 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/$(MACH64)/apu-1-config
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncAPR-CONFIG-RPATH.64 = /usr/apr/$(APR_VERSION)/lib/$(MACH64)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncAPU-CONFIG-RPATH.32 = /usr/apr-util/$(APR_VERSION)/lib
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncAPU-CONFIG-RPATH.64 = /usr/apr-util/$(APR_VERSION)/lib/$(MACH64)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncLDFLAGS += -R$(CONFIGURE_LIBDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_OPTIONS += --with-apr=/usr/apr/$(APR_VERSION)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/$(APR_UTIL_VERSION)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_OPTIONS += --with-apr=$(APR-CONFIG.$(BITS))
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS))
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncCONFIGURE_OPTIONS += --with-gssapi=$(CONFIGURE_PREFIX)
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# Swig overwrites the 32-bit directory with 64-bit objects.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync# So we work around that.
a180a41bba1d50822df23fff0099e90b86638b89vboxsync if test -d vendor-packages-64 ; then \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync $(GNUCP) -rpd vendor-packages-64/libsvn vendor-packages/64/ ; \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync $(GNUCP) -rpd vendor-packages-64/svn vendor-packages/64/ ; \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync $(GNUCP) -rpd vendor-packages-32/libsvn vendor-packages/ ; \
a180a41bba1d50822df23fff0099e90b86638b89vboxsync $(GNUCP) -rpd vendor-packages-32/svn vendor-packages/ ; \
a180a41bba1d50822df23fff0099e90b86638b89vboxsyncREQUIRED_PACKAGES += developer/versioning/subversion