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