-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.subversion
48 lines (43 loc) · 1.81 KB
/
Makefile.subversion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ifndef SVN_INSTALL_DIR
export SVN_INSTALL_DIR = $(DEVELOPER_INSTALL_DIR)/usr
endif
Install_Prefix = $(SVN_INSTALL_DIR)
Install_Man = $(SVN_INSTALL_DIR)/share/man
GnuAfterInstall = post-install install-plist
Extra_Configure_Flags = --enable-shared --disable-static \
--without-berkeley-db \
--without-apxs \
--with-lz4=internal \
--with-utf8proc=internal \
--with-apr=$(APR_TOOLCHAIN_DIR) \
--with-apr-util=$(APR_TOOLCHAIN_DIR) \
--with-serf=$(XCODE_SDKROOT)/$(SVN_INSTALL_DIR) \
--with-swig=$(shell test -e /usr/bin/swig && echo /usr || echo /usr/local) \
--with-ruby-sitedir=$(RBLIBDIR)/ruby \
--with-sasl=$(SDKROOT)/usr \
--includedir=$(Install_Prefix)/local/include \
--without-libmagic
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
Install_Target = install
Install_Flags = DESTDIR=$(DSTROOT)
# Post-install cleanup
post-install:
[ -n "$(DSTROOT)" ] || exit 1
/bin/sh $(SRCROOT)/rpath_subversion.sh
@for binary in svn svnadmin svndumpfilter svnlook svnrdump svnserve svnsync svnversion; do \
file=$(DSTROOT)$(Install_Prefix)/bin/$${binary}; \
echo $(CP) $${file} $(SYMROOT); \
$(CP) $${file} $(SYMROOT); \
echo $(STRIP) -x $${file}; \
$(STRIP) -x $${file}; \
echo $(CODESIGN) -o library $${file}; \
$(CODESIGN) -o library $${file}; \
done
@set -x && \
for library in `find $(DSTROOT) -type f -name \*.dylib`; do \
$(CP) $${library} $(SYMROOT) && \
$(STRIP) -x $${library} && \
$(CODESIGN) $${library} || exit 1; \
done
find $(DSTROOT) -name \*.la -delete
rm -rf $(DSTROOT)$(SVN_INSTALL_DIR)/share/pkgconfig