diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-27 11:35:02 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-27 11:35:02 -0400 |
commit | bb038280d2b5e12916d14587fd5e82455b456698 (patch) | |
tree | d33aa2ec22b9cc4fd7cce68a152cc6078a37a0ff /git | |
parent | cd85778597a709c5d589c9f984d039e5b96bafca (diff) | |
download | spm_packages-bb038280d2b5e12916d14587fd5e82455b456698.tar.gz |
Darwin pass 2
Diffstat (limited to 'git')
-rw-r--r-- | git/build.sh | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/git/build.sh b/git/build.sh index e056352..22a4aed 100644 --- a/git/build.sh +++ b/git/build.sh @@ -8,36 +8,41 @@ sources=( build_depends=( "autoconf" "automake" - "curl" - "gettext" "libtool" - "openssl" - "pcre" - "tk" - "zlib" + "pkgconf" ) depends=( "curl" + "gettext" + "libiconv" "openssl" "pcre" + "perl" + "python" "tk" "zlib" ) - function prepare() { tar xf v${version}.tar.gz cd ${name}-${version} + + if [[ $(uname -s) == Darwin ]]; then + LDFLAGS="-L${_runtime}/lib" + fi } function build() { - export LDFLAGS="${LDFLAGS} -Wl,-rpath=${_prefix}/lib" make configure + spm_debug_shell ./configure --prefix=${_prefix} \ --libdir=${_prefix}/lib \ --with-curl \ --with-expat \ - --with-tcltk + --with-tcltk \ + --with-python=${_runtime} \ + --with-perl=${_runtime} \ + --with-zlib=${_runtime} make -j${_maxjobs} } |