Makefile revision 5852
200N/A#
200N/A# CDDL HEADER START
200N/A#
200N/A# The contents of this file are subject to the terms of the
200N/A# Common Development and Distribution License (the "License").
200N/A# You may not use this file except in compliance with the License.
200N/A#
200N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
200N/A# or http://www.opensolaris.org/os/licensing.
200N/A# See the License for the specific language governing permissions
200N/A# and limitations under the License.
200N/A#
200N/A# When distributing Covered Code, include this CDDL HEADER in each
200N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
200N/A# If applicable, add the following below this CDDL HEADER, with the
200N/A# fields enclosed by brackets "[]" replaced with your own identifying
200N/A# information: Portions Copyright [yyyy] [name of copyright owner]
200N/A#
200N/A# CDDL HEADER END
200N/A#
200N/A
200N/A#
814N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
200N/A#
200N/A
200N/ABUILD_BITS=64_and_32
200N/Ainclude ../../make-rules/shared-macros.mk
814N/A
206N/APATH=$(dir $(CC)):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
200N/A
903N/ACOMPONENT_NAME= subversion
618N/ACOMPONENT_VERSION= 1.9.3
200N/ACOMPONENT_PROJECT_URL= http://subversion.apache.org/
200N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:74cd21d2f8a2a54e4dbd2389fe1605a19dbda8ba88ffc4bb0edc9a66e143cc93
903N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
903N/ACOMPONENT_BUGDB= utility/svn
1258N/A
200N/ATPNO= 27091
200N/A
200N/Ainclude $(WS_MAKE_RULES)/common.mk
200N/A
200N/APATCH_LEVEL := 0
200N/AJAVA_ROOT = $(JAVA_HOME)
200N/AGNUCP = $(GNUBIN)/cp
200N/A
200N/A# Because we can't seem to get -norunpath to the java bindings build any
200N/A# other way.
206N/ACXX += $(studio_NORUNPATH)
200N/ACFLAGS += -features=extensions
200N/ACFLAGS += -D_REENTRANT -DNDEBUG -DSOLARIS
206N/ACXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
206N/ACXXFLAGS += -template=geninlinefuncs
206N/ACXXFLAGS += $(CC_PIC)
206N/ACXXFLAGS += -D_REENTRANT -DNDEBUG -DSOLARIS
206N/ACXXFLAGS += $(CPP_LARGEFILES)
200N/ACFLAGS += `pkg-config --cflags serf-1`
206N/ACFLAGS += $(CPP_LARGEFILES)
200N/A
200N/APYMODS := client core delta fs ra repos wc
200N/APLMODS :=
206N/A
200N/Aifneq (,$(findstring m64,$(CXXFLAGS)))
206N/A PLMODS = Fs Core Wc Client Repos Ra Delta
206N/Aendif
206N/A
200N/ACOMPONENT_TEST_MASTER = \
200N/A $(COMPONENT_TEST_RESULTS_DIR)/results-subversion.master
200N/A
200N/ACOMPONENT_TEST_TRANSFORMS += \
903N/A '-e "/libtool/d"' \
200N/A '-e "/-m32/d"' \
200N/A '-e "/-m64/d"' \
200N/A '-e "/Entering/d"' \
206N/A '-e "/Leaving/d"' \
200N/A '-e "/At least/d"' \
200N/A '-e "s^lib/$(MACH64)^lib/MACH64^g"' \
200N/A '-e "s/^make\[[0-9]\{1,\}\]/make/g"' \
200N/A '-e "/ld: warning/d"' \
200N/A '-e "/warning/d"'
206N/A
200N/APERL_VERSION.32 = none
200N/APERL_VERSION.64 = 5.22
206N/APERL_VERSION=$(PERL_VERSION.$(BITS))
200N/APERL.32 = none
200N/APERL.64 = $(USRDIR)/perl5/$(PERL_VERSION)/bin/perl
200N/APERL=$(PERL.$(BITS))
200N/A
200N/APERL_VERSION_22 = 5.22
200N/APERL_ARCH_22_i386 = i86pc-solaris-thread-multi-64
200N/APERL_ARCH_22_sparc = sun4-solaris-thread-multi-64
200N/APERL_ARCH_22 = $(PERL_ARCH_22_$(MACH))
200N/A
200N/AAPR_VERSION = 1.5
200N/AAPR_UTIL_VERSION = 1.5
200N/A
200N/A# Use the libraries just built plus the svn test harness library.
200N/ALD_TEST_PATH_32 := \
200N/A $(PROTOUSRLIBDIR)/svn:$(BUILD_DIR_32)/subversion/tests/.libs
200N/ALD_TEST_PATH_64 := \
200N/A $(PROTOUSRLIBDIR)/svn/$(MACH64):$(BUILD_DIR_64)/subversion/tests/.libs
200N/A
200N/A# Let's write some post-configure hacks
206N/ACOMPONENT_POST_CONFIGURE_ACTION = \
200N/A ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
200N/A cd $(SOURCE_DIR) ; \
200N/A $(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 ; \
206N/A cd $(BUILD_DIR_$(BITS)) ; \
206N/A find . -type f -name "*.class" -exec rm -f {} \; > /dev/null 2>&1 ; \
200N/A cd $(BUILD_DIR_$(BITS)) ; \
200N/A $(GSED) -i 's/-mt//g' Makefile )
200N/A
200N/ACOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
200N/ACOMPONENT_INSTALL_TARGETS = install install-lib \
200N/A install-swig-pl install-swig-py \
200N/A install-javahl install-javahl-lib \
200N/A install-bin install-docs
200N/A
206N/A$(BUILD_DIR)/$(MACH64)/.installed: COMPONENT_INSTALL_TARGETS += install-mods-shared
200N/A
200N/ACONFIGURE_LIBDIR.32 = $(CONFIGURE_PREFIX)/lib/svn
200N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64)
200N/A
200N/AAPR-CONFIG.32 = $(USRDIR)/apr/$(APR_VERSION)/bin/apr-1-config
200N/AAPR-CONFIG.64 = $(USRDIR)/apr/$(APR_VERSION)/bin/$(MACH64)/apr-1-config
200N/AAPU-CONFIG.32 = $(USRDIR)/apr-util/$(APR_UTIL_VERSION)/bin/apu-1-config
APU-CONFIG.64 = $(USRDIR)/apr-util/$(APR_UTIL_VERSION)/bin/$(MACH64)/apu-1-config
APXS.32 = no
APXS.64 = $(USRDIR)/apache2/2.4/bin/apxs
APR-CONFIG-RPATH.32 = $(USRDIR)/apr/$(APR_VERSION)/lib
APR-CONFIG-RPATH.64 = $(USRDIR)/apr/$(APR_VERSION)/lib/$(MACH64)
APU-CONFIG-RPATH.32 = $(USRDIR)/apr-util/$(APR_VERSION)/lib
APU-CONFIG-RPATH.64 = $(USRDIR)/apr-util/$(APR_VERSION)/lib/$(MACH64)
EXPAT_INCLUDE = $(USRINCDIR)
EXPAT_LIBDIR = $(USRLIB.$(BITS))
EXPAT_LIB = -lexpat
APACHE_LIBEXECDIR=$(USRDIR)/apache2/2.4/libexec
LDFLAGS += -R$(CONFIGURE_LIBDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
-R$(APU-CONFIG-RPATH.$(BITS))
LD_OPTIONS += -R$(CONFIGURE_LIBDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
-R$(APU-CONFIG-RPATH.$(BITS))
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 += ac_cv_path_PERL="$(PERL)"
CONFIGURE_ENV += PLMODS="$(PLMODS)"
CONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-libtool-lock
CONFIGURE_OPTIONS += --disable-experimental-libtool
CONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
CONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
CONFIGURE_OPTIONS += --with-apr=$(USRDIR)/apr/$(APR_VERSION)
CONFIGURE_OPTIONS += --with-apr-util=$(USRDIR)/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-expat=$(EXPAT_INCLUDE):$(EXPAT_LIBDIR):$(EXPAT_LIB)
CONFIGURE_OPTIONS += --with-serf=$(CONFIGURE_PREFIIX)
CONFIGURE_OPTIONS += --with-apr=$(APR-CONFIG.$(BITS))
CONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS))
CONFIGURE_OPTIONS += --with-apache-libexecdir=$(APACHE_LIBEXECDIR)
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
COMPONENT_BUILD_ENV += PYTHON="$(PYTHON.$(BITS))"
COMPONENT_BUILD_ENV += PYMODS="$(PYMODS)"
COMPONENT_BUILD_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
COMPONENT_BUILD_ENV += JAVA_ROOT="$(JAVA_ROOT)"
COMPONENT_BUILD_ENV += PERL="$(PERL)"
COMPONENT_BUILD_ENV += ac_cv_path_PERL="$(PERL)"
COMPONENT_BUILD_ENV += PLMODS="$(PLMODS)"
COMPONENT_BUILD_ENV += LD_OPTIONS="$(LD_OPTIONS)"
COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
COMPONENT_TEST_ENV += LD_LIBRARY_PATH_32="$(LD_TEST_PATH_32)"
COMPONENT_TEST_ENV += LD_LIBRARY_PATH_64="$(LD_TEST_PATH_64)"
PKG_MACROS += PERL_ARCH_22="$(PERL_ARCH_22)"
PKG_MACROS += PYVER=$(PYTHON_VERSION)
# 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 ; )
REQUIRED_PACKAGES += database/sqlite-3
REQUIRED_PACKAGES += developer/versioning/subversion
REQUIRED_PACKAGES += developer/build/scons
REQUIRED_PACKAGES += gnome/gnome-keyring
REQUIRED_PACKAGES += library/apr-15
REQUIRED_PACKAGES += library/apr-util-15
REQUIRED_PACKAGES += library/expat
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/gnome/gnome-keyring
REQUIRED_PACKAGES += library/libserf
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/perl-522
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/library/security/libsasl
REQUIRED_PACKAGES += system/library/security/libsasl2