237 |
|
|
238 |
mconfigure() |
mconfigure() |
239 |
{ |
{ |
240 |
|
local myopts |
241 |
|
if [[ ! -z ${CTARGET} ]] |
242 |
|
then |
243 |
|
myopts="--target=${CTARGET}" |
244 |
|
fi |
245 |
|
|
246 |
if [ -x ./configure ] |
if [ -x ./configure ] |
247 |
then |
then |
248 |
./configure \ |
./configure \ |
255 |
--sysconfdir=/etc \ |
--sysconfdir=/etc \ |
256 |
--localstatedir=/var/lib \ |
--localstatedir=/var/lib \ |
257 |
--libdir=/usr/$(mlibdir) \ |
--libdir=/usr/$(mlibdir) \ |
258 |
|
${myopts} \ |
259 |
"$@" || die "mconfigure failed" |
"$@" || die "mconfigure failed" |
260 |
else |
else |
261 |
echo "configure is not an executable ..." |
echo "configure is not an executable ..." |
351 |
rar) |
rar) |
352 |
unrar x ${SOURCEDIR}/${PNAME}/${SRCFILE} ${DEST} || die ".rar unpack failed." |
unrar x ${SOURCEDIR}/${PNAME}/${SRCFILE} ${DEST} || die ".rar unpack failed." |
353 |
;; |
;; |
354 |
zip|xpi) |
zip|xpi|jar) |
355 |
unzip ${SOURCEDIR}/${PNAME}/${SRCFILE} -d ${DEST} || die ".zip unpack failed." |
unzip ${SOURCEDIR}/${PNAME}/${SRCFILE} -d ${DEST} || die ".zip unpack failed." |
356 |
;; |
;; |
357 |
rpm) |
rpm) |
472 |
local stripdir="$@" |
local stripdir="$@" |
473 |
|
|
474 |
[[ -z ${stripdir} ]] && stripdir="${BINDIR}" |
[[ -z ${stripdir} ]] && stripdir="${BINDIR}" |
475 |
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 |
476 |
} |
} |
477 |
|
|
478 |
mpurgetargets() |
mpurgetargets() |
906 |
|
|
907 |
# special handling needed for mage features |
# special handling needed for mage features |
908 |
# pkgbuild |
# pkgbuild |
909 |
msetfeature "${SAVED_FEATURE_PKGBUILD}" |
FVERBOSE=off msetfeature "${SAVED_FEATURE_PKGBUILD}" |
910 |
# strip |
# strip |
911 |
msetfeature "${SAVED_FEATURE_STRIP}" |
FVERBOSE=off msetfeature "${SAVED_FEATURE_STRIP}" |
912 |
# libtool |
# libtool |
913 |
msetfeature "${SAVED_FEATURE_LIBTOOL}" |
FVERBOSE=off msetfeature "${SAVED_FEATURE_LIBTOOL}" |
914 |
# compressdoc |
# compressdoc |
915 |
msetfeature "${SAVED_FEATURE_COMPRESSDOC}" |
FVERBOSE=off msetfeature "${SAVED_FEATURE_COMPRESSDOC}" |
916 |
|
|
917 |
# bindir too |
# bindir too |
918 |
export BINDIR="${SAVED_BINDIR}" |
export BINDIR="${SAVED_BINDIR}" |