# Copyright (c) 2004 Adrian Smarzewski # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="Win32 version of wxWidgets (for xmingw cross-compiler)" SRC_URI="mirror://sourceforge/wxwindows/wxAll-${PV}.tar.gz" HOMEPAGE="http://www.wxwidgets.org/" LICENSE="wxWinLL-3" SLOT="0" KEYWORDS="x86" IUSE="debug debug_gdb shared threads monolithic mslu unicode opengl odbc" DEPEND=">=dev-util/xmingw-runtime-3.2 >=dev-util/xmingw-w32api" src_unpack() { unpack ${A} } src_compile() { PATH="/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin:$PATH" CC="i386-mingw32msvc-gcc" CXX="i386-mingw32msvc-g++" cd ${WORKDIR}/wxWindows-${PV} ./configure \ --prefix=/opt/xmingw/wxWidgets \ --host=i386-mingw32msvc \ --with-msw \ `use_enable debug` \ `use_enable debug_gdb` \ `use_enable shared` \ `use_enable threads` \ `use_enable monolithic` \ `use_enable mslu` \ `use_enable unicode` \ `use_with opengl` \ `use_with odbc` emake || die "make failed" } src_install() { cd ${WORKDIR}/wxWindows-${PV} make prefix=${D}/opt/xmingw/wxWidgets install || die "install failed" }