summaryrefslogtreecommitdiff
path: root/libiconv/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libiconv/build.sh')
-rw-r--r--libiconv/build.sh31
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}"
+}