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