diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-04-18 16:30:54 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-04-18 16:30:54 +0000 |
commit | 28c7fbeacb811320aaf796b56cc4ce1d5f979d75 (patch) | |
tree | 44217c85bb6edbdbdae5b06bfd89add44c40e2fd /x11-misc/linuxwacom/linuxwacom-0.6.7.ebuild | |
parent | version bump (diff) | |
download | gentoo-2-28c7fbeacb811320aaf796b56cc4ce1d5f979d75.tar.gz gentoo-2-28c7fbeacb811320aaf796b56cc4ce1d5f979d75.tar.bz2 gentoo-2-28c7fbeacb811320aaf796b56cc4ce1d5f979d75.zip |
Version bump for working amd64 drivers.
(Portage version: 2.0.51.19)
Diffstat (limited to 'x11-misc/linuxwacom/linuxwacom-0.6.7.ebuild')
-rw-r--r-- | x11-misc/linuxwacom/linuxwacom-0.6.7.ebuild | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/x11-misc/linuxwacom/linuxwacom-0.6.7.ebuild b/x11-misc/linuxwacom/linuxwacom-0.6.7.ebuild new file mode 100644 index 000000000000..c7b3049424e7 --- /dev/null +++ b/x11-misc/linuxwacom/linuxwacom-0.6.7.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/linuxwacom/linuxwacom-0.6.7.ebuild,v 1.1 2005/04/18 16:30:54 eradicator Exp $ + +IUSE="gtk gtk2 tcltk sdk" + +inherit eutils + +DESCRIPTION="Input driver for Wacom tablets and drawing devices" +HOMEPAGE="http://linuxwacom.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/x11 + gtk? ( + gtk2? ( >=x11-libs/gtk+-2 ) + !gtk2? ( =x11-libs/gtk+-1.2* ) + ) + tcltk? ( dev-lang/tcl dev-lang/tk ) + sys-libs/ncurses" + +DEPEND="${RDEPEND} + sys-devel/libtool + !x86? ( >=sys-devel/automake-1.6 + >=sys-devel/autoconf-2.53 ) + dev-util/pkgconfig + >=sys-apps/sed-4" + +pkg_setup() { + if use sdk; then + if has_version ">=x11-base/xfree-4.3.0-r7" + then + if [ ! "`grep sdk /var/db/pkg/x11-base/xfree-[0-9]*/USE`" ] + then + eerror "This package builds against the XFree86 SDK, and therefore requires" + eerror "that you have emerged xfree with the sdk USE flag enabled." + die "Please remerge xfree with the sdk USE flag enabled." + fi + elif has_version "x11-base/xorg-x11" + then + if [ ! "`grep sdk /var/db/pkg/x11-base/xorg-x11-[0-9]*/USE`" ] + then + eerror "This package builds against the X.Org SDK, and therefore requires" + eerror "that you have emerged xorg-x11 with the sdk USE flag enabled." + die "Please remerge xorg-x11 with the sdk USE flag enabled." + fi + else die "This build requires x11-base/xorg-x11 or x11-base/xfree to be installed to build against the SDK when USE=sdk." + fi + einfo "Building against the X11 SDK. This will install updated X drivers and userland tools." + else + ewarn "The 'sdk' use flag is not set. Only building userland tools. If you wish to install" + ewarn "the updated external driver for your X server, please remerge your X11 package with" + ewarn "the USE=sdk flag enabled." + fi +} + +src_unpack() { + unpack ${A} + + if use sdk; then + # Simple fixes to configure to check the actual location of the XFree86 SDK + # No need to check if just building userland tools + cd ${S} + sed -i -e "s:XF86SUBDIR=.*:XF86SUBDIR=include:" configure + sed -i -e "s:XF86V3SUBDIR=.*:XF86V3SUBDIR=include:" configure + fi +} + +src_compile() { + if use gtk; then + if use gtk2; then + myconf="${myconf} --with-gtk=2.0" + else + myconf="${myconf} --with-gtk=1.2" + fi + else + myconf="${myconf} --with-gtk=no" + fi + + if use tcltk ; then + myconf="${myconf} --with-tcl --with-tk" + else + myconf="${myconf} --without-tcl --without-tk" + fi + + if use amd64 ; then + myconf="${myconf} --enable-xserver64" + fi + + if use sdk; then + myconf="${myconf} --enable-wacomdrv --enable-wacdump --enable-xsetwacom" + if [ -f "/usr/$(get_libdir)/Server/include/xf86Version.h" ]; then + myconf="${myconf} --with-xf86=/usr/$(get_libdir)/Server --with-xorg-sdk=/usr/$(get_libdir)/Server" + else + myconf="${myconf} --with-xf86=/usr/X11R6/$(get_libdir)/Server --with-xorg-sdk=/usr/X11R6/$(get_libdir)/Server" + fi + + econf ${myconf} || die "configure failed." + + # Makefile fix for build against SDK + cd ${S}/src + sed -i -e "s:/include/extensions:/include:g" Makefile + else + myconf="${myconf} --disable-wacomdrv --enable-wacdump --enable-xsetwacom" + econf ${myconf} || die "configure failed." + fi + cd ${S} + unset ARCH + emake || die "build failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + dohtml -r docs/* + dodoc AUTHORS ChangeLog NEWS README +} |