Makefile revision 493
749N/A#
749N/A# CDDL HEADER START
920N/A#
749N/A# The contents of this file are subject to the terms of the
1422N/A# Common Development and Distribution License (the "License").
749N/A# You may not use this file except in compliance with the License.
749N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
749N/A
749N/Ainclude ../../make-rules/shared-macros.mk
749N/A
1097N/APATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
1097N/A
1097N/ACOMPONENT_NAME= subversion
749N/ACOMPONENT_VERSION= 1.6.16
1097N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
749N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
749N/ACOMPONENT_ARCHIVE_HASH= sha1:e957da04252d4d7e0fff72fdcf72c715bfbaa393
749N/ACOMPONENT_ARCHIVE_URL= http://subversion.tigris.org/downloads/$(COMPONENT_ARCHIVE)
1360N/A
1360N/Ainclude ../../make-rules/prep.mk
1360N/Ainclude ../../make-rules/configure.mk
970N/Ainclude ../../make-rules/ips.mk
977N/A
970N/APATCH_LEVEL = 0
970N/A
749N/APYMODS = client core delta fs ra repos wc
749N/A
749N/APLMODS= Fs Core Wc Client Repos Ra Delta
749N/A
1422N/AJAVA_ROOT = $(JAVA_HOME)
1422N/A
749N/A# because we can't seem to get -norunpath to the java bindings build any
749N/A# other way.
749N/ACXX += $(studio_NORUNPATH)
749N/A
749N/ACFLAGS += -features=extensions
749N/ACFLAGS += -xustr=ascii_utf16_ushort -xcsi
749N/ACXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
749N/ACXXFLAGS += -template=geninlinefuncs
1124N/ACXXFLAGS += -verbose=template
1124N/ACXXFLAGS += -xustr=ascii_utf16_ushort
1124N/ACXXFLAGS += $(CC_PIC)
1124N/ACXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
1422N/ACFLAGS += `pkg-config --cflags neon`
1422N/ACFLAGS += $(CPP_LARGEFILES)
749N/A
749N/A# Let's write some post-configure hacks
749N/ACOMPONENT_POST_CONFIGURE_ACTION = \
1422N/A ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
1422N/A cd $(SOURCE_DIR) ; \
1422N/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 )
1422N/A
1422N/ACOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
1295N/ACOMPONENT_INSTALL_TARGETS = install install-lib \
749N/A install-swig-pl install-swig-py \
920N/A install-javahl install-javahl-lib \
920N/A install-mods-shared \
920N/A install-bin install-docs
970N/A
970N/ACONFIGURE_ENV += CC="$(CC)"
970N/ACONFIGURE_ENV += CXX="$(CXX)"
749N/ACONFIGURE_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)"
# 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=$(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)
# 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