Makefile revision 4203
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenPATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_PROJECT_URL= http://subversion.apache.org/
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden sha256:2bdb01eb3f3df5c9370af98580e1892822d6e75f2077ce97fc81749f316ef25a
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
86635a91ceb503bad0052c7a964ec3fd28d548dcGarrett D'Amore# because we can't seem to get -norunpath to the java bindings build any
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(COMPONENT_TEST_RESULTS_DIR)/results-subversion.master
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden '-e "/libtool/d"' \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden '-e "/-m32/d"' \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden '-e "/-m64/d"' \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden '-e "s^lib/$(MACH64)^lib/MACH64^g"' \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden '-e "s/^make\[[0-9]\{1,\}\]/make/g"' \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden '-e "/ld: warning/d"' \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden '-e "/warning/d"'
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden# Let's write some post-configure hacks
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher Siden $(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 )
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCOMPONENT_INSTALL_TARGETS = install install-lib \
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCONFIGURE_ENV += PYTHON="$(PYTHON.$(BITS))"
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenCONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenLIBSVNDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64)
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenAPR-CONFIG.32 = /usr/apr/$(APR_VERSION)/bin/apr-1-config
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenAPR-CONFIG.64 = /usr/apr/$(APR_VERSION)/bin/$(MACH64)/apr-1-config
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenAPU-CONFIG.32 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/apu-1-config
ad135b5d644628e791c3188a6ecbd9c257961ef8Christopher SidenAPU-CONFIG.64 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/$(MACH64)/apu-1-config
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovAPR-CONFIG-RPATH.32 = /usr/apr/$(APR_VERSION)/lib
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAPR-CONFIG-RPATH.64 = /usr/apr/$(APR_VERSION)/lib/$(MACH64)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAPU-CONFIG-RPATH.32 = /usr/apr-util/$(APR_VERSION)/lib
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAPU-CONFIG-RPATH.64 = /usr/apr-util/$(APR_VERSION)/lib/$(MACH64)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAPACHE_LIBEXECDIR.32 = `$(APXS.32) -q libexecdir`
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAPACHE_LIBEXECDIR.64 = `$(APXS.64) -q libexecdir`
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLDFLAGS += -R$(LIBSVNDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Let's make noise just because we have to override --libdir
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --libdir=$(LIBSVNDIR.$(BITS))
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --disable-neon-version-check
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --disable-experimental-libtool
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --with-apr=/usr/apr/$(APR_VERSION)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/$(APR_UTIL_VERSION)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_OPTIONS += --with-apr=$(APR-CONFIG.$(BITS))
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS))
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri PankovCONFIGURE_OPTIONS += --with-gssapi=$(CONFIGURE_PREFIX)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Swig overwrites the 32-bit directory with 64-bit objects.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# So we work around that.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov ( cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(MV) vendor-packages vendor-packages-$(BITS) ; \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov if test -d vendor-packages-64 ; then \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(GNUCP) -rpd vendor-packages-64/libsvn vendor-packages/64/ ; \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(GNUCP) -rpd vendor-packages-64/svn vendor-packages/64/ ; \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(GNUCP) -rpd vendor-packages-32/libsvn vendor-packages/ ; \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(GNUCP) -rpd vendor-packages-32/svn vendor-packages/ ; \