3 # vim: set ts=4 sw=4 et:
6 # $1 - pkgname to configure [REQUIRED]
7 # $2 - cross target [OPTIONAL]
9 if [ $# -lt 1 -o $# -gt 2 ]; then
10 echo "${0##*/}: invalid number of arguments: pkgname [cross-target]"
17 for f
in $XBPS_SHUTILSDIR/*.sh
; do
21 setup_pkg
"$PKGNAME" $XBPS_CROSS_BUILD
23 XBPS_CONFIGURE_DONE
="${XBPS_STATEDIR}/${sourcepkg}_${XBPS_CROSS_BUILD}_configure_done"
25 if [ -f $XBPS_CONFIGURE_DONE -a -z "$XBPS_BUILD_FORCEMODE" ] ||
26 [ -f $XBPS_CONFIGURE_DONE -a -n "$XBPS_BUILD_FORCEMODE" -a $XBPS_TARGET != "configure" ]; then
30 for f
in $XBPS_COMMONDIR/environment
/configure
/*.sh
; do
34 run_step configure optional
36 touch -f $XBPS_CONFIGURE_DONE