# $Id$ PNAME="wxgtk" PVER="2.8.12" PBUILD="r2" PCATEGORIE="x11-libs" DESCRIPTION="GTK+ version of the open source, cross-platform native UI framework." HOMEPAGE="http://www.wxwidgets.org/" DEPEND=">= virtual/opengl >= x11-libs/libSM-1 >= x11-libs/libXinerama-1 >= x11-libs/libXxf86vm-1 >= sys-libs/zlib-1.2.5 >= media-libs/libpng-1.5 >= media-libs/libtiff-3.9 >= media-libs/libjpeg-8 >= dev-libs/glib2-2.28 >= x11-libs/gtk2+-2.24" SDEPEND=">= x11-proto/xproto-7 >= x11-proto/xineramaproto-1 >= x11-proto/xf86vidmodeproto-1" SRCFILE="${PNAME/gtk/GTK}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/gtk/GTK}-${PVER}" sminclude mbuild SRC_URI=( sourceforge://wxwindows/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-glib-2.22-gsocket.patch ) UP2DATE="updatecmd_sourceforge wxwindows wxGTK" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes compile issues with newer glib2 and gsocket.h # see: http://trac.wxwidgets.org/ticket/10883 mpatch ${PNAME}-${PVER}-glib-2.22-gsocket.patch || die } src_compile() { cd ${SRCDIR} export LANG='C' mconfigure \ --build=${CHOST} \ --disable-precomp-headers \ --disable-debugreport \ --with-zlib \ --with-opengl \ --with-gtk \ --enable-gtk2 \ --enable-unicode \ || die mmake || die cd contrib/src mmake || die } src_install() { cd ${SRCDIR} minstall libdir=${BINDIR}/usr/$(mlibdir) || die cd contrib/src minstall libdir=${BINDIR}/usr/$(mlibdir) || die cd ${SRCDIR} # docs minstalldocs *.txt || die }