diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-07 05:59:37 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-07 05:59:37 -0400 |
commit | cd85778597a709c5d589c9f984d039e5b96bafca (patch) | |
tree | 4a0e4cecb2ff216cc270a2fac5716a54175e7c15 /tcl/build.sh | |
parent | 041601b591742fa071f50f25ee8ef9f5b1008bd4 (diff) | |
download | spm_packages-cd85778597a709c5d589c9f984d039e5b96bafca.tar.gz |
Initial Darwin compat sweep
Diffstat (limited to 'tcl/build.sh')
-rw-r--r-- | tcl/build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tcl/build.sh b/tcl/build.sh index 429f87b..a45ed26 100644 --- a/tcl/build.sh +++ b/tcl/build.sh @@ -12,10 +12,15 @@ build_depends=( depends=( "pcre" ) +lib_type=so function prepare() { tar xf ${name}${version}-src.tar.gz cd ${name}${version} + + if [[ $(uname -s) == Darwin ]]; then + lib_type=dylib + fi } function build() { @@ -26,5 +31,5 @@ function build() { function package() { make install DESTDIR="${_pkgdir}" - chmod 755 "${_pkgdir}/${_prefix}"/lib/*.so + chmod 755 "${_pkgdir}/${_prefix}"/lib/*.${lib_type} } |