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 |
# |
f6a4a4
|
23 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
0aeacd
|
24 |
# |
ST |
25 |
|
6956b5
|
26 |
include ../../../make-rules/shared-macros.mk |
0aeacd
|
27 |
|
6c82c3
|
28 |
PATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin |
3cec7d
|
29 |
|
0aeacd
|
30 |
COMPONENT_NAME= subversion |
6c82c3
|
31 |
COMPONENT_VERSION= 1.9.7 |
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 |
35e110
|
35 |
COMPONENT_ARCHIVE_HASH= \ |
6c82c3
|
36 |
sha256:c72a209c883e20245f14c4e644803f50ae83ae24652e385ff5e82300a0d06c3c |
AP |
37 |
COMPONENT_ARCHIVE_URL= http://apache.org/dist/subversion/$(COMPONENT_ARCHIVE) |
3b89c9
|
38 |
COMPONENT_BUGDB= utility/svn |
0aeacd
|
39 |
|
6c82c3
|
40 |
include $(WS_MAKE_RULES)/prep.mk |
AP |
41 |
include $(WS_MAKE_RULES)/configure.mk |
|
42 |
include $(WS_MAKE_RULES)/ips.mk |
0aeacd
|
43 |
|
ST |
44 |
PYMODS = client core delta fs ra repos wc |
|
45 |
PLMODS= Fs Core Wc Client Repos Ra Delta |
b66ecd
|
46 |
JAVA_ROOT = $(JAVA_HOME) |
767725
|
47 |
#PERL_VERSION.32 = 5.12 |
AP |
48 |
#PERL_VERSION.64 = 5.16 |
|
49 |
#PERL_VERSION = $(PERL_VERSION.$(BITS)) |
|
50 |
#PERL = $(PERL.$(PERL_VERSION)) |
f6a4a4
|
51 |
GNUCP = /usr/gnu/bin/cp |
3cec7d
|
52 |
|
NJ |
53 |
# because we can't seem to get -norunpath to the java bindings build any |
|
54 |
# other way. |
767725
|
55 |
#CXX += $(studio_NORUNPATH) |
AP |
56 |
#CFLAGS += -features=extensions |
|
57 |
#CFLAGS += -xustr=ascii_utf16_ushort -xcsi |
|
58 |
#CXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic |
|
59 |
#CXXFLAGS += -template=geninlinefuncs |
|
60 |
#CXXFLAGS += -verbose=template |
|
61 |
#CXXFLAGS += -xustr=ascii_utf16_ushort |
3cec7d
|
62 |
CXXFLAGS += $(CC_PIC) |
767725
|
63 |
#CXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS |
f6a4a4
|
64 |
CXXFLAGS += $(CPP_LARGEFILES) |
6c82c3
|
65 |
CFLAGS += -D__EXTENSIONS__ |
3cec7d
|
66 |
CFLAGS += `pkg-config --cflags neon` |
NJ |
67 |
CFLAGS += $(CPP_LARGEFILES) |
f6a4a4
|
68 |
|
767725
|
69 |
#PERL_VERSION_12 = 5.12 |
AP |
70 |
#PERL_VERSION_16 = 5.16 |
|
71 |
#PERL_ARCH_12_i386 = i86pc-solaris-64int |
|
72 |
#PERL_ARCH_16_i386 = i86pc-solaris-64 |
|
73 |
#PERL_ARCH_12_sparc = sun4-solaris-64int |
|
74 |
#PERL_ARCH_16_sparc = sun4-solaris-64 |
|
75 |
#PERL_ARCH_12 = $(PERL_ARCH_12_$(MACH)) |
|
76 |
#PERL_ARCH_16 = $(PERL_ARCH_16_$(MACH)) |
0aeacd
|
77 |
|
ST |
78 |
# Let's write some post-configure hacks |
|
79 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
|
80 |
( $(CLONEY) $(SOURCE_DIR) $(@D) ; \ |
|
81 |
cd $(SOURCE_DIR) ; \ |
217c59
|
82 |
$(PYTHON) ./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 ) |
0aeacd
|
83 |
|
368536
|
84 |
COMPONENT_BUILD_TARGETS = all swig-py javahl |
767725
|
85 |
COMPONENT_INSTALL_TARGETS.32 = install install-lib \ |
3cec7d
|
86 |
install-swig-pl install-swig-py \ |
0aeacd
|
87 |
install-javahl install-javahl-lib \ |
ST |
88 |
install-mods-shared \ |
|
89 |
install-bin install-docs |
767725
|
90 |
COMPONENT_INSTALL_TARGETS.64 = install install-lib \ |
AP |
91 |
install-swig-py \ |
|
92 |
install-javahl install-javahl-lib \ |
|
93 |
install-mods-shared \ |
|
94 |
install-bin install-docs |
|
95 |
|
|
96 |
|
|
97 |
COMPONENT_BUILD_TARGETS = $(COMPONENT_BUILD_TARGETS.$(BITS)) |
|
98 |
COMPONENT_INSTALL_TARGETS = $(COMPONENT_INSTALL_TARGETS.$(BITS)) |
0aeacd
|
99 |
|
217c59
|
100 |
CONFIGURE_ENV += PYTHON="$(PYTHON)" |
0aeacd
|
101 |
CONFIGURE_ENV += PYMODS="$(PYMODS)" |
217c59
|
102 |
CONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)" |
0aeacd
|
103 |
CONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)" |
ST |
104 |
CONFIGURE_ENV += PERL="$(PERL)" |
|
105 |
CONFIGURE_ENV += PLMODS="$(PLMODS)" |
f6a4a4
|
106 |
CONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)" |
ST |
107 |
|
|
108 |
LIBSVNDIR.32 = $(CONFIGURE_PREFIX)/lib/svn |
|
109 |
LIBSVNDIR.64 = $(CONFIGURE_PREFIX)/lib/svn/$(MACH64) |
|
110 |
|
767725
|
111 |
APR-CONFIG.32 = /usr/apr/bin/apr-1-config |
AP |
112 |
APR-CONFIG.64 = /usr/apr/bin/$(MACH64)/apr-1-config |
|
113 |
APU-CONFIG.32 = /usr/apr-util/bin/apu-1-config |
|
114 |
APU-CONFIG.64 = /usr/apr-util/bin/$(MACH64)/apu-1-config |
6c82c3
|
115 |
APXS.32 = /usr/apache2/2.4/bin/apxs |
AP |
116 |
APXS.64 = /usr/apache2/2.4/bin/$(MACH64)/apxs |
|
117 |
APR-CONFIG-RPATH.32 = /usr/apr/lib |
|
118 |
APR-CONFIG-RPATH.64 = /usr/apr/lib/$(MACH64) |
|
119 |
APU-CONFIG-RPATH.32 = /usr/apr-util/lib |
|
120 |
APU-CONFIG-RPATH.64 = /usr/apr-util/lib/$(MACH64) |
2c60e7
|
121 |
APACHE_LIBEXECDIR.32 = `$(APXS.32) -q libexecdir` |
AP |
122 |
APACHE_LIBEXECDIR.64 = `$(APXS.64) -q libexecdir` |
|
123 |
|
|
124 |
LDFLAGS += -R$(LIBSVNDIR.$(BITS)) -R$(APR-CONFIG-RPATH.$(BITS)) \ |
|
125 |
-R$(APU-CONFIG-RPATH.$(BITS)) |
|
126 |
|
|
127 |
CONFIGURE_ENV += RUBY="$(RUBY.1.9)" |
0aeacd
|
128 |
|
ST |
129 |
# Let's make noise just because we have to override --libdir |
|
130 |
CONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX) |
|
131 |
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR) |
|
132 |
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS)) |
|
133 |
CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS)) |
f6a4a4
|
134 |
CONFIGURE_OPTIONS += --libdir=$(LIBSVNDIR.$(BITS)) |
0aeacd
|
135 |
CONFIGURE_OPTIONS += --localstatedir=/var |
ST |
136 |
CONFIGURE_OPTIONS += --enable-shared |
767725
|
137 |
#CONFIGURE_OPTIONS += --disable-static |
0aeacd
|
138 |
CONFIGURE_OPTIONS += --disable-libtool-lock |
ST |
139 |
CONFIGURE_OPTIONS += --disable-experimental-libtool |
2c60e7
|
140 |
CONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS)) |
0aeacd
|
141 |
CONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX) |
ST |
142 |
CONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT) |
767725
|
143 |
CONFIGURE_OPTIONS += --with-apr=/usr/apr |
AP |
144 |
CONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util |
0aeacd
|
145 |
CONFIGURE_OPTIONS += --enable-nls |
ST |
146 |
CONFIGURE_OPTIONS += --disable-mod-activation |
|
147 |
CONFIGURE_OPTIONS += --enable-javahl |
|
148 |
CONFIGURE_OPTIONS += --with-swig |
f6a4a4
|
149 |
CONFIGURE_OPTIONS += --with-apr=$(APR-CONFIG.$(BITS)) |
ST |
150 |
CONFIGURE_OPTIONS += --with-apr-util=$(APU-CONFIG.$(BITS)) |
|
151 |
CONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS)) |
6c82c3
|
152 |
CONFIGURE_OPTIONS += --with-apache-libexecdir=$(APACHE_LIBEXECDIR.$(BITS)) |
AP |
153 |
# libgnome-keyring was obsoleted upstream, disable support for storing svn |
|
154 |
# passwords in gnome-keyring until svn is updated to use libsecret instead |
|
155 |
CONFIGURE_OPTIONS += --without-gnome-keyring |
0aeacd
|
156 |
|
368536
|
157 |
COMPONENT_POST_BUILD_ACTION.32 += \ |
AP |
158 |
( cd $(BUILD_DIR_$(BITS)) && \ |
|
159 |
$(GMAKE) -j1 swig-pl ) |
|
160 |
COMPONENT_POST_BUILD_ACTION = $(COMPONENT_POST_BUILD_ACTION.$(BITS)) |
|
161 |
|
f6a4a4
|
162 |
# Swig overwrites the 32-bit directory with 64-bit objects. |
ST |
163 |
# So we work around that. |
|
164 |
COMPONENT_POST_INSTALL_ACTION += \ |
|
165 |
( cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \ |
|
166 |
$(RM) -rf vendor-packages-$(BITS) ; \ |
|
167 |
$(MV) vendor-packages vendor-packages-$(BITS) ; \ |
|
168 |
$(MKDIR) -p vendor-packages ; \ |
|
169 |
$(MKDIR) -p vendor-packages/64 ; \ |
|
170 |
if test -d vendor-packages-64 ; then \ |
|
171 |
$(GNUCP) -rpd vendor-packages-64/libsvn vendor-packages/64/ ; \ |
|
172 |
$(GNUCP) -rpd vendor-packages-64/svn vendor-packages/64/ ; \ |
|
173 |
$(GNUCP) -rpd vendor-packages-32/libsvn vendor-packages/ ; \ |
|
174 |
$(GNUCP) -rpd vendor-packages-32/svn vendor-packages/ ; \ |
|
175 |
fi ; ) |
0aeacd
|
176 |
|
767725
|
177 |
#ASLR_MODE=$(ASLR_ENABLE) |
0aeacd
|
178 |
|
f6a4a4
|
179 |
build: $(BUILD_32_and_64) |
ST |
180 |
|
|
181 |
install: $(INSTALL_32_and_64) |
|
182 |
|
|
183 |
test: $(TEST_32_and_64) |
0aeacd
|
184 |
|
eeed31
|
185 |
# Build dependencies |
AL |
186 |
REQUIRED_PACKAGES += runtime/perl-522 |
|
187 |
REQUIRED_PACKAGES += runtime/python-27 |
|
188 |
|
|
189 |
# Auto-generated dependencies |
217c59
|
190 |
REQUIRED_PACKAGES += database/sqlite-3 |
eeed31
|
191 |
REQUIRED_PACKAGES += developer/versioning/subversion |
217c59
|
192 |
REQUIRED_PACKAGES += library/apr |
AP |
193 |
REQUIRED_PACKAGES += library/apr-util |
|
194 |
REQUIRED_PACKAGES += library/expat |
6c82c3
|
195 |
REQUIRED_PACKAGES += library/libserf |
eeed31
|
196 |
REQUIRED_PACKAGES += library/magic |
217c59
|
197 |
REQUIRED_PACKAGES += library/zlib |
AP |
198 |
REQUIRED_PACKAGES += system/library |
eeed31
|
199 |
REQUIRED_PACKAGES += system/library/g++-6-runtime |
969846
|
200 |
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) |