Makefile revision 2032
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
c7ef13f6c9ef4436bc804b150e0a93307b11fa27Tinderbox User# The contents of this file are subject to the terms of the
a5636b773fa05a272b6876afd99309c0b3090e2fMark Andrews# Common Development and Distribution License (the "License").
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
137fdbc214e99c4cbe57551e9e14f2015c2e42aeTinderbox User# See the License for the specific language governing permissions
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# and limitations under the License.
02b47c5d62e1e827743684c28a08e871da454a2dMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# If applicable, add the following below this CDDL HEADER, with the
e20309353e6246485c521278131d3fced73d7957Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
e20309353e6246485c521278131d3fced73d7957Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
9a5217f827ac0e006016745e5305b31dc0c7767fTinderbox User# CDDL HEADER END
e20309353e6246485c521278131d3fced73d7957Tinderbox User# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterPATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_PROJECT_URL= http://subversion.apache.org/
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt sha256:cb102a437335a8921f00cef9bf730d84527713f1a5091e3e1eb2f16402f85dc1
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# because we can't seem to get -norunpath to the java bindings build any
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
e20309353e6246485c521278131d3fced73d7957Tinderbox UserCXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Let's write some post-configure hacks
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(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 )
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_INSTALL_TARGETS = install install-lib \
28a5dd720187fddb16055a0f64b63a7b66f29f64Mark AndrewsCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox UserCONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
2ba8f584b97cbab864570e38fd26b8cb90961428Tinderbox User# Current version of subversion only supports ruby 1.8, not 1.9.
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# Until subversion is updated to 1.8.0 (ruby 1.9 support added)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# or later, use ruby 1.8.
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsLIBSVNDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64)
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterAPR-CONFIG.32 = /usr/apr/1.3/bin/apr-1-config
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsAPR-CONFIG.64 = /usr/apr/1.3/bin/$(MACH64)/apr-1-config
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsAPU-CONFIG.32 = /usr/apr-util/1.3/bin/apu-1-config
551271d8198ae06e37edf5da519d8ee153eeac0fTinderbox UserAPU-CONFIG.64 = /usr/apr-util/1.3/bin/$(MACH64)/apu-1-config
b871c7156eb037d41f53828c6fcb9cc876128962Mark Andrews# Let's make noise just because we have to override --libdir
b871c7156eb037d41f53828c6fcb9cc876128962Mark AndrewsCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
01a5c5503482fb3ba52088bf0178a7213273bf96Mark AndrewsCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
551271d8198ae06e37edf5da519d8ee153eeac0fTinderbox UserCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
b871c7156eb037d41f53828c6fcb9cc876128962Mark AndrewsCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
df4ebd8217d02dafc12145b55c4d93d0255d1ec7Tinderbox UserCONFIGURE_OPTIONS += --libdir=$(LIBSVNDIR.$(BITS))
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCONFIGURE_OPTIONS += --disable-libtool-lock
fa0326cc2cf428f67575b6ba3b97b528a31b0010Tinderbox UserCONFIGURE_OPTIONS += --disable-neon-version-check
fa0326cc2cf428f67575b6ba3b97b528a31b0010Tinderbox UserCONFIGURE_OPTIONS += --disable-experimental-libtool
fa0326cc2cf428f67575b6ba3b97b528a31b0010Tinderbox UserCONFIGURE_OPTIONS += --with-apxs=/usr/apache2/2.2/bin/apxs
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCONFIGURE_OPTIONS += --with-apr=/usr/apr/1.3
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/1.3
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterCONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterCONFIGURE_OPTIONS += --with-apr=$(APR-CONFIG.$(BITS))
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterCONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS))
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterCONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Swig overwrites the 32-bit directory with 64-bit objects.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# So we work around that.
5f7586ddbd3edd11272cdd30ed613d936129328bTinderbox User ( cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \
5f7586ddbd3edd11272cdd30ed613d936129328bTinderbox User $(MV) vendor-packages vendor-packages-$(BITS) ; \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User if test -d vendor-packages-64 ; then \
c7ef13f6c9ef4436bc804b150e0a93307b11fa27Tinderbox User $(GNUCP) -rpd vendor-packages-64/libsvn vendor-packages/64/ ; \
c7ef13f6c9ef4436bc804b150e0a93307b11fa27Tinderbox User $(GNUCP) -rpd vendor-packages-64/svn vendor-packages/64/ ; \
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User $(GNUCP) -rpd vendor-packages-32/libsvn vendor-packages/ ; \