summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2003-01-09 03:51:16 +0000
committerNick Hadaway <raker@gentoo.org>2003-01-09 03:51:16 +0000
commit118217c95466213b9e628d93d27fd3e1fb60da9d (patch)
tree915544e78b6d143fc7b303c8b24f92c911effe38 /x11-libs/fltk
parenthmm gcc -r8 taken out of profile (diff)
downloadgentoo-2-118217c95466213b9e628d93d27fd3e1fb60da9d.tar.gz
gentoo-2-118217c95466213b9e628d93d27fd3e1fb60da9d.tar.bz2
gentoo-2-118217c95466213b9e628d93d27fd3e1fb60da9d.zip
new ebuild which will properly enable and disable xft support based on
compatible implementations
Diffstat (limited to 'x11-libs/fltk')
-rw-r--r--x11-libs/fltk/ChangeLog9
-rw-r--r--x11-libs/fltk/files/digest-fltk-1.1.2-r11
-rw-r--r--x11-libs/fltk/fltk-1.1.2-r1.ebuild75
3 files changed, 84 insertions, 1 deletions
diff --git a/x11-libs/fltk/ChangeLog b/x11-libs/fltk/ChangeLog
index afdadca53661..163c55faef7e 100644
--- a/x11-libs/fltk/ChangeLog
+++ b/x11-libs/fltk/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-libs/fltk
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.17 2002/12/19 04:21:39 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.18 2003/01/09 03:51:16 raker Exp $
+
+*fltk-1.1.2-r1 (09 Jan 2003)
+
+ 08 Jan 2003; Nick Hadaway <raker@gentoo.org> fltk-1.1.2-r1.ebuild,
+ files/digest-fltk-1.1.2-r1 :
+ New ebuild which only enables xft if you are using the "stock"
+ xfree86 xft headers/etc.
*fltk-1.1.2 (09 Dec 2002)
diff --git a/x11-libs/fltk/files/digest-fltk-1.1.2-r1 b/x11-libs/fltk/files/digest-fltk-1.1.2-r1
new file mode 100644
index 000000000000..c400d598c94b
--- /dev/null
+++ b/x11-libs/fltk/files/digest-fltk-1.1.2-r1
@@ -0,0 +1 @@
+MD5 5d3e96f253c737332cb6d45b6d7d9384 fltk-1.1.2-source.tar.bz2 1287828
diff --git a/x11-libs/fltk/fltk-1.1.2-r1.ebuild b/x11-libs/fltk/fltk-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..4a213ac14e31
--- /dev/null
+++ b/x11-libs/fltk/fltk-1.1.2-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.2-r1.ebuild,v 1.1 2003/01/09 03:51:16 raker Exp $
+
+IUSE="opengl"
+
+S=${WORKDIR}/${P}
+
+DESCRIPTION="C++ user interface toolkit for X and OpenGL."
+HOMEPAGE="http://www.fltk.org"
+SRC_URI="ftp://ftp.easysw.com/pub/fltk/${PV}/${P}-source.tar.bz2"
+
+SLOT="1.1"
+KEYWORDS="x86 ppc sparc"
+LICENSE="FLTK | GPL-2"
+
+DEPEND="virtual/x11
+ media-libs/libpng
+ media-libs/jpeg
+ opengl? ( virtual/opengl )"
+
+inherit eutils
+
+src_unpack() {
+
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/libs.diff || die "patch failed"
+
+}
+
+src_compile() {
+
+ local myconf
+ myconf="--enable-shared --enable-static --enable-threads \
+ --enable-xdbe"
+
+ # If you still have problems and you just uninstalled
+ # xft and didn't re-install xfree to get the right headers
+ # back the xft enabled build still wont work. :) I hope to fix
+ # this eventually but for the 1.4 release...
+ if [ -d ${ROOT}var/db/pkg/x11-libs/xft* ]; then
+ myconf="${myconf} --disable-xft"
+ else
+ myconf="${myconf} --enable-xft"
+ fi
+
+ use opengl || myconf="${myconf} --disable-gl"
+
+ export CXX="g++"
+
+ econf \
+ --includedir=/usr/include/fltk-1.1 \
+ --libdir=/usr/lib/fltk-1.1 \
+ ${myconf} || die "Configuration Failed"
+
+ emake || die "Parallel Make Failed"
+
+}
+
+src_install () {
+
+ einstall \
+ includedir=${D}/usr/include/fltk-1.1 \
+ libdir=${D}/usr/lib/fltk-1.1 || die "Installation Failed"
+
+ ranlib ${D}/usr/lib/fltk-1.1/*.a
+
+ dodoc CHANGES COPYING README
+
+ echo "LDPATH=/usr/lib/fltk-1.1" > 99fltk-1.1
+
+ insinto /etc/env.d
+ doins 99fltk-1.1
+}