Makefile revision 3866
200N/A#
200N/A# CDDL HEADER START
200N/A#
200N/A# The contents of this file are subject to the terms of the
200N/A# Common Development and Distribution License (the "License").
200N/A# You may not use this file except in compliance with the License.
200N/A#
200N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
200N/A# or http://www.opensolaris.org/os/licensing.
200N/A# See the License for the specific language governing permissions
200N/A# and limitations under the License.
200N/A#
200N/A# When distributing Covered Code, include this CDDL HEADER in each
200N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
200N/A# If applicable, add the following below this CDDL HEADER, with the
200N/A# fields enclosed by brackets "[]" replaced with your own identifying
200N/A# information: Portions Copyright [yyyy] [name of copyright owner]
200N/A#
200N/A# CDDL HEADER END
200N/A#
200N/A
200N/A#
814N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
200N/A#
200N/A
200N/Ainclude ../../make-rules/shared-macros.mk
200N/A
814N/APATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
206N/A
200N/ACOMPONENT_NAME= subversion
200N/ACOMPONENT_VERSION= 1.7.19
618N/ACOMPONENT_PROJECT_URL= http://subversion.apache.org/
200N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
200N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:184246bf5ccd0cb31f296b87fdae72617e445901b468529e638b919ca4012d4f
206N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
200N/ACOMPONENT_BUGDB= utility/svn
200N/ATPNO= 21233
200N/A
200N/Ainclude ../../make-rules/prep.mk
200N/Ainclude ../../make-rules/configure.mk
200N/Ainclude ../../make-rules/ips.mk
200N/A
200N/APATCH_LEVEL = 0
200N/APYMODS = client core delta fs ra repos wc
200N/APLMODS= Fs Core Wc Client Repos Ra Delta
206N/AJAVA_ROOT = $(JAVA_HOME)
200N/A
200N/A# because we can't seem to get -norunpath to the java bindings build any
206N/A# other way.
206N/ACXX += $(studio_NORUNPATH)
206N/A
206N/ACFLAGS += -features=extensions
206N/ACXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
200N/ACXXFLAGS += -template=geninlinefuncs
206N/ACXXFLAGS += $(CC_PIC)
200N/ACXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
200N/ACFLAGS += `pkg-config --cflags neon`
200N/ACFLAGS += $(CPP_LARGEFILES)
206N/A
200N/AAPR_VERSION = 1.3
206N/AAPR_UTIL_VERSION = 1.3
206N/A
206N/A# Let's write some post-configure hacks
200N/ACOMPONENT_POST_CONFIGURE_ACTION = \
200N/A ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
200N/A cd $(SOURCE_DIR) ; \
200N/A $(PYTHON) ./build/transform_sql.py ./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 )
200N/A
200N/ACOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
200N/ACOMPONENT_INSTALL_TARGETS = install install-lib \
200N/A install-swig-pl install-swig-py \
206N/A install-javahl install-javahl-lib \
200N/A install-mods-shared \
200N/A install-bin install-docs
200N/A
200N/ACONFIGURE_ENV += CC="$(CC)"
200N/ACONFIGURE_ENV += CXX="$(CXX)"
206N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
200N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
200N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
206N/ACONFIGURE_ENV += PYTHON="$(PYTHON)"
200N/ACONFIGURE_ENV += PYMODS="$(PYMODS)"
200N/ACONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)"
200N/ACONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)"
200N/ACONFIGURE_ENV += PERL="$(PERL)"
200N/ACONFIGURE_ENV += PLMODS="$(PLMODS)"
200N/A
200N/ALIBSVNDIR.32 = $(CONFIGURE_PREFIX)/lib/svn
200N/AAPR-CONFIG.32 = /usr/apr/$(APR_VERSION)/bin/apr-1-config
200N/AAPU-CONFIG.32 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/apu-1-config
200N/AAPXS.32 = /usr/apache2/2.2/bin/apxs
200N/AAPR-CONFIG-RPATH.32 = /usr/apr/$(APR_VERSION)/lib
200N/AAPU-CONFIG-RPATH.32 = /usr/apr-util/$(APR_VERSION)/lib
200N/AAPACHE_LIBEXECDIR.32 = `$(APXS.32) -q libexecdir`
200N/A
200N/ALDFLAGS += -R$(LIBSVNDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
200N/A -R$(APU-CONFIG-RPATH.$(BITS))
200N/A
200N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
200N/A
206N/A# Current version of subversion only supports ruby 1.8, not 1.9.
200N/A# Until subversion is updated to 1.8.0 (ruby 1.9 support added)
200N/A# or later, use ruby 1.8.
200N/ACONFIGURE_ENV += RUBY="$(RUBY.1.8)"
206N/A
206N/A# Let's make noise just because we have to override --libdir
200N/ACONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
200N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
200N/ACONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
200N/ACONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
200N/ACONFIGURE_OPTIONS += --libdir=$(LIBSVNDIR.$(BITS))
200N/ACONFIGURE_OPTIONS += --localstatedir=/var
200N/ACONFIGURE_OPTIONS += --enable-shared
200N/ACONFIGURE_OPTIONS += --disable-static
200N/ACONFIGURE_OPTIONS += --disable-libtool-lock
206N/ACONFIGURE_OPTIONS += --disable-neon-version-check
200N/ACONFIGURE_OPTIONS += --disable-experimental-libtool
200N/ACONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
200N/ACONFIGURE_OPTIONS += --with-ssl
200N/ACONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
200N/ACONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
200N/ACONFIGURE_OPTIONS += --with-apr=/usr/apr/$(APR_VERSION)
200N/ACONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/$(APR_UTIL_VERSION)
CONFIGURE_OPTIONS += --enable-nls
CONFIGURE_OPTIONS += --disable-mod-activation
CONFIGURE_OPTIONS += --enable-javahl
CONFIGURE_OPTIONS += --with-swig
CONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --with-gssapi=$(CONFIGURE_PREFIX)
# common targets - we only build 32-bit subversion
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk