summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-07-09 00:59:07 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-07-09 00:59:07 +0000
commit4a1242fcb4c67a75752930b080e09fb41c371504 (patch)
tree128575ab23ba6951f89f75a8ecfdc510796f2141 /x11-libs
parentnew wxGTK and various wxwindows apps (diff)
downloadgentoo-2-4a1242fcb4c67a75752930b080e09fb41c371504.tar.gz
gentoo-2-4a1242fcb4c67a75752930b080e09fb41c371504.tar.bz2
gentoo-2-4a1242fcb4c67a75752930b080e09fb41c371504.zip
new wxGTK and various wxwindows apps
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/wxGTK/Manifest7
-rw-r--r--x11-libs/wxGTK/wxGTK-2.4.1.ebuild90
2 files changed, 95 insertions, 2 deletions
diff --git a/x11-libs/wxGTK/Manifest b/x11-libs/wxGTK/Manifest
index 7d120a422102..ccca2ea55c07 100644
--- a/x11-libs/wxGTK/Manifest
+++ b/x11-libs/wxGTK/Manifest
@@ -1,5 +1,8 @@
-MD5 af4e8ec4249b982a11c0e2986d06cac7 ChangeLog 5231
-MD5 c5768551a4285dcb691008cb909d8e91 wxGTK-2.4.1.ebuild 2505
+MD5 6a179cf78d3a99e15994bbb83bb56e56 ChangeLog 5532
+MD5 e9aa40b24030dcbe39c8a7eb909fc7a5 wxGTK-2.4.1.ebuild 2504
MD5 7b6cbaf39f7346190040182c8c0bf5c8 wxGTK-2.4.0.ebuild 2705
+MD5 4fca175f747a090fd2b7b8ce22fbc06d metadata.xml 162
MD5 16ea0622454512339b2c613af61a9aa4 files/digest-wxGTK-2.4.0 65
MD5 86ee1d94ec752953d445a824f643fef5 files/digest-wxGTK-2.4.1 65
+MD5 3b31bf6114fd932a2843725064d25caf files/wxGTK-2.4.1-wxpython1.patch 1933
+MD5 780bae884c651040c4b9833d82f88d9a files/wxGTK-2.4.1-wxpython2.patch 12054
diff --git a/x11-libs/wxGTK/wxGTK-2.4.1.ebuild b/x11-libs/wxGTK/wxGTK-2.4.1.ebuild
new file mode 100644
index 000000000000..fbbe8415dcba
--- /dev/null
+++ b/x11-libs/wxGTK/wxGTK-2.4.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.4.1.ebuild,v 1.1 2003/07/09 00:58:58 liquidx Exp $
+
+DESCRIPTION="GTK+ version of wxWindows, a cross-platform C++ GUI toolkit."
+SRC_URI="mirror://sourceforge/wxwindows/${P}.tar.bz2"
+HOMEPAGE="http://www.wxwindows.org/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="x86 ~ppc ~sparc"
+IUSE="nls odbc opengl gtk2"
+
+DEPEND="virtual/x11
+ media-libs/netpbm
+ media-libs/giflib
+ media-libs/libpng
+ media-libs/jpeg
+ media-libs/tiff
+ sys-libs/zlib
+ odbc? ( dev-db/unixODBC )
+ opengl? ( virtual/opengl )
+ gtk2? ( >=x11-libs/gtk+-2.0* dev-libs/libunicode ) : ( =x11-libs/gtk+-1.2* )"
+
+RDEPEND="nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-wxpython1.patch
+ epatch ${FILESDIR}/${P}-wxpython2.patch
+}
+
+src_compile() {
+ local myconf
+ myconf="--enable-gif --with-libtiff --with-zlib --with-libpng \
+ --enable-png --with-libjpeg"
+
+ #Note: pcx image support enabled by default if found.
+ #Also, all wxWindows gui features are enabled by default. If you
+ #want to build a smaller library you can disable features by adding
+ #the appropriate flags to myconf (see INSTALL.txt).
+
+ #The build tools include a --with-freetype option, however it doesn't
+ #seem to be implemented in the source yet.
+
+ # Note: ODBC support does not work with --enable-unicode
+ # We only use --enable-unicode (if at all) when we use
+ # gtk2.
+
+
+ if [ `use odbc` ] && [ ! `use gtk2` ]; then
+ myconf="${myconf} --with-odbc"
+ elif [ `use odbc` ] && [ `use gtk2` ]; then
+ ewarn ""
+ einfo "you cannot specify both odbc and gtk2"
+ einfo "Choosing gtk2 over odbc"
+ einfo "re-run with USE=\"-gtk2\" to enable odbc"
+ ewarn ""
+ sleep 5
+ myconf="${myconf} --without-odbc"
+ else
+ myconf="${myconf} --without-odbc"
+ fi
+
+ use opengl \
+ && myconf="${myconf} --with-opengl" \
+ || myconf="${myconf} --without-opengl"
+
+ myconf="${myconf} --with-gtk"
+
+ # here we disable unicode support even thought gtk2 supports it
+ # because too many apps just don't follow the wxWindows guidelines
+ # for unicode support.
+ #
+ # http://www.wxwindows.org/manuals/2.4.0/wx458.htm#unicode
+ #
+ # ref #20116 - liquidx@gentoo.org (07 May 2003)
+
+ #use gtk2 && myconf="${myconf} --enable-gtk2 --enable-unicode"
+ use gtk2 && myconf="${myconf} --enable-gtk2"
+
+ econf ${myconf}
+ emake || die "make failed"
+}
+
+src_install() {
+ einstall
+ dodoc *.txt
+}