# 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 shared odbc" DEPEND=">=dev-util/xmingw-runtime-3.2" src_unpack() { unpack ${A} } src_compile() { cd ${WORKDIR}/wxWindows-${PV} PATH="/opt/xmingw/i386-mingw32msvc/bin:$PATH" ./configure \ --prefix=/opt/xmingw/wxWidgets \ --host=i386-mingw32 \ --with-msw \ `use_enable debug` \ `use_enable shared` \ `use_with odbc` einfo einfo "Check your CFLAGS,CXXFLAGS machine settings if you want to" einfo "generate applications that will run on other machines!" einfo emake || die "make failed" } src_install() { cd ${WORKDIR}/wxWindows-${PV} make prefix=${D}/opt/xmingw/wxWidgets install || die "install failed" }