From bb038280d2b5e12916d14587fd5e82455b456698 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 27 May 2020 11:35:02 -0400 Subject: Darwin pass 2 --- git/build.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'git') 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} } -- cgit