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