summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2007-05-16 09:47:42 +0000
committerSamuli Suominen <drac@gentoo.org>2007-05-16 09:47:42 +0000
commit4d31540afb70aa57d48b0a461f9f95bc7c7b0118 (patch)
treeba93ebadb108f5fbcb78bdb2c40e7d3eb588dd03 /x11-libs/fltk
parent* bump (diff)
downloadgentoo-2-4d31540afb70aa57d48b0a461f9f95bc7c7b0118.tar.gz
gentoo-2-4d31540afb70aa57d48b0a461f9f95bc7c7b0118.tar.bz2
gentoo-2-4d31540afb70aa57d48b0a461f9f95bc7c7b0118.zip
Install FLTKConfig.cmake and FLTKUse.cmake for bug 175006.
(Portage version: 2.1.2.7)
Diffstat (limited to 'x11-libs/fltk')
-rw-r--r--x11-libs/fltk/ChangeLog8
-rw-r--r--x11-libs/fltk/files/FLTKConfig.cmake37
-rw-r--r--x11-libs/fltk/files/digest-fltk-1.1.7-r13
-rw-r--r--x11-libs/fltk/fltk-1.1.7-r1.ebuild105
4 files changed, 152 insertions, 1 deletions
diff --git a/x11-libs/fltk/ChangeLog b/x11-libs/fltk/ChangeLog
index bd01388f93e6..8ba25f1ff4aa 100644
--- a/x11-libs/fltk/ChangeLog
+++ b/x11-libs/fltk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for x11-libs/fltk
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.78 2007/04/09 23:33:34 omp Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/ChangeLog,v 1.79 2007/05/16 09:47:42 drac Exp $
+
+*fltk-1.1.7-r1 (16 May 2007)
+
+ 16 May 2007; Samuli Suominen <drac@gentoo.org> +files/FLTKConfig.cmake,
+ +fltk-1.1.7-r1.ebuild:
+ Install FLTKConfig.cmake and FLTKUse.cmake for bug 175006.
09 Apr 2007; David Shakaryan <omp@gentoo.org> fltk-1.1.7.ebuild:
Use doenvd. (bug #173884)
diff --git a/x11-libs/fltk/files/FLTKConfig.cmake b/x11-libs/fltk/files/FLTKConfig.cmake
new file mode 100644
index 000000000000..09427aac2aa5
--- /dev/null
+++ b/x11-libs/fltk/files/FLTKConfig.cmake
@@ -0,0 +1,37 @@
+#-----------------------------------------------------------------------------
+#
+# FLTKConfig.cmake - FLTK CMake configuration file for external projects.
+#
+# This file is configured by FLTK and used by the UseFLTK.cmake module
+# to load FLTK's settings for an external project.
+
+# The FLTK source tree.
+# SET(FLTK_SOURCE_DIR "@FLTK_SOURCE_DIR@")
+
+# The FLTK include file directories.
+SET(FLUID_COMMAND "/usr/bin/fluid")
+SET(FLTK_EXECUTABLE_DIRS "/usr/bin")
+SET(FLTK_LIBRARY_DIRS "/usr/lib")
+SET(FLTK_LIBRARIES "fltk_images;fltk_gl;fltk_forms;fltk")
+SET(FLTK_INCLUDE_DIRS "/usr/include")
+
+# The C and C++ flags added by FLTK to the cmake-configured flags.
+SET(FLTK_REQUIRED_C_FLAGS "")
+SET(FLTK_REQUIRED_CXX_FLAGS "")
+
+# The FLTK version number
+SET(FLTK_VERSION_MAJOR "1")
+SET(FLTK_VERSION_MINOR "1")
+SET(FLTK_VERSION_PATCH "7")
+
+# Is FLTK using shared libraries?
+SET(FLTK_BUILD_SHARED_LIBS "ON")
+# SET(FLTK_BUILD_SETTINGS_FILE "@FLTK_BUILD_SETTINGS_FILE@")
+
+# The location of the UseFLTK.cmake file.
+SET(FLTK11_USE_FILE "/usr/share/cmake/Modules/FLTKUse.cmake")
+
+# # The ExodusII library dependencies.
+# IF(NOT FLTK_NO_LIBRARY_DEPENDS)
+# INCLUDE("@FLTK_LIBRARY_DEPENDS_FILE@")
+# ENDIF(NOT FLTK_NO_LIBRARY_DEPENDS)
diff --git a/x11-libs/fltk/files/digest-fltk-1.1.7-r1 b/x11-libs/fltk/files/digest-fltk-1.1.7-r1
new file mode 100644
index 000000000000..f20ba91db664
--- /dev/null
+++ b/x11-libs/fltk/files/digest-fltk-1.1.7-r1
@@ -0,0 +1,3 @@
+MD5 2e29319119adc9d63b2f26b72cae0a88 fltk-1.1.7-source.tar.bz2 2060757
+RMD160 a539a1c6bb3363e54bc82c7995037c5d8ede9dd7 fltk-1.1.7-source.tar.bz2 2060757
+SHA256 855a97e35da823f205253b865758715872cd2c7720e4dcf134a3b6dc18bfb96a fltk-1.1.7-source.tar.bz2 2060757
diff --git a/x11-libs/fltk/fltk-1.1.7-r1.ebuild b/x11-libs/fltk/fltk-1.1.7-r1.ebuild
new file mode 100644
index 000000000000..5594b26cc2cd
--- /dev/null
+++ b/x11-libs/fltk/fltk-1.1.7-r1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.7-r1.ebuild,v 1.1 2007/05/16 09:47:42 drac Exp $
+
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="C++ user interface toolkit for X and OpenGL."
+HOMEPAGE="http://www.fltk.org"
+SRC_URI="http://ftp.easysw.com/pub/${PN}/${PV}/${P}-source.tar.bz2"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+LICENSE="FLTK LGPL-2"
+
+PV_MAJOR=${PV/.*/}
+PV_MINOR=${PV#${PV_MAJOR}.}
+PV_MINOR=${PV_MINOR/.*}
+SLOT="${PV_MAJOR}.${PV_MINOR}"
+
+INCDIR=/usr/include/fltk-${SLOT}
+LIBDIR=/usr/$(get_libdir)/fltk-${SLOT}
+
+IUSE="noxft opengl debug"
+
+DEPEND="|| ( (
+ x11-libs/libXext
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXt
+ x11-proto/xextproto )
+ virtual/x11 )
+ !noxft? ( virtual/xft )
+ media-libs/libpng
+ media-libs/jpeg
+ opengl? ( virtual/opengl )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch "${FILESDIR}/libs-1.7.diff" || die "patch failed"
+ use amd64 && {
+ epatch "${FILESDIR}/${P}-amd64.patch" || die "patch failed"
+ }
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ epatch "${FILESDIR}/${P}-dieonerrors.patch"
+}
+
+src_compile() {
+ local myconf
+ myconf="--enable-shared --enable-xdbe --enable-static --enable-threads"
+
+ if ! use noxft; then
+ myconf="${myconf} --enable-xft"
+ else
+ myconf="${myconf} --disable-xft"
+ fi
+
+ use debug && myconf="${myconf} --enable-debug"
+
+ use opengl || myconf="${myconf} --disable-gl"
+
+ # needed for glibc-2.3.1 (as far as i can test)
+ # otherwise libstdc++ won't be linked. #17894 and #15572
+ # doesn't happen for glibc-2.3.2 - <liquidx@gentoo.org>
+ export CXX=$(tc-getCXX)
+ export CC=$(tc-getCC)
+
+ # bug #19894
+ export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/usr/include/freetype2"
+ export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/include/freetype2"
+
+ econf \
+ --includedir=${INCDIR}\
+ --libdir=${LIBDIR} \
+ ${myconf} || die "Configuration Failed"
+
+ emake || die "Parallel Make Failed"
+}
+
+src_install() {
+ einstall \
+ includedir=${D}${INCDIR} \
+ libdir=${D}${LIBDIR} || die "Installation Failed"
+
+ ranlib ${D}${LIBDIR}/*.a
+
+ insinto /usr/share/cmake/Modules
+ doins "${FILESDIR}"/FLTKConfig.cmake CMake/FLTKUse.cmake
+
+ dodoc CHANGES README
+
+ echo "LDPATH=${LIBDIR}" > 99fltk-${SLOT}
+ echo "FLTK_DOCDIR=/usr/share/doc/${PF}/html" >> 99fltk-${SLOT}
+
+ doenvd 99fltk-${SLOT}
+
+ dodir /usr/share/doc/${P}/html
+ mv ${D}/usr/share/doc/fltk/* ${D}/usr/share/doc/${PF}/html
+ rmdir ${D}/usr/share/doc/fltk
+ rm -rf ${D}/usr/share/man/cat{1,3}
+}
+
+pkg_postinst() {
+ ewarn "the xft USE flag has been changed to noxft. this was because most"
+ ewarn "users want xft, but if you do not, be sure to change the flag"
+}