#!/bin/bash ### glib12 ### cd ${SRC} LOG=glib12-blfs.log SELF=`basename ${0}` set_buildenv set_libdirname setup_multiarch if [ ! "${libdirname}" = "lib" ]; then extra_conf="--libdir=/usr/${libdirname}" fi unpack_tarball glib-${GLIB12_VER} cd ${PKGDIR} apply_patch glib-1.2.10-gcc34-1 apply_patch glib-1.2.10-update_config_foo-1 max_log_init glib12 ${GLIB12_VER} "blfs (shared)" ${CONFLOGS} ${LOG} CC="${CC-gcc} ${ARCH_CFLAGS}" \ CFLAGS="${TGT_CFLAGS}" \ ./configure --prefix=/usr --mandir=/usr/share/man \ --infodir=/usr/share/info ${extra_conf} \ >> ${LOGFILE} 2>&1 && echo " o Configure OK" && min_log_init ${BUILDLOGS} && make \ >> ${LOGFILE} 2>&1 && echo " o Build OK" && min_log_init ${TESTLOGS} && make check\ >> ${LOGFILE} 2>&1 && echo " o Test OK" && min_log_init ${INSTLOGS} && make install \ >> ${LOGFILE} 2>&1 && echo " o ALL OK" || barf if [ "Y" = "${MULTIARCH}" ]; then use_wrapper /usr/bin/glib-config fi