Makefile revision 2107
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
1N/A#
1N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/APATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
1N/A
1N/ACOMPONENT_NAME= subversion
1N/ACOMPONENT_VERSION= 1.7.5
1N/ACOMPONENT_PROJECT_URL= http://subversion.apache.org/
1N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1N/ACOMPONENT_ARCHIVE_HASH= \
1N/A sha256:cb102a437335a8921f00cef9bf730d84527713f1a5091e3e1eb2f16402f85dc1
1N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= utility/svn
1N/A
1N/Ainclude ../../make-rules/prep.mk
1N/Ainclude ../../make-rules/configure.mk
1N/Ainclude ../../make-rules/ips.mk
1N/A
1N/APATCH_LEVEL = 0
1N/A
1N/APYMODS = client core delta fs ra repos wc
1N/A
1N/APLMODS= Fs Core Wc Client Repos Ra Delta
1N/A
1N/AJAVA_ROOT = $(JAVA_HOME)
1N/A
1N/A# because we can't seem to get -norunpath to the java bindings build any
1N/A# other way.
1N/ACXX += $(studio_NORUNPATH)
1N/A
1N/ACFLAGS += -features=extensions
1N/ACFLAGS += -xustr=ascii_utf16_ushort -xcsi
1N/ACXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
1N/ACXXFLAGS += -template=geninlinefuncs
1N/ACXXFLAGS += -verbose=template
1N/ACXXFLAGS += -xustr=ascii_utf16_ushort
1N/ACXXFLAGS += $(CC_PIC)
1N/ACXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
1N/ACFLAGS += `pkg-config --cflags neon`
1N/ACFLAGS += $(CPP_LARGEFILES)
1N/A
1N/A# Let's write some post-configure hacks
1N/ACOMPONENT_POST_CONFIGURE_ACTION = \
1N/A ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
1N/A cd $(SOURCE_DIR) ; \
1N/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 )
1N/A
1N/ACOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
1N/ACOMPONENT_INSTALL_TARGETS = install install-lib \
1N/A install-swig-pl install-swig-py \
1N/A install-javahl install-javahl-lib \
1N/A install-mods-shared \
1N/A install-bin install-docs
1N/A
1N/ACONFIGURE_ENV += CC="$(CC)"
1N/ACONFIGURE_ENV += CXX="$(CXX)"
1N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
1N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
1N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
1N/ACONFIGURE_ENV += PYTHON="$(PYTHON)"
1N/ACONFIGURE_ENV += PYMODS="$(PYMODS)"
1N/ACONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)"
1N/ACONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)"
1N/ACONFIGURE_ENV += PERL="$(PERL)"
1N/ACONFIGURE_ENV += PLMODS="$(PLMODS)"
1N/A
1N/A# Let's make noise just because we have to override --libdir
1N/ACONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
1N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
1N/ACONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
1N/ACONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
1N/ACONFIGURE_OPTIONS += --libdir=$(CONFIGURE_PREFIX)/lib/svn
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=/usr/apache2/2.2/bin/apxs
CONFIGURE_OPTIONS += --with-ssl
CONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
CONFIGURE_OPTIONS += --with-apr=/usr/apr/1.3
CONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/1.3
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