# $Id$ PNAME="glib1" PVER="1.2.10" PBUILD="r9" PCATEGORIE="dev-libs" STATE="unstable" DESCRIPTION="GLib is a library which includes support routines for C such as lists, trees, hashes, memory allocation, and many other things." HOMEPAGE="http://www.gtk.org/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME/1/}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/1/}-${PVER}" sminclude gnuconfig multilib mtools SRC_URI=( mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc34.patch mirror://${PNAME}/${PNAME}-${PVER}-m4-underquoted.patch ) # only glib-1.2! UP2DATE="updatecmd http://ftp.gnome.org/pub/gnome/sources/${PNAME/1/}/${PVER:0:3} | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die # fixes >= gcc3.4 compile issues mpatch ${PNAME}-${PVER}-gcc34.patch || die # fixes m4 warnings mpatch ${PNAME}-${PVER}-m4-underquoted.patch || die # add support for x86_64 all-abis gnuconfig-update '${SRCDIR}-${abi}'|| die } src_compile() { mconfigure --with-threads=posix --enable-debug=yes || die mmake || die } src_install() { minstall || die all-abis mchmod 0755 /usr/'$(mlibdir)'/libgmodule-1.2.so.* || die minstalldocs AUTHORS ChangeLog COPYING NEWS README || die }