diff options
author | merakor <cem@ckyln.com> | 2020-12-27 16:10:28 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-12-27 16:10:28 +0000 |
commit | 7692b4fbd0d1013b0bf79f3dfc9c2a616dec7134 (patch) | |
tree | 01c9d7bea4569332d3f08eea799dd5757a308116 /helpers | |
parent | 4ef8e3c0630a8cf8ab1a0809eaa12c56210240d6 (diff) | |
download | cpt-7692b4fbd0d1013b0bf79f3dfc9c2a616dec7134.tar.gz |
cpt-configure: add helper script for gnu-configure
FossilOrigin-Name: 9d642e3912da7d5084086255c500d9bf7cae9818942dba59f055fa2ad02df3af
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/cpt-configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/helpers/cpt-configure b/helpers/cpt-configure new file mode 100644 index 0000000..4ea5bec --- /dev/null +++ b/helpers/cpt-configure @@ -0,0 +1,21 @@ +#!/bin/sh -e +# Wrapper for calling autoconf-generated ./configure scripts +. cpt-lib + +set -- \ + "--prefix=$CPT_PKG_PREFIX" \ + "--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" + +"${configure_args:-./configure}" "$@" |