Makefile revision 200
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# and limitations under the License.
b253dcf9668f95e141bce9556dc88e30d3305a1dTinderbox User# 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
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# CDDL HEADER END
a01aa536188bb3535dfc1107a623e6355a8e6b7cMark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_HASH= sha1:e957da04252d4d7e0fff72fdcf72c715bfbaa393
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_URL= http://subversion.tigris.org/downloads/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# We need to remove these environment files when
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# apache2, apr and apr-util move to Userland
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updaterinclude $(COMPONENT_DIR)/apr-util.build.env
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPLVENDORDIR = /usr/perl5/vendor_perl/$(PLVER)
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserPROTOUSRSHAREJAVADIR = $(PROTOUSRSHAREDIR)/lib/java
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSVN_LDFLAGS = -R/usr/lib/svn:$(APR_USR_PREFIX)/lib:$(APR_UTIL_USR_PREFIX)/lib \
114f7780384371121918624ae2c80ecfce545683Tinderbox UserCXXFLAGS += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# Let's write some post-configure hacks
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User $(CONFIG_SHELL) ./build/transform_sql.sh ./subversion/libsvn_fs_fs/rep-cache-db.sql < ./subversion/libsvn_fs_fs/rep-cache-db.sql > $(BUILD_DIR_32)/subversion/libsvn_fs_fs/rep-cache-db.h 2>&1 )
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox UserCOMPONENT_INSTALL_TARGETS = install install-lib \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
7500521cecdff3c00e594ec41d3a17292332ffbcTinderbox UserCONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E"
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterCONFIGURE_ENV += LDFLAGS="$(SVN_LDFLAGS) $(LDFLAGS)"
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsCONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
a01aa536188bb3535dfc1107a623e6355a8e6b7cMark AndrewsCONFIGURE_ENV += CXXLD="$(CCC) $(CXXFLAGS) $(LDFLAGS)"
89623368b8f662d458d9964b923050f33c5f75b0Tinderbox UserCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_ENV += SWIG_LDFLAGS="$(LDFLAGS) $(SWIG_LDFLAGS)"
b871c7156eb037d41f53828c6fcb9cc876128962Mark AndrewsCONFIGURE_ENV += NEON_LIBS="`pkg-config --libs neon`"
b871c7156eb037d41f53828c6fcb9cc876128962Mark AndrewsCONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)"
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterCONFIGURE_ENV += PLVENDORDIR="$(PLVENDORDIR)"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCONFIGURE_ENV += PLVENDORARCHDIR="$(PLVENDORARCHDIR)"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterLD_OPTIONS += $(SVN_LDFLAGS) $(SWIG_LDFLAGS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Let's make noise just because we have to override --libdir
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterCONFIGURE_OPTIONS += --libdir=$(CONFIGURE_PREFIX)/lib/svn
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterCONFIGURE_OPTIONS += --disable-libtool-lock
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCONFIGURE_OPTIONS += --disable-neon-version-check
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --disable-experimental-libtool
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCONFIGURE_OPTIONS += --with-apxs=$(APACHE_USR_PREFIX)/bin/apxs
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
1368e4b34cef64604c874fcc40201c78e548714cTinderbox UserCONFIGURE_OPTIONS += --with-apr=$(APR_USR_PREFIX)
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserCONFIGURE_OPTIONS += --with-apr-util=$(APR_UTIL_USR_PREFIX)
f132a836c4e386b1af045dd8fe7106ae61b90bffAutomatic UpdaterCONFIGURE_OPTIONS += --disable-mod-activation
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic UpdaterCONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# elfedit to remove the wrong RUNPATH/RPATH from the C++ library
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater ( cd $(PROTO_DIR)/$(CONFIGURE_INCLUDEDIR) ; \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(ELFEDIT) -e 'dyn:runpath /usr/lib/svn:/usr/apr/1.3/lib:/usr/apr-util/1.3/lib' libsvnjavahl-1.so.0.0.0 ; \
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater $(ELFEDIT) -e 'dyn:rpath /usr/lib/svn:/usr/apr/1.3/lib:/usr/apr-util/1.3/lib' libsvnjavahl-1.so.0.0.0 )
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater 'install({@ARGV}, '\''0'\'', 0, '\''0'\'');' \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/lib $(PROTO_DIR)/$(PLVENDORDIR) \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/arch $(PROTO_DIR)/$(PLVENDORDIR)/$(PLARCH) \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/man3 $(PROTO_DIR)/$(PLDIR)/man/man3
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater# common targets - we only build 32-bit subversion