Makefile revision 3911
225N/A#
225N/A# CDDL HEADER START
225N/A#
225N/A# The contents of this file are subject to the terms of the
225N/A# Common Development and Distribution License (the "License").
225N/A# You may not use this file except in compliance with the License.
225N/A#
225N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
225N/A# or http://www.opensolaris.org/os/licensing.
225N/A# See the License for the specific language governing permissions
225N/A# and limitations under the License.
225N/A#
225N/A# When distributing Covered Code, include this CDDL HEADER in each
225N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
225N/A# If applicable, add the following below this CDDL HEADER, with the
225N/A# fields enclosed by brackets "[]" replaced with your own identifying
225N/A# information: Portions Copyright [yyyy] [name of copyright owner]
225N/A#
225N/A# CDDL HEADER END
225N/A#
225N/A
225N/A#
2899N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
225N/A#
225N/A
225N/Ainclude ../../make-rules/shared-macros.mk
225N/A
225N/APATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
225N/A
618N/ACOMPONENT_NAME= subversion
225N/ACOMPONENT_VERSION= 1.7.19
225N/ACOMPONENT_PROJECT_URL= http://subversion.apache.org/
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
225N/ACOMPONENT_ARCHIVE_HASH= \
1258N/A sha256:184246bf5ccd0cb31f296b87fdae72617e445901b468529e638b919ca4012d4f
225N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
2899N/ACOMPONENT_BUGDB= utility/svn
2899N/A
225N/ATPNO= 21233
225N/A
225N/Ainclude $(WS_MAKE_RULES)/prep.mk
225N/Ainclude $(WS_MAKE_RULES)/configure.mk
225N/Ainclude $(WS_MAKE_RULES)/ips.mk
225N/A
225N/APATCH_LEVEL = 0
225N/APYMODS = client core delta fs ra repos wc
225N/APLMODS= Fs Core Wc Client Repos Ra Delta
225N/AJAVA_ROOT = $(JAVA_HOME)
225N/APERL_VERSION.32 = 5.12
1392N/APERL_VERSION.64 = 5.16
225N/APERL_VERSION = $(PERL_VERSION.$(BITS))
225N/APERL = $(PERL.$(PERL_VERSION))
225N/APYTHON_VERSION = 2.7
892N/AGNUCP = /usr/gnu/bin/cp
892N/A
892N/A# because we can't seem to get -norunpath to the java bindings build any
892N/A# other way.
225N/ACXX += $(studio_NORUNPATH)
225N/ACFLAGS += -features=extensions
225N/ACXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
1989N/ACXXFLAGS += -template=geninlinefuncs
1989N/ACXXFLAGS += $(CC_PIC)
225N/ACXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
3477N/ACXXFLAGS += $(CPP_LARGEFILES)
3477N/ACFLAGS += `pkg-config --cflags neon`
892N/ACFLAGS += $(CPP_LARGEFILES)
225N/A
892N/ACOMPONENT_TEST_TRANSFORMS += \
225N/A '-e "/libtool/d"' \
892N/A '-e "/-m32/d"' \
225N/A '-e "/-m64/d"' \
225N/A '-e "s^lib/$(MACH64)^lib/MACH64^g"' \
225N/A '-e "s/^make\[[0-9]\{1,\}\]/make/g"' \
225N/A '-e "/ld: warning/d"' \
225N/A '-e "/warning/d"'
897N/A
225N/APERL_VERSION_12 = 5.12
897N/APERL_VERSION_16 = 5.16
892N/APERL_ARCH_12_i386 = i86pc-solaris-64int
225N/APERL_ARCH_16_i386 = i86pc-solaris-64
225N/APERL_ARCH_12_sparc = sun4-solaris-64int
225N/APERL_ARCH_16_sparc = sun4-solaris-64
PERL_ARCH_12 = $(PERL_ARCH_12_$(MACH))
PERL_ARCH_16 = $(PERL_ARCH_16_$(MACH))
APR_VERSION = 1.5
APR_UTIL_VERSION = 1.5
SS_VERSION := 12.3
ifneq (, $(findstring 12.4,$(CXX)))
SS_VERSION := 12.4
endif
# Let's write some post-configure hacks
COMPONENT_POST_CONFIGURE_ACTION = \
( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
cd $(SOURCE_DIR) ; \
$(PYTHON.$(BITS)) ./build/transform_sql.py ./subversion/libsvn_fs_fs/rep-cache-db.sql < ./subversion/libsvn_fs_fs/rep-cache-db.sql > $(BUILD_DIR_$(BITS))/subversion/libsvn_fs_fs/rep-cache-db.h 2>&1 )
COMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
COMPONENT_INSTALL_TARGETS = install install-lib \
install-swig-pl install-swig-py \
install-javahl install-javahl-lib \
install-mods-shared \
install-bin install-docs
CONFIGURE_ENV += CC="$(CC)"
CONFIGURE_ENV += CXX="$(CXX)"
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
CONFIGURE_ENV += PYTHON="$(PYTHON.$(BITS))"
CONFIGURE_ENV += PYMODS="$(PYMODS)"
CONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
CONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)"
CONFIGURE_ENV += PERL="$(PERL)"
CONFIGURE_ENV += PLMODS="$(PLMODS)"
CONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
LIBSVNDIR.32 = $(CONFIGURE_PREFIX)/lib/svn
LIBSVNDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64)
APR-CONFIG.32 = /usr/apr/$(APR_VERSION)/bin/apr-1-config
APR-CONFIG.64 = /usr/apr/$(APR_VERSION)/bin/$(MACH64)/apr-1-config
APU-CONFIG.32 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/apu-1-config
APU-CONFIG.64 = /usr/apr-util/$(APR_UTIL_VERSION)/bin/$(MACH64)/apu-1-config
APXS.32 = /usr/apache2/2.2/bin/apxs
APXS.64 = /usr/apache2/2.4/bin/apxs
APR-CONFIG-RPATH.32 = /usr/apr/$(APR_VERSION)/lib
APR-CONFIG-RPATH.64 = /usr/apr/$(APR_VERSION)/lib/$(MACH64)
APU-CONFIG-RPATH.32 = /usr/apr-util/$(APR_VERSION)/lib
APU-CONFIG-RPATH.64 = /usr/apr-util/$(APR_VERSION)/lib/$(MACH64)
APACHE_LIBEXECDIR.32 = `$(APXS.32) -q libexecdir`
APACHE_LIBEXECDIR.64 = `$(APXS.64) -q libexecdir`
LDFLAGS += -R$(LIBSVNDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
-R$(APU-CONFIG-RPATH.$(BITS))
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
CONFIGURE_ENV += RUBY="$(RUBY.1.9)"
# 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=$(LIBSVNDIR.$(BITS))
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=$(APXS.$(BITS))
CONFIGURE_OPTIONS += --with-ssl
CONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
CONFIGURE_OPTIONS += --with-apr=/usr/apr/$(APR_VERSION)
CONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/$(APR_UTIL_VERSION)
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-apr=$(APR-CONFIG.$(BITS))
CONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS))
CONFIGURE_OPTIONS += --with-gssapi=$(CONFIGURE_PREFIX)
# Swig overwrites the 32-bit directory with 64-bit objects.
# So we work around that.
COMPONENT_POST_INSTALL_ACTION += \
( cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \
$(RM) -rf vendor-packages-$(BITS) ; \
$(MV) vendor-packages vendor-packages-$(BITS) ; \
$(MKDIR) -p vendor-packages ; \
$(MKDIR) -p vendor-packages/64 ; \
if test -d vendor-packages-64 ; then \
$(GNUCP) -rpd vendor-packages-64/libsvn vendor-packages/64/ ; \
$(GNUCP) -rpd vendor-packages-64/svn vendor-packages/64/ ; \
$(GNUCP) -rpd vendor-packages-32/libsvn vendor-packages/ ; \
$(GNUCP) -rpd vendor-packages-32/svn vendor-packages/ ; \
fi ; )
PKG_MACROS += PERL_ARCH_16="$(PERL_ARCH_16)"
PKG_MACROS += PYVER=$(PYTHON_VERSION)
ASLR_MODE=$(ASLR_ENABLE)
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
REQUIRED_PACKAGES += database/sqlite-3
REQUIRED_PACKAGES += developer/versioning/subversion
REQUIRED_PACKAGES += library/apr-15
REQUIRED_PACKAGES += library/apr-util-15
REQUIRED_PACKAGES += library/expat
REQUIRED_PACKAGES += library/neon
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/security/gss