diff options
Diffstat (limited to 'helpers/cpt-configure')
-rw-r--r-- | helpers/cpt-configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/helpers/cpt-configure b/helpers/cpt-configure new file mode 100644 index 0000000..6978924 --- /dev/null +++ b/helpers/cpt-configure @@ -0,0 +1,22 @@ +#!/bin/sh -e +# Wrapper for calling autoconf-generated ./configure scripts +. cpt-lib + +set -- \ + "--prefix=$CPT_PKG_PREFIX" \ + "--libdir=$CPT_PKG_LIBDIR" \ + "--sysconfdir=$CPT_PKG_ETCDIR" \ + "--bindir=$CPT_PKG_BINDIR" \ + "--sbindir=$CPT_PKG_SBINDIR" \ + "--mandir=$CPT_PKG_MANDIR" \ + "--infodir=$CPT_PKG_INFODIR" \ + "--localstatedir=$CPT_PKG_LOCALSTATEDIR" \ + "$@" + + +[ "$CPT_CROSS_TRIPLET" ] && + set -- "$@" \ + "--host=$CPT_CROSS_TRIPLET" \ + "--with-sysroot=$CPT_ROOT$CPT_PKG_PREFIX" + +"${configure_file:-./configure}" "$@" |