Makefile revision 3362
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#
2107N/A# Copyright (c) 2011, 2013, 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
903N/ACOMPONENT_VERSION= 1.7.5
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= \
903N/A sha256:cb102a437335a8921f00cef9bf730d84527713f1a5091e3e1eb2f16402f85dc1
903N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/svn
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/A
200N/APYMODS = client core delta fs ra repos wc
200N/A
200N/APLMODS= Fs Core Wc Client Repos Ra Delta
206N/A
200N/AJAVA_ROOT = $(JAVA_HOME)
200N/A
206N/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
200N/ACFLAGS += -xustr=ascii_utf16_ushort -xcsi
206N/ACXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
200N/ACXXFLAGS += -template=geninlinefuncs
200N/ACXXFLAGS += -verbose=template
200N/ACXXFLAGS += -xustr=ascii_utf16_ushort
206N/ACXXFLAGS += $(CC_PIC)
200N/ACXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
206N/ACFLAGS += `pkg-config --cflags neon`
206N/ACFLAGS += $(CPP_LARGEFILES)
206N/A
200N/A# Let's write some post-configure hacks
200N/ACOMPONENT_POST_CONFIGURE_ACTION = \
200N/A ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
200N/A cd $(SOURCE_DIR) ; \
903N/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 \
206N/A install-swig-pl install-swig-py \
200N/A install-javahl install-javahl-lib \
200N/A install-mods-shared \
200N/A install-bin install-docs
200N/A
200N/ACONFIGURE_ENV += CC="$(CC)"
206N/ACONFIGURE_ENV += CXX="$(CXX)"
200N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
200N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
206N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
200N/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)"
2127N/A# Current version of subversion only supports ruby 1.8, not 1.9.
2127N/A# Until subversion is updated to 1.8.0 (ruby 1.9 support added)
2127N/A# or later, use ruby 1.8.
2127N/ACONFIGURE_ENV += RUBY="$(RUBY.1.8)"
200N/A
200N/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=$(CONFIGURE_PREFIX)/lib/svn
200N/ACONFIGURE_OPTIONS += --localstatedir=/var
200N/ACONFIGURE_OPTIONS += --enable-shared
200N/ACONFIGURE_OPTIONS += --disable-static
200N/ACONFIGURE_OPTIONS += --disable-libtool-lock
200N/ACONFIGURE_OPTIONS += --disable-neon-version-check
200N/ACONFIGURE_OPTIONS += --disable-experimental-libtool
206N/ACONFIGURE_OPTIONS += --with-apxs=/usr/apache2/2.2/bin/apxs
200N/ACONFIGURE_OPTIONS += --with-ssl
200N/ACONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
200N/ACONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
206N/ACONFIGURE_OPTIONS += --with-apr=/usr/apr/1.3
206N/ACONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/1.3
200N/ACONFIGURE_OPTIONS += --enable-nls
200N/ACONFIGURE_OPTIONS += --disable-mod-activation
200N/ACONFIGURE_OPTIONS += --enable-javahl
200N/ACONFIGURE_OPTIONS += --with-swig
200N/ACONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
2107N/ACONFIGURE_OPTIONS += --with-gssapi=$(CONFIGURE_PREFIX)
200N/A
200N/A# common targets - we only build 32-bit subversion
200N/Abuild: $(BUILD_32)
200N/A
206N/Ainstall: $(INSTALL_32)
200N/A
200N/Atest: $(TEST_32)
200N/A
200N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
200N/A
200N/Ainclude ../../make-rules/depend.mk
200N/A