Makefile revision 6680
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#
5452N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
200N/A#
5852N/A
5852N/ABUILD_BITS=64_and_32
200N/Ainclude ../../make-rules/shared-macros.mk
200N/A
5776N/APATH=$(dir $(CC)):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
206N/A
200N/ACOMPONENT_NAME= subversion
6680N/ACOMPONENT_VERSION= 1.9.4
618N/ACOMPONENT_PROJECT_URL= http://subversion.apache.org/
844N/ACOMPONENT_ARCHIVE_HASH= \
6680N/A sha256:11f738063f322b06f8c81e42bc26c33e0cb1e465539647109e534274d4a8540c
903N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/svn
200N/A
6680N/ATPNO= 30345
200N/A
5776N/Ainclude $(WS_MAKE_RULES)/common.mk
5769N/A
5852N/APATCH_LEVEL := 0
200N/AJAVA_ROOT = $(JAVA_HOME)
5776N/AGNUCP = $(GNUBIN)/cp
200N/A
5852N/A# Because we can't seem to get -norunpath to the java bindings build any
206N/A# other way.
206N/ACXX += $(studio_NORUNPATH)
206N/ACFLAGS += -features=extensions
5852N/ACFLAGS += -D_REENTRANT -DNDEBUG -DSOLARIS
206N/ACXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
200N/ACXXFLAGS += -template=geninlinefuncs
206N/ACXXFLAGS += $(CC_PIC)
5852N/ACXXFLAGS += -D_REENTRANT -DNDEBUG -DSOLARIS
1625N/ACXXFLAGS += $(CPP_LARGEFILES)
5852N/ACFLAGS += `pkg-config --cflags serf-1`
206N/ACFLAGS += $(CPP_LARGEFILES)
206N/A
5852N/APYMODS := client core delta fs ra repos wc
5852N/APLMODS :=
5852N/A
5852N/Aifneq (,$(findstring m64,$(CXXFLAGS)))
5852N/A PLMODS = Fs Core Wc Client Repos Ra Delta
5852N/Aendif
5852N/A
4203N/ACOMPONENT_TEST_MASTER = \
4203N/A $(COMPONENT_TEST_RESULTS_DIR)/results-subversion.master
4203N/A
3865N/ACOMPONENT_TEST_TRANSFORMS += \
3865N/A '-e "/libtool/d"' \
3865N/A '-e "/-m32/d"' \
3865N/A '-e "/-m64/d"' \
5852N/A '-e "/Entering/d"' \
5852N/A '-e "/Leaving/d"' \
5852N/A '-e "/At least/d"' \
3865N/A '-e "s^lib/$(MACH64)^lib/MACH64^g"' \
3865N/A '-e "s/^make\[[0-9]\{1,\}\]/make/g"' \
3865N/A '-e "/ld: warning/d"' \
3865N/A '-e "/warning/d"'
3865N/A
5852N/APERL_VERSION.32 = none
5852N/APERL_VERSION.64 = 5.22
5852N/APERL_VERSION=$(PERL_VERSION.$(BITS))
5852N/APERL.32 = none
5852N/APERL.64 = $(USRDIR)/perl5/$(PERL_VERSION)/bin/perl
5852N/APERL=$(PERL.$(BITS))
5852N/A
5852N/APERL_VERSION_22 = 5.22
5852N/APERL_ARCH_22_i386 = i86pc-solaris-thread-multi-64
5852N/APERL_ARCH_22_sparc = sun4-solaris-thread-multi-64
5852N/APERL_ARCH_22 = $(PERL_ARCH_22_$(MACH))
5852N/A
3865N/AAPR_VERSION = 1.5
3865N/AAPR_UTIL_VERSION = 1.5
1625N/A
5852N/A# Use the libraries just built plus the svn test harness library.
5852N/ALD_TEST_PATH_32 := \
5852N/A $(PROTOUSRLIBDIR)/svn:$(BUILD_DIR_32)/subversion/tests/.libs
5852N/ALD_TEST_PATH_64 := \
5852N/A $(PROTOUSRLIBDIR)/svn/$(MACH64):$(BUILD_DIR_64)/subversion/tests/.libs
5852N/A
200N/A# Let's write some post-configure hacks
200N/ACOMPONENT_POST_CONFIGURE_ACTION = \
200N/A ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
200N/A cd $(SOURCE_DIR) ; \
5852N/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 ; \
5852N/A cd $(BUILD_DIR_$(BITS)) ; \
5852N/A find . -type f -name "*.class" -exec rm -f {} \; > /dev/null 2>&1 ; \
5852N/A cd $(BUILD_DIR_$(BITS)) ; \
5852N/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 \
206N/A install-swig-pl install-swig-py \
200N/A install-javahl install-javahl-lib \
200N/A install-bin install-docs
200N/A
5170N/A$(BUILD_DIR)/$(MACH64)/.installed: COMPONENT_INSTALL_TARGETS += install-mods-shared
5170N/A
5776N/ACONFIGURE_LIBDIR.32 = $(CONFIGURE_PREFIX)/lib/svn
5776N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64)
1625N/A
5776N/AAPR-CONFIG.32 = $(USRDIR)/apr/$(APR_VERSION)/bin/apr-1-config
5776N/AAPR-CONFIG.64 = $(USRDIR)/apr/$(APR_VERSION)/bin/$(MACH64)/apr-1-config
5776N/AAPU-CONFIG.32 = $(USRDIR)/apr-util/$(APR_UTIL_VERSION)/bin/apu-1-config
5776N/AAPU-CONFIG.64 = $(USRDIR)/apr-util/$(APR_UTIL_VERSION)/bin/$(MACH64)/apu-1-config
5776N/AAPXS.32 = no
5776N/AAPXS.64 = $(USRDIR)/apache2/2.4/bin/apxs
5776N/AAPR-CONFIG-RPATH.32 = $(USRDIR)/apr/$(APR_VERSION)/lib
5776N/AAPR-CONFIG-RPATH.64 = $(USRDIR)/apr/$(APR_VERSION)/lib/$(MACH64)
5776N/AAPU-CONFIG-RPATH.32 = $(USRDIR)/apr-util/$(APR_VERSION)/lib
5776N/AAPU-CONFIG-RPATH.64 = $(USRDIR)/apr-util/$(APR_VERSION)/lib/$(MACH64)
5776N/A
5852N/AEXPAT_INCLUDE = $(USRINCDIR)
5852N/AEXPAT_LIBDIR = $(USRLIB.$(BITS))
5852N/AEXPAT_LIB = -lexpat
5852N/A
5852N/AAPACHE_LIBEXECDIR=$(USRDIR)/apache2/2.4/libexec
5852N/A
5776N/ALDFLAGS += -R$(CONFIGURE_LIBDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
5776N/A -R$(APU-CONFIG-RPATH.$(BITS))
5776N/A
5852N/ALD_OPTIONS += -R$(CONFIGURE_LIBDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \
5852N/A -R$(APU-CONFIG-RPATH.$(BITS))
5852N/A
5852N/ACONFIGURE_ENV += PYTHON="$(PYTHON.$(BITS))"
5852N/ACONFIGURE_ENV += PYMODS="$(PYMODS)"
6402N/ACONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
5852N/ACONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)"
5852N/ACONFIGURE_ENV += PERL="$(PERL)"
5852N/ACONFIGURE_ENV += ac_cv_path_PERL="$(PERL)"
5852N/ACONFIGURE_ENV += PLMODS="$(PLMODS)"
5852N/ACONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
5852N/A
5776N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
5852N/ACONFIGURE_OPTIONS += --enable-shared
200N/ACONFIGURE_OPTIONS += --disable-static
5852N/ACONFIGURE_OPTIONS += --disable-libtool-lock
200N/ACONFIGURE_OPTIONS += --disable-experimental-libtool
3865N/ACONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
200N/ACONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
200N/ACONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
5776N/ACONFIGURE_OPTIONS += --with-apr=$(USRDIR)/apr/$(APR_VERSION)
5776N/ACONFIGURE_OPTIONS += --with-apr-util=$(USRDIR)/apr-util/$(APR_UTIL_VERSION)
200N/ACONFIGURE_OPTIONS += --enable-nls
200N/ACONFIGURE_OPTIONS += --disable-mod-activation
200N/ACONFIGURE_OPTIONS += --enable-javahl
200N/ACONFIGURE_OPTIONS += --with-swig
5852N/ACONFIGURE_OPTIONS += --with-expat=$(EXPAT_INCLUDE):$(EXPAT_LIBDIR):$(EXPAT_LIB)
5852N/ACONFIGURE_OPTIONS += --with-serf=$(CONFIGURE_PREFIIX)
1625N/ACONFIGURE_OPTIONS += --with-apr=$(APR-CONFIG.$(BITS))
1625N/ACONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS))
5852N/ACONFIGURE_OPTIONS += --with-apache-libexecdir=$(APACHE_LIBEXECDIR)
5852N/A
5852N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
5852N/ACOMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
5852N/ACOMPONENT_BUILD_ENV += PYTHON="$(PYTHON.$(BITS))"
5852N/ACOMPONENT_BUILD_ENV += PYMODS="$(PYMODS)"
6402N/ACOMPONENT_BUILD_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES.$(BITS))"
5852N/ACOMPONENT_BUILD_ENV += JAVA_ROOT="$(JAVA_ROOT)"
5852N/ACOMPONENT_BUILD_ENV += PERL="$(PERL)"
5852N/ACOMPONENT_BUILD_ENV += ac_cv_path_PERL="$(PERL)"
5852N/ACOMPONENT_BUILD_ENV += PLMODS="$(PLMODS)"
5852N/A
5852N/ACOMPONENT_BUILD_ENV += LD_OPTIONS="$(LD_OPTIONS)"
5852N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
5852N/A
5852N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH_32="$(LD_TEST_PATH_32)"
5852N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH_64="$(LD_TEST_PATH_64)"
5852N/A
5852N/APKG_MACROS += PERL_ARCH_22="$(PERL_ARCH_22)"
5852N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
200N/A
1625N/A# Swig overwrites the 32-bit directory with 64-bit objects.
1625N/A# So we work around that.
1625N/ACOMPONENT_POST_INSTALL_ACTION += \
1625N/A ( cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \
1625N/A $(RM) -rf vendor-packages-$(BITS) ; \
1625N/A $(MV) vendor-packages vendor-packages-$(BITS) ; \
1625N/A $(MKDIR) -p vendor-packages ; \
1625N/A $(MKDIR) -p vendor-packages/64 ; \
1625N/A if test -d vendor-packages-64 ; then \
1625N/A $(GNUCP) -rpd vendor-packages-64/libsvn vendor-packages/64/ ; \
1625N/A $(GNUCP) -rpd vendor-packages-64/svn vendor-packages/64/ ; \
1625N/A $(GNUCP) -rpd vendor-packages-32/libsvn vendor-packages/ ; \
1625N/A $(GNUCP) -rpd vendor-packages-32/svn vendor-packages/ ; \
1625N/A fi ; )
200N/A
3817N/AREQUIRED_PACKAGES += database/sqlite-3
3817N/AREQUIRED_PACKAGES += developer/versioning/subversion
5852N/AREQUIRED_PACKAGES += developer/build/scons
5852N/AREQUIRED_PACKAGES += gnome/gnome-keyring
3817N/AREQUIRED_PACKAGES += library/apr-15
3817N/AREQUIRED_PACKAGES += library/apr-util-15
3817N/AREQUIRED_PACKAGES += library/expat
5852N/AREQUIRED_PACKAGES += library/glib2
5852N/AREQUIRED_PACKAGES += library/gnome/gnome-keyring
5852N/AREQUIRED_PACKAGES += library/libserf
3817N/AREQUIRED_PACKAGES += library/zlib
5852N/AREQUIRED_PACKAGES += runtime/perl-522
3817N/AREQUIRED_PACKAGES += system/library/c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/security/gss
5053N/AREQUIRED_PACKAGES += system/library/security/libsasl
5452N/AREQUIRED_PACKAGES += system/library/security/libsasl2
5852N/A