Makefile revision 200
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#
200N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
200N/A#
200N/A
200N/Ainclude ../../make-rules/shared-macros.mk
200N/A
200N/ACOMPONENT_NAME= subversion
200N/ACOMPONENT_VERSION= 1.6.16
200N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
200N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
200N/ACOMPONENT_ARCHIVE_HASH= sha1:e957da04252d4d7e0fff72fdcf72c715bfbaa393
200N/ACOMPONENT_ARCHIVE_URL= http://subversion.tigris.org/downloads/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
200N/A
200N/Ainclude ../../make-rules/prep.mk
200N/Ainclude ../../make-rules/configure.mk
200N/Ainclude ../../make-rules/ips.mk
200N/A
200N/APATCH_LEVEL = 0
200N/A
200N/A# We need to remove these environment files when
200N/A# apache2, apr and apr-util move to Userland
200N/Ainclude $(COMPONENT_DIR)/apache.build.env
200N/Ainclude $(COMPONENT_DIR)/apr.build.env
200N/Ainclude $(COMPONENT_DIR)/apr-util.build.env
200N/A
200N/APYMODS = client core delta fs ra repos wc
200N/A
200N/AARCH = $(shell arch)
200N/APERL = /usr/perl5/bin/perl
200N/APLVER = 5.8.4
200N/APLARCH = $(ARCH)-solaris-64int
200N/APLDIR = /usr/perl5/$(PLVER)
200N/APLVENDORDIR = /usr/perl5/vendor_perl/$(PLVER)
200N/APLVENDORARCHDIR = $(PLVENDORDIR)/$(PLARCH)
200N/APLMODS= Fs Core Wc Client Repos Ra Delta
200N/ASWIGPROG = /usr/bin/swig
200N/AELFEDIT = /usr/bin/elfedit
200N/AJAVA_ROOT = $(JAVA_HOME)
200N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
200N/APROTOUSRSHAREJAVADIR = $(PROTOUSRSHAREDIR)/lib/java
200N/ASVN_LDFLAGS = -R/usr/lib/svn:$(APR_USR_PREFIX)/lib:$(APR_UTIL_USR_PREFIX)/lib \
200N/A -L$(APR_USR_PREFIX)/lib \
200N/A -L$(APR_UTIL_USR_PREFIX)/lib \
200N/A -lc -lm -lsocket -lresolv -lnsl -lgen
200N/A
200N/ACFLAGS += -Xc -xnorunpath $(CC_BITS)
200N/ACFLAGS += -features=extinl,extensions
200N/ACFLAGS += -xustr=ascii_utf16_ushort -xcsi
200N/ACFLAGS += $(studio_C99_ENABLE)
200N/ACFLAGS += $(CPP_XPG6MODE)
200N/ACXXFLAGS += $(CC_BITS)
200N/ACXXFLAGS += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
200N/ACXXFLAGS += -instances=global
200N/ACXXFLAGS += -template=geninlinefuncs
200N/ACXXFLAGS += -verbose=template
200N/ACXXFLAGS += -xustr=ascii_utf16_ushort
200N/ACXXFLAGS += -norunpath
200N/ACXXFLAGS += $(PICFLAG)
200N/ACXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
200N/ACXXFLAGS += $(studio_cplusplus_C99_ENABLE)
200N/ACXXFLAGS += $(CPP_XPG5MODE)
200N/ACPPFLAGS += `pkg-config --cflags neon`
200N/ACPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
200N/ACPPFLAGS += -DNDEBUG -DSOLARIS
200N/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) ; \
200N/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 )
200N/A
200N/ACOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
200N/ACOMPONENT_INSTALL_TARGETS = install install-lib \
200N/A install-swig-pl-lib install-swig-py \
200N/A install-javahl install-javahl-lib \
200N/A install-mods-shared \
200N/A install-bin install-docs
200N/A
200N/ACONFIGURE_ENV += CC="$(CC)"
200N/ACONFIGURE_ENV += CXX="$(CCC)"
200N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
200N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
200N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
200N/ACONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
200N/ACONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E"
200N/ACONFIGURE_ENV += LDFLAGS="$(SVN_LDFLAGS) $(LDFLAGS)"
200N/ACONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
200N/ACONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
200N/ACONFIGURE_ENV += CXXLD="$(CCC) $(CXXFLAGS) $(LDFLAGS)"
200N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
200N/ACONFIGURE_ENV += SWIG_LDFLAGS="$(LDFLAGS) $(SWIG_LDFLAGS)"
200N/ACONFIGURE_ENV += NEON_LIBS="`pkg-config --libs neon`"
200N/ACONFIGURE_ENV += PYTHON="$(PYTHON)"
200N/ACONFIGURE_ENV += PYMODS="$(PYMODS)"
200N/ACONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)"
200N/ACONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)"
200N/ACONFIGURE_ENV += PERL="$(PERL)"
200N/ACONFIGURE_ENV += PLARCH="$(PLARCH)"
200N/ACONFIGURE_ENV += PLVER="$(PLVER)"
200N/ACONFIGURE_ENV += PLDIR="$(PLDIR)"
200N/ACONFIGURE_ENV += PLVENDORDIR="$(PLVENDORDIR)"
200N/ACONFIGURE_ENV += PLVENDORARCHDIR="$(PLVENDORARCHDIR)"
200N/ACONFIGURE_ENV += PLMODS="$(PLMODS)"
200N/A
200N/ALD_OPTIONS += $(SVN_LDFLAGS) $(SWIG_LDFLAGS)
200N/A
200N/A# Let's make noise just because we have to override --libdir
200N/ACONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
200N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
200N/ACONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
200N/ACONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
200N/ACONFIGURE_OPTIONS += --libdir=$(CONFIGURE_PREFIX)/lib/svn
200N/ACONFIGURE_OPTIONS += --localstatedir=/var
200N/ACONFIGURE_OPTIONS += --enable-shared
200N/ACONFIGURE_OPTIONS += --disable-static
200N/ACONFIGURE_OPTIONS += --disable-libtool-lock
200N/ACONFIGURE_OPTIONS += --disable-neon-version-check
200N/ACONFIGURE_OPTIONS += --disable-experimental-libtool
200N/ACONFIGURE_OPTIONS += --with-apxs=$(APACHE_USR_PREFIX)/bin/apxs
200N/ACONFIGURE_OPTIONS += --with-ssl
200N/ACONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
200N/ACONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
200N/ACONFIGURE_OPTIONS += --with-apr=$(APR_USR_PREFIX)
200N/ACONFIGURE_OPTIONS += --with-apr-util=$(APR_UTIL_USR_PREFIX)
200N/ACONFIGURE_OPTIONS += --enable-nls
200N/ACONFIGURE_OPTIONS += --disable-mod-activation
200N/ACONFIGURE_OPTIONS += --enable-javahl
200N/ACONFIGURE_OPTIONS += --with-swig
200N/ACONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
200N/A
200N/A# elfedit to remove the wrong RUNPATH/RPATH from the C++ library
200N/ACOMPONENT_POST_INSTALL_ACTION = \
200N/A ( cd $(PROTO_DIR)/$(CONFIGURE_INCLUDEDIR) ; \
200N/A $(MV) subversion-1 svn ; \
200N/A cd $(PROTOUSRLIBDIR)/svn ; \
200N/A $(ELFEDIT) -e 'dyn:runpath /usr/lib/svn:/usr/apr/1.3/lib:/usr/apr-util/1.3/lib' libsvnjavahl-1.so.0.0.0 ; \
200N/A $(ELFEDIT) -e 'dyn:rpath /usr/lib/svn:/usr/apr/1.3/lib:/usr/apr-util/1.3/lib' libsvnjavahl-1.so.0.0.0 )
200N/A
200N/A# Perl target
200N/Ainstall_perl:
200N/A $(PERL) -MExtUtils::Install -e \
200N/A 'install({@ARGV}, '\''0'\'', 0, '\''0'\'');' \
200N/A $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/lib $(PROTO_DIR)/$(PLVENDORDIR) \
200N/A $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/arch $(PROTO_DIR)/$(PLVENDORDIR)/$(PLARCH) \
200N/A $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/man3 $(PROTO_DIR)/$(PLDIR)/man/man3
200N/A
200N/A# common targets - we only build 32-bit subversion
200N/Abuild: $(BUILD_32)
200N/A
200N/Ainstall: $(INSTALL_32) install_perl
200N/A $(MKDIR) $(PROTOUSRSHAREJAVADIR) ; \
200N/A $(INSTALL) -m 0644 $(PROTOUSRLIBDIR)/svn/svn-javahl/svn-javahl.jar \
200N/A $(PROTOUSRSHAREJAVADIR)/
200N/A
200N/Atest: $(TEST_32)
200N/A
200N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
200N/A
200N/Ainclude ../../make-rules/depend.mk
200N/A