# 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() { export PATH="/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin:$PATH" export CC="i386-mingw32msvc-gcc" export CXX="i386-mingw32msvc-g++" unset CFLAGS unset CPPFLAGS unset CXXFLAGS unset LDFLAGS export CFLAGS="-I/opt/xmingw/i386-mingw32msvc/include" export CXXFLAGS="-I/opt/xmingw/i386-mingw32msvc/include" cd ${WORKDIR}/wxWindows-${PV} ./configure \ --prefix=/opt/xmingw/wxWidgets \ --host=i386-mingw32msvc \ --target=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" }