summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-05-27 11:35:02 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-05-27 11:35:02 -0400
commitbb038280d2b5e12916d14587fd5e82455b456698 (patch)
treed33aa2ec22b9cc4fd7cce68a152cc6078a37a0ff /git
parentcd85778597a709c5d589c9f984d039e5b96bafca (diff)
downloadspm_packages-bb038280d2b5e12916d14587fd5e82455b456698.tar.gz
Darwin pass 2
Diffstat (limited to 'git')
-rw-r--r--git/build.sh23
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}
}