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 ..." |
431 |
then |
then |
432 |
if mqueryfeature "compressdoc" |
if mqueryfeature "compressdoc" |
433 |
then |
then |
434 |
cat ${doc} | gzip -9c > ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/${doc}.gz || die "gzipping +installing ${doc}." |
cat ${doc} | gzip -9c > ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/$(basename ${doc}).gz || die "gzipping +installing ${doc}." |
435 |
chmod 0644 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/${doc}.gz || die "fixing permissions of ${doc}." |
chmod 0644 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/$(basename ${doc}).gz || die "fixing permissions of ${doc}." |
436 |
else |
else |
437 |
install -m 0644 ${SRCDIR}/${i} ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die "installing ${doc}." |
install -m 0644 ${SRCDIR}/${i} ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die "installing ${doc}." |
438 |
fi |
fi |
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}" |