1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/subversion/subversion.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # use the apache prefix
14 # . $base/package/*/apache/apache.conf
16 if [ $prefix_auto = 1 ]; then
21 # APR is mandatory, so no additional test needed.
24 var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
26 var_append extraconfopt " " "--with-apr-util=$root/$( pkgprefix apr-util )"
28 # all this is to build the apache server-side module and if so, no modification
29 # to httpd.conf are done ...
31 if pkginstalled apache; then
32 var_append extraconfopt " " "--with-apxs=$root/$( pkgprefix bindir apache )/apxs"
33 var_append extraconfopt " " "--disable-mod-activation"
36 if pkginstalled bdb; then
37 var_append extraconfopt ' ' '--with-berkeley-db'
39 var_append extraconfopt ' ' '--without-berkeley-db'
42 # build and install perl bindings
48 # build and install python bindings
50 # PYTHON_SITE=`python -c "import os,sys; print os.path.join(sys.prefix, 'lib','python'+sys.version[:3],'site-packages')"`
52 make install-swig-py #\
53 # swig_pydir=$PYTHON_SITE/svn/libsvn \
54 # swig_pydir_extra=$PYTHON_SITE/svn
57 # build and install ruby bindings
63 hook_add postmake 4 "cp -vrf tools $root$docdir"
65 # we need svn-config for anjuta
66 #hook_add premake 3 "sed -i 's/@SVN_DB_[^@]*@//g' svn-config"
67 #hook_add postmake 5 "cp -vf svn-config $bindir"
69 # if swig is present build and install the perl and python bindings
70 # TODO: fix for cross build
71 if pkginstalled swig && atstage "native"; then
72 pkginstalled perl && hook_add postmake 5 "svn_inst_pl"
73 pkginstalled python && hook_add postmake 5 "svn_inst_py"
74 pkginstalled ruby && hook_add postmake 5 "svn_inst_rb"
76 var_append confopt ' ' '--without-swig'
79 pkginstalled lz4 || var_append confopt ' ' '--with-lz4=internal'
81 # use system wide serf
82 if pkginstalled serf; then
84 var_append extraconfopt " " "--with-serf=$root/$( pkgprefix serf )"
87 var_append extraconfopt ' ' '--enable-plaintext-password-storage'
88 pkginstalled gnome-keyring || var_append extraconfopt ' ' '--without-gnome-keyring'
90 atstage cross && var_insert GCC_WRAPPER_INSERT " " "-L$root$libdir"
91 [[ $libdir != *lib ]] && hook_add premake 3 "sed -i 's/usr\/lib /usr\/${libdir##*/} /' Makefile"
93 export CPPFLAGS; var_append CPPFLAGS ' ' '-P' # failed to recognize APR_INT64_T_FMT on this platform
94 var_append makeinstopt ' ' '-j1'