diff options
author | Rob Cakebread <pythonhead@gentoo.org> | 2004-08-07 04:02:58 +0000 |
---|---|---|
committer | Rob Cakebread <pythonhead@gentoo.org> | 2004-08-07 04:02:58 +0000 |
commit | 782fada277c613b27a371f85629e8915e30b0b3f (patch) | |
tree | 6864df67f8b491569ee4094772f4d75a35e8f473 /x11-libs/wxGTK/wxGTK-2.4.2-r2.ebuild | |
parent | Initial ebuild, by Robin Hugh Johnson <robbat2@gentoo.org>. License is for no... (diff) | |
download | gentoo-2-782fada277c613b27a371f85629e8915e30b0b3f.tar.gz gentoo-2-782fada277c613b27a371f85629e8915e30b0b3f.tar.bz2 gentoo-2-782fada277c613b27a371f85629e8915e30b0b3f.zip |
Removed obsolete versions and changed 2.4.2-r2 so apps can use new wxwidgets eclass with multiple versions (gtk,gtk2,unicode,debug) of wxGTK installed. See bug #39931
Diffstat (limited to 'x11-libs/wxGTK/wxGTK-2.4.2-r2.ebuild')
-rw-r--r-- | x11-libs/wxGTK/wxGTK-2.4.2-r2.ebuild | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/x11-libs/wxGTK/wxGTK-2.4.2-r2.ebuild b/x11-libs/wxGTK/wxGTK-2.4.2-r2.ebuild new file mode 100644 index 000000000000..f321f390aff7 --- /dev/null +++ b/x11-libs/wxGTK/wxGTK-2.4.2-r2.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.4.2-r2.ebuild,v 1.1 2004/08/07 04:02:58 pythonhead Exp $ + +inherit eutils + +DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit." +HOMEPAGE="http://www.wxwidgets.org/" +SRC_URI="mirror://sourceforge/wxwindows/${P}.tar.bz2" + +LICENSE="wxWinLL-3" +SLOT="0" +KEYWORDS="x86 ppc sparc alpha arm amd64 ia64 hppa" +IUSE="debug no_wxgtk1 gtk2 odbc opengl unicode" + +RDEPEND="virtual/x11 + sys-libs/zlib + media-libs/libpng + media-libs/jpeg + media-libs/tiff + !unicode? ( odbc? ( dev-db/unixODBC ) ) + opengl? ( virtual/opengl ) + gtk2? ( >=x11-libs/gtk+-2.0 >=dev-libs/glib-2.0 ) + !no_wxgtk1? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* )" +DEPEND="${RDEPEND} + gtk2? ( dev-util/pkgconfig )" + +# Note 1: Gettext is not runtime dependency even if nls? because wxWidgets +# has its own implementation of it +# Note 2: PCX support is enabled if the correct libraries are detected. +# There is no USE flag for this. + +src_unpack() { + unpack ${A} + # fix xml contrib makefile problems + EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PN}-2.4.1-contrib.patch + # disable contrib/src/animate + EPATCH_OPTS="-d ${S}/contrib/src" epatch ${FILESDIR}/${PN}-2.4.2-contrib_animate.patch + use amd64 && EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PN}-2.4.2-cleanup.patch +} + +pkg_setup() { + einfo "New in >=wxGTK-2.4.2-r2:" + einfo "------------------------" + einfo "You can now have gtk, gtk2 and unicode versions installed" + einfo "simultaneously. gtk is installed by default because it is" + einfo "more stable than gtk2. Use no_wxgtk1 if you don't want it." + einfo "Put gtk2 and unicode in your USE flags to get those" + einfo "additional versions." + einfo "NOTE:" + einfo "You can also get debug versions of any of those, but not debug" + einfo "and normal installed at the same time." + if use unicode; then + ! use gtk2 && die "You must put gtk2 in your USE if you need unicode support" + fi + if use no_wxgtk1 && ! use gtk2; then + die "You must have at least gtk2 or -no_wxgtk1 in your USE" + fi +} + +src_compile() { + local myconf + export LANG='C' + + myconf="${myconf} `use_with opengl`" + myconf="${myconf} --with-gtk" + myconf="${myconf} `use_enable debug`" + + if ! use no_wxgtk1 ; then + mkdir build_gtk + einfo "Building gtk version" + cd build_gtk + ../configure ${myconf} `use_with odbc`\ + --host=${CHOST} \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die "make gtk failed" + cd contrib/src + emake || die "make gtk contrib failed" + fi + cd ${S} + + if use gtk2 ; then + myconf="${myconf} --enable-gtk2" + einfo "Building gtk2 version" + mkdir build_gtk2 + cd build_gtk2 + ../configure ${myconf} \ + --host=${CHOST} \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die "make gtk2 failed" + cd contrib/src + emake || die "make gtk2 contrib failed" + + cd ${S} + + if use unicode ; then + myconf="${myconf} --enable-unicode" + einfo "Building unicode version" + mkdir build_unicode + cd build_unicode + ../configure ${myconf} \ + --host=${CHOST} \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + + emake || die "make unicode failed" + + cd contrib/src + emake || die "make unicode contrib failed" + fi + fi +} + +src_install() { + if [ -e ${S}/build_gtk ] ; then + cd ${S}/build_gtk + einstall || die "install gtk failed" + cd contrib/src + einstall || die "install gtk contrib failed" + fi + + if [ -e ${S}/build_gtk2 ] ; then + cd ${S}/build_gtk2 + einstall || die "install gtk2 failed" + cd contrib/src + einstall || die "install gtk2 contrib failed" + fi + + if [ -e ${S}/build_unicode ] ; then + cd ${S}/build_unicode + einstall || die "install unicode failed" + cd contrib/src + einstall || die "install unicode contrib failed" + fi + + cd ${S} + dodoc *.txt +} |