From 7692b4fbd0d1013b0bf79f3dfc9c2a616dec7134 Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 27 Dec 2020 16:10:28 +0000 Subject: cpt-configure: add helper script for gnu-configure FossilOrigin-Name: 9d642e3912da7d5084086255c500d9bf7cae9818942dba59f055fa2ad02df3af --- helpers/cpt-configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 helpers/cpt-configure (limited to 'helpers') 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}" "$@" -- cgit v1.2.3