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 /libiconv | |
parent | cd85778597a709c5d589c9f984d039e5b96bafca (diff) | |
download | spm_packages-bb038280d2b5e12916d14587fd5e82455b456698.tar.gz |
Darwin pass 2
Diffstat (limited to 'libiconv')
-rw-r--r-- | libiconv/build.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libiconv/build.sh b/libiconv/build.sh new file mode 100644 index 0000000..b1ca840 --- /dev/null +++ b/libiconv/build.sh @@ -0,0 +1,31 @@ +#!/bin/bash +name=libiconv +version=1.16 +revision=0 +sources=( + "http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.gz" +) +build_depends=( + "gettext" + "libtool" +) +depends=() + +function prepare() { + tar xf ${name}-${version}.tar.gz + cd ${name}-${version} + + if [[ $(uname -s) == Darwin ]]; then + LDFLAGS="-L${_runtime}" + fi +} + +function build() { + ./configure --prefix=${_prefix} \ + --enable-shared + make -j${_maxjobs} +} + +function package() { + make install DESTDIR="${_pkgdir}" +} |