From eed7d9e90e6cb5e123a410ec8fffe456e9ec52c2 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 26 Jan 2015 18:45:10 +0100 Subject: [PATCH] scripts/System/getopt.build: added --- scripts/System/getopt.build | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 scripts/System/getopt.build diff --git a/scripts/System/getopt.build b/scripts/System/getopt.build new file mode 100755 index 0000000..e502f0e --- /dev/null +++ b/scripts/System/getopt.build @@ -0,0 +1,42 @@ +#!/bin/bash + +source "$(dirname $0)/../../lib/libem.bash" + +function em.configure() { + : +} + +function em.build() { + case ${OS} in + Linux ) + declare -x LDFLAGS="-lintl -liconv" + ;; + Darwin ) + declare -x LDFLAGS="-lintl -liconv -framework CoreFoundation" + ;; + esac + + cd "${MODULE_SRCDIR}" + make -e +} + +function em.install() { + cd "${MODULE_SRCDIR}" + declare -x DESTDIR="${PREFIX}" + declare -x prefix='' + make -e install +} + +function em.cleanup_build() { + cd "${MODULE_SRCDIR}" + make -e realclean +} + +em.add_to_family 'Tools' +em.make_all + +# Local Variables: +# mode: sh +# sh-basic-offset: 8 +# tab-width: 8 +# End: