--- trunk/mage/usr/lib/mage/smage2.sh 2012/01/02 15:51:28 1600 +++ trunk/mage/usr/lib/mage/smage2.sh 2012/01/09 20:09:41 1615 @@ -237,6 +237,12 @@ mconfigure() { + local myopts + if [[ ! -z ${CTARGET} ]] + then + myopts="--target=${CTARGET}" + fi + if [ -x ./configure ] then ./configure \ @@ -249,6 +255,7 @@ --sysconfdir=/etc \ --localstatedir=/var/lib \ --libdir=/usr/$(mlibdir) \ + ${myopts} \ "$@" || die "mconfigure failed" else echo "configure is not an executable ..." @@ -344,7 +351,7 @@ rar) unrar x ${SOURCEDIR}/${PNAME}/${SRCFILE} ${DEST} || die ".rar unpack failed." ;; - zip|xpi) + zip|xpi|jar) unzip ${SOURCEDIR}/${PNAME}/${SRCFILE} -d ${DEST} || die ".zip unpack failed." ;; rpm) @@ -424,8 +431,8 @@ then if mqueryfeature "compressdoc" then - cat ${doc} | gzip -9c > ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/${doc}.gz || die "gzipping +installing ${doc}." - chmod 0644 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/${doc}.gz || die "fixing permissions of ${doc}." + cat ${doc} | gzip -9c > ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/$(basename ${doc}).gz || die "gzipping +installing ${doc}." + chmod 0644 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/$(basename ${doc}).gz || die "fixing permissions of ${doc}." else install -m 0644 ${SRCDIR}/${i} ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die "installing ${doc}." fi @@ -465,7 +472,7 @@ local stripdir="$@" [[ -z ${stripdir} ]] && stripdir="${BINDIR}" - find ${stripdir} ! -type d -name \*.la | xargs --no-run-if-empty file | grep "libtool library" | cut -f 1 -d : | xargs --no-run-if-empty rm -f -- 2> /dev/null + find ${stripdir} ! -type d -name \*.la | xargs | grep "libtool library" | cut -f 1 -d : | xargs --no-run-if-empty rm -f -- 2> /dev/null } mpurgetargets() @@ -899,13 +906,13 @@ # special handling needed for mage features # pkgbuild - msetfeature "${SAVED_FEATURE_PKGBUILD}" + FVERBOSE=off msetfeature "${SAVED_FEATURE_PKGBUILD}" # strip - msetfeature "${SAVED_FEATURE_STRIP}" + FVERBOSE=off msetfeature "${SAVED_FEATURE_STRIP}" # libtool - msetfeature "${SAVED_FEATURE_LIBTOOL}" + FVERBOSE=off msetfeature "${SAVED_FEATURE_LIBTOOL}" # compressdoc - msetfeature "${SAVED_FEATURE_COMPRESSDOC}" + FVERBOSE=off msetfeature "${SAVED_FEATURE_COMPRESSDOC}" # bindir too export BINDIR="${SAVED_BINDIR}"