# 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 >=dev-util/xmingw-w32api" src_unpack() { unpack ${A} } src_compile() { # we are cross-compiling so -march flag could be wrong einfo einfo "Check your CFLAGS and CXXFLAGS settings if you want to" einfo "generate applications that will run on other machines!" einfo sleep 5 cd ${WORKDIR}/wxWindows-${PV} # changing C and C++ compiler CC="/opt/xmingw/bin/i386-mingw32msvc-gcc" CXX="/opt/xmingw/bin/i386-mingw32msvc-g++" # changing ranlib and other tools PATH="/opt/xmingw/bin/i386-mingw32msvc/bin:$PATH" # configuring wxWidgets ./configure \ --prefix=/opt/xmingw/wxWidgets \ --host=mingw32 \ --with-msw \ `use_enable debug` \ `use_enable shared` \ `use_with odbc` # compiling wxWidgets emake || die "make failed" } src_install() { cd ${WORKDIR}/wxWindows-${PV} make prefix=${D}/opt/xmingw/wxWidgets install || die "install failed" }