Mike Sullivan
2012-04-17 7999b2369aa32f39455eeeea6fd5bcec4167618b
commit | author | age
0aeacd 1 #
ST 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
7999b2 23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
0aeacd 24 #
ST 25
26 include ../../make-rules/shared-macros.mk
27
7999b2 28 PATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
3cec7d 29
0aeacd 30 COMPONENT_NAME=        subversion
ST 31 COMPONENT_VERSION=    1.6.16
60e6e0 32 COMPONENT_PROJECT_URL=    http://subversion.apache.org/
0aeacd 33 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ST 34 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
35 COMPONENT_ARCHIVE_HASH=    sha1:e957da04252d4d7e0fff72fdcf72c715bfbaa393
3cec7d 36 COMPONENT_ARCHIVE_URL=    http://subversion.tigris.org/downloads/$(COMPONENT_ARCHIVE)
0aeacd 37
ST 38 include ../../make-rules/prep.mk
39 include ../../make-rules/configure.mk
40 include ../../make-rules/ips.mk
41
42 PATCH_LEVEL = 0
43
44 PYMODS = client core delta fs ra repos wc
45
46 PLMODS= Fs Core Wc Client Repos Ra Delta
47
3cec7d 48 JAVA_ROOT = $(JAVA_HOME)
NJ 49
50 # because we can't seem to get -norunpath to the java bindings build any
51 # other way.
52 CXX += $(studio_NORUNPATH)
53
54 CFLAGS += -features=extensions
0aeacd 55 CFLAGS += -xustr=ascii_utf16_ushort -xcsi
3cec7d 56 CXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
0aeacd 57 CXXFLAGS += -template=geninlinefuncs
ST 58 CXXFLAGS += -verbose=template
59 CXXFLAGS += -xustr=ascii_utf16_ushort
3cec7d 60 CXXFLAGS += $(CC_PIC)
0aeacd 61 CXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
3cec7d 62 CFLAGS += `pkg-config --cflags neon`
NJ 63 CFLAGS += $(CPP_LARGEFILES)
0aeacd 64
ST 65 # Let's write some post-configure hacks
66 COMPONENT_POST_CONFIGURE_ACTION = \
67     ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
68     cd $(SOURCE_DIR) ; \
69     $(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 )
70
71 COMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
72 COMPONENT_INSTALL_TARGETS = install install-lib \
3cec7d 73                 install-swig-pl install-swig-py \
0aeacd 74                 install-javahl install-javahl-lib \
ST 75                 install-mods-shared \
76                 install-bin install-docs
77
78 CONFIGURE_ENV += CC="$(CC)"
3cec7d 79 CONFIGURE_ENV += CXX="$(CXX)"
0aeacd 80 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
ST 81 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
3cec7d 82 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
0aeacd 83 CONFIGURE_ENV += PYTHON="$(PYTHON)"
ST 84 CONFIGURE_ENV += PYMODS="$(PYMODS)"
85 CONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)"
86 CONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)"
87 CONFIGURE_ENV += PERL="$(PERL)"
88 CONFIGURE_ENV += PLMODS="$(PLMODS)"
89
90 # Let's make noise just because we have to override --libdir
91 CONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
92 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
93 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
94 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
95 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_PREFIX)/lib/svn
96 CONFIGURE_OPTIONS += --localstatedir=/var
97 CONFIGURE_OPTIONS += --enable-shared 
98 CONFIGURE_OPTIONS += --disable-static
99 CONFIGURE_OPTIONS += --disable-libtool-lock 
100 CONFIGURE_OPTIONS += --disable-neon-version-check
101 CONFIGURE_OPTIONS += --disable-experimental-libtool
3cec7d 102 CONFIGURE_OPTIONS += --with-apxs=/usr/apache2/2.2/bin/apxs
0aeacd 103 CONFIGURE_OPTIONS += --with-ssl 
ST 104 CONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
105 CONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
3cec7d 106 CONFIGURE_OPTIONS += --with-apr=/usr/apr/1.3
NJ 107 CONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/1.3
0aeacd 108 CONFIGURE_OPTIONS += --enable-nls
ST 109 CONFIGURE_OPTIONS += --disable-mod-activation
110 CONFIGURE_OPTIONS += --enable-javahl
111 CONFIGURE_OPTIONS += --with-swig
112 CONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
113
114 # common targets - we only build 32-bit subversion
115 build:        $(BUILD_32)
116
3cec7d 117 install:    $(INSTALL_32)
0aeacd 118
ST 119 test:        $(TEST_32)
120
121 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
122
123 include ../../make-rules/depend.mk
124