Changeset - 84950ec5b8ce
[Not reviewed]
default
0 4 0
Nathan Brink (binki) - 15 years ago 2010-01-12 16:09:05
ohnobinki@ohnopublishing.net
dev-libs/DirectFB: Define the LD environment variable. Gentoo bug 300779
4 files changed with 11 insertions and 4 deletions:
0 comments (0 inline, 0 general)
dev-libs/DirectFB/ChangeLog
Show inline comments
 
# ChangeLog for dev-libs/DirectFB
 
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/ChangeLog,v 1.94 2010/01/06 19:07:57 vapier Exp $
 

	
 
  12 Jan 2010; Nathan Phillip Brink (ohnobinki)
 
  <ohnobinki@ohnopublishing.net> DirectFB-1.2.7.ebuild,
 
  DirectFB-1.4.2.ebuild:
 
  Define the LD environment variable. Gentoo bug 300779
 

	
 
  06 Jan 2010; Mike Frysinger <vapier@gentoo.org> DirectFB-1.4.2.ebuild:
 
  Drop special "none" handling with VIDEO_CARDS/INPUT_DEVICES #299920 by
 
  Jeroen Roovers.
 

	
 
  05 Jan 2010; nixnut <nixnut@gentoo.org> DirectFB-1.4.2.ebuild:
 
  ppc stable #296263
 

	
 
  01 Jan 2010; Tobias Klausmann <klausman@gentoo.org> DirectFB-1.4.2.ebuild:
 
  Stable on alpha, bug #296263
 

	
 
  31 Dec 2009; Brent Baude <ranger@gentoo.org> DirectFB-1.4.2.ebuild:
 
  Marking DirectFB-1.4.2 ppc64 for bug 296263
 

	
 
  29 Dec 2009; Markus Meier <maekke@gentoo.org> DirectFB-1.4.2.ebuild:
 
  amd64 stable, bug #296263
 

	
 
  09 Dec 2009; Christian Faulhammer <fauli@gentoo.org>
 
  DirectFB-1.4.2.ebuild:
 
  stable x86, bug 296263
 

	
 
*DirectFB-1.4.2 (29 Sep 2009)
 

	
 
  29 Sep 2009; Mike Frysinger <vapier@gentoo.org> +DirectFB-1.4.2.ebuild:
 
  Version bump #283922 by Victor Tseng.
 

	
 
*DirectFB-1.2.9 (29 Sep 2009)
 

	
 
  29 Sep 2009; Mike Frysinger <vapier@gentoo.org> +DirectFB-1.2.9.ebuild:
 
  Version bump.
 

	
 
  30 Apr 2009; Jeroen Roovers <jer@gentoo.org> DirectFB-1.2.7.ebuild:
 
  Stable for HPPA (bug #265042).
 

	
 
  23 Apr 2009; Raúl Porcel <armin76@gentoo.org> DirectFB-1.2.7.ebuild:
 
  arm/ia64/sh stable wrt #265042
 

	
 
  18 Apr 2009; Markus Meier <maekke@gentoo.org> DirectFB-1.2.7:
 
  amd64/x86 stable, bug #265042
 

	
 
  15 Apr 2009; Brent Baude <ranger@gentoo.org> DirectFB-1.2.7.ebuild:
 
  Marking DirectFB-1.2.7 ppc64 for bug 265042
 

	
 
  12 Apr 2009; Michael Sterrett <mr_bones_@gentoo.org>
 
  -files/DirectFB-0.9.25.1-headers.patch, -DirectFB-0.9.25.1.ebuild:
 
  clean old
 

	
 
  11 Apr 2009; nixnut <nixnut@gentoo.org> DirectFB-1.2.6.ebuild,
 
  DirectFB-1.2.7.ebuild:
dev-libs/DirectFB/DirectFB-1.2.7.ebuild
Show inline comments
 
# Copyright 1999-2009 Gentoo Foundation
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB/DirectFB-1.2.7.ebuild,v 1.7 2009/04/30 12:28:31 jer Exp $
 

	
 
inherit eutils toolchain-funcs
 

	
 
IUSE_VIDEO_CARDS="ati128 cle266 cyber5k i810 i830 mach64 matrox neomagic none nsc nvidia radeon savage sis315 tdfx unichrome"
 
IUSE_INPUT_DEVICES="dbox2remote elo-input gunze h3600_ts joystick keyboard dreamboxremote linuxinput lirc mutouch none permount ps2mouse serialmouse sonypijogdial wm97xx"
 

	
 
DESCRIPTION="Thin library on top of the Linux framebuffer devices"
 
HOMEPAGE="http://www.directfb.org/"
 
SRC_URI="http://directfb.org/downloads/Core/${P}.tar.gz
 
	http://directfb.org/downloads/Old/${P}.tar.gz"
 

	
 
LICENSE="LGPL-2.1"
 
SLOT="0"
 
KEYWORDS="alpha amd64 arm hppa ia64 -mips ppc ppc64 sh -sparc x86"
 
IUSE="debug fbcon fusion gif jpeg mmx png sdl sse sysfs truetype v4l v4l2 X zlib"
 

	
 
#	fusion? ( >=dev-libs/linux-fusion-8.0.0 )
 
RDEPEND="sdl? ( media-libs/libsdl )
 
	gif? ( media-libs/giflib )
 
	png? ( media-libs/libpng )
 
	jpeg? ( media-libs/jpeg )
 
	sysfs? ( sys-fs/sysfsutils )
 
	zlib? ( sys-libs/zlib )
 
	truetype? ( >=media-libs/freetype-2.0.1 )
 
	X? ( x11-libs/libXext x11-libs/libX11 )"
 
DEPEND="${RDEPEND}
 
	X? ( x11-proto/xextproto x11-proto/xproto )"
 

	
 
pkg_setup() {
 
	if [[ -z ${VIDEO_CARDS} ]] ; then
 
		ewarn "All video drivers will be built since you did not specify"
 
		ewarn "via the VIDEO_CARDS variable what video card you use."
 
		ewarn "DirectFB supports: ${IUSE_VIDEO_CARDS} all none"
 
		echo
 
	fi
 
	if [[ -z ${INPUT_DEVICES} ]] ; then
 
		ewarn "All input drivers will be built since you did not specify"
 
		ewarn "via the INPUT_DEVICES variable which input drivers to use."
 
		ewarn "DirectFB supports: ${IUSE_INPUT_DEVICES} all none"
 
		echo
 
	fi
 
}
 

	
 
src_unpack() {
 
	unpack ${A}
 
	cd "${S}"
 
@@ -56,90 +56,91 @@ src_unpack() {
 
	# bug tracker is currently broken, so list things to do here:
 
	#  configure.in:
 
	#   - only add -I/usr/X11R6/include to X11_CFLAGS as needed
 
	#   - only add -L/usr/X11R6/lib to X11_LIBS as needed
 
	#  systems/x11/Makefile.am:
 
	#   - add $(X11_LIBS) to end of _LIBADD variables
 
	sed -i \
 
		-e '/X11_LIBS/s:-L/usr/X11R6/lib::' \
 
		-e '/CFLAGS/s:-I/usr/X11R6/include::' \
 
		configure
 
}
 

	
 
src_compile() {
 
	local vidcards card input inputdrivers
 
	if [[ ${VIDEO_CARDS+set} == "set" ]] ; then
 
		for card in ${VIDEO_CARDS} ; do
 
			has ${card} ${IUSE_VIDEO_CARDS} && vidcards="${vidcards},${card}"
 
			#use video_cards_${card} && vidcards="${vidcards},${card}"
 
		done
 
		[[ -z ${vidcards} ]] \
 
			&& vidcards="none" \
 
			|| vidcards=${vidcards:1}
 
	else
 
		vidcards="all"
 
	fi
 
	if [[ ${INPUT_DEVICES+set} == "set" ]] ; then
 
		for input in ${INPUT_DEVICES} ; do
 
			has ${input} ${IUSE_INPUT_DEVICES} && inputdrivers="${inputdrivers},${input}"
 
			#use input_devics_${input} && inputdrivers="${inputdrivers},${input}"
 
		done
 
		[[ -z ${inputdrivers} ]] \
 
			&& inputdrivers="none" \
 
			|| inputdrivers=${inputdrivers:1}
 
	else
 
		inputdrivers="all"
 
	fi
 

	
 
	local sdlconf="--disable-sdl"
 
	if use sdl ; then
 
		# since SDL can link against DirectFB and trigger a
 
		# dependency loop, only link against SDL if it isn't
 
		# broken #61592
 
		echo 'int main(){}' > sdl-test.c
 
		$(tc-getCC) sdl-test.c -lSDL 2>/dev/null \
 
			&& sdlconf="--enable-sdl" \
 
			|| ewarn "Disabling SDL since libSDL.so is broken"
 
	fi
 

	
 
	tc-export LD
 
	econf \
 
		--enable-static \
 
		$(use_enable X x11) \
 
		$(use_enable fbcon fbdev) \
 
		$(use_enable mmx) \
 
		$(use_enable sse) \
 
		$(use_enable jpeg) \
 
		$(use_enable png) \
 
		$(use_enable gif) \
 
		$(use_enable truetype freetype) \
 
		$(use_enable fusion multi) \
 
		$(use_enable debug) \
 
		$(use_enable sysfs) \
 
		$(use_enable zlib) \
 
		$(use_enable v4l video4linux) \
 
		$(use_enable v4l2 video4linux2) \
 
		${sdlconf} \
 
		--with-gfxdrivers="${vidcards}" \
 
		--with-inputdrivers="${inputdrivers}" \
 
		--disable-vnc \
 
		|| die
 
	emake || die
 
}
 

	
 
src_install() {
 
	emake DESTDIR="${D}" install || die "make install failed"
 
	dodoc fb.modes AUTHORS ChangeLog NEWS README* TODO
 
	dohtml -r docs/html/*
 
}
 

	
 
pkg_postinst() {
 
	ewarn "Each DirectFB update in the 0.9.xx series"
 
	ewarn "breaks DirectFB related applications."
 
	ewarn "Please run \"revdep-rebuild\" which can be"
 
	ewarn "found by emerging the package 'gentoolkit'."
 
	ewarn
 
	ewarn "If you have an ALPS touchpad, then you might"
 
	ewarn "get your mouse unexpectedly set in absolute"
 
	ewarn "mode in all DirectFB applications."
 
	ewarn "This can be fixed by removing linuxinput from"
 
	ewarn "INPUT_DEVICES."
 
}
dev-libs/DirectFB/DirectFB-1.4.2.ebuild
Show inline comments
 
@@ -45,90 +45,91 @@ RDEPEND="sdl? ( media-libs/libsdl )
 
DEPEND="${RDEPEND}
 
	X? ( x11-proto/xextproto x11-proto/xproto )"
 

	
 
src_unpack() {
 
	unpack ${A}
 
	cd "${S}"
 
	epatch "${FILESDIR}"/${PN}-1.2.7-CFLAGS.patch
 
	epatch "${FILESDIR}"/${PN}-1.2.0-headers.patch
 
	epatch "${FILESDIR}"/${PN}-1.1.1-pkgconfig.patch
 

	
 
	# This is only a partial fix to the X11 order issue #201626.  It's just
 
	# the only part we need in order to make the issue go away.  Upstream
 
	# bug tracker is currently broken, so list things to do here:
 
	#  configure.in:
 
	#   - only add -I/usr/X11R6/include to X11_CFLAGS as needed
 
	#   - only add -L/usr/X11R6/lib to X11_LIBS as needed
 
	#  systems/x11/Makefile.am:
 
	#   - add $(X11_LIBS) to end of _LIBADD variables
 
	sed -i \
 
		-e '/X11_LIBS/s:-L/usr/X11R6/lib::' \
 
		-e '/CFLAGS/s:-I/usr/X11R6/include::' \
 
		configure
 
}
 

	
 
driver_list() {
 
	local pfx=$1
 
	local dev devs map
 
	shift
 
	for dev in "$@" ; do
 
		use ${pfx}_${dev} || continue
 
		map="I_TO_D_${dev}"
 
		devs=${devs:+${devs},}${!map:-${dev}}
 
	done
 
	echo ${devs:-none}
 
}
 

	
 
src_compile() {
 
	local sdlconf="--disable-sdl"
 
	if use sdl ; then
 
		# since SDL can link against DirectFB and trigger a
 
		# dependency loop, only link against SDL if it isn't
 
		# broken #61592
 
		echo 'int main(){}' > sdl-test.c
 
		$(tc-getCC) sdl-test.c -lSDL 2>/dev/null \
 
			&& sdlconf="--enable-sdl" \
 
			|| ewarn "Disabling SDL since libSDL.so is broken"
 
	fi
 

	
 
	tc-export LD
 
	econf \
 
		--enable-static \
 
		$(use_enable X x11) \
 
		$(use_enable fbcon fbdev) \
 
		$(use_enable mmx) \
 
		$(use_enable sse) \
 
		$(use_enable jpeg) \
 
		$(use_enable png) \
 
		$(use_enable gif) \
 
		$(use_enable truetype freetype) \
 
		$(use_enable fusion multi) \
 
		$(use_enable debug) \
 
		$(use_enable sysfs) \
 
		$(use_enable zlib) \
 
		$(use_enable v4l video4linux) \
 
		$(use_enable v4l2 video4linux2) \
 
		${sdlconf} \
 
		--with-gfxdrivers="$(driver_list video_cards ${IUSE_VIDEO_CARDS})" \
 
		--with-inputdrivers="$(driver_list input_devices ${IUSE_INPUT_DEVICES})" \
 
		--disable-vnc \
 
		|| die
 
	emake || die
 
}
 

	
 
src_install() {
 
	emake DESTDIR="${D}" install || die "make install failed"
 
	dodoc fb.modes AUTHORS ChangeLog NEWS README* TODO
 
	dohtml -r docs/html/*
 
}
 

	
 
pkg_postinst() {
 
	ewarn "Each DirectFB update in the 0.9.xx series"
 
	ewarn "breaks DirectFB related applications."
 
	ewarn "Please run \"revdep-rebuild\" which can be"
 
	ewarn "found by emerging the package 'gentoolkit'."
 
	ewarn
 
	ewarn "If you have an ALPS touchpad, then you might"
 
	ewarn "get your mouse unexpectedly set in absolute"
 
	ewarn "mode in all DirectFB applications."
 
	ewarn "This can be fixed by removing linuxinput from"
 
	ewarn "INPUT_DEVICES."
 
}
dev-libs/DirectFB/Manifest
Show inline comments
 
AUX DirectFB-1.1.1-pkgconfig.patch 637 RMD160 b560f0cb45ab3e8938bce474f1331562ba3a96a1 SHA1 aa202a8452f48f1a8ce087201bcc26ef17c97faa SHA256 f824293e1ae8ed2e632ba0196cf760459006a1e110abac348476b3982a0db036
 
AUX DirectFB-1.2.0-headers.patch 430 RMD160 a783b9d0169241d92504ceb9a41545afa986384a SHA1 78f0b76da583702e730fed19288eb5b94be996f2 SHA256 f1c3c6f420ca7864435d8c69a80c239c4ff9ed6d46ac9ba14b59c6ffa6970b45
 
AUX DirectFB-1.2.7-CFLAGS.patch 430 RMD160 814bb14c60732dab762303e8a6d356bc59950424 SHA1 5b9e3220493f182ceb0b13747e8199cf0f82c319 SHA256 8b1520f87b5ece3d3694cc1fd5b7bb943ab746a55d423b4593213be2b3bd13e7
 
DIST DirectFB-1.2.7.tar.gz 2771039 RMD160 5230e8090938b4c8e9713d174dc62944da3cebab SHA1 1f0c7f3a020d095b78abc1adcc11e34e7b1b07fb SHA256 80ab8e34246a280bc380020cf331bcc0014cf816380cee3935ad455c108e661e
 
DIST DirectFB-1.4.2.tar.gz 2900292 RMD160 44ead9b32a2583b79690b1cc1536a4df17361078 SHA1 29a5e5a82b1a9e2cbfe31af127a54767fffae975 SHA256 051847e21e88a9c32ee78f8920014602d8b21928602075c5266433cd58addbc6
 
EBUILD DirectFB-1.2.7.ebuild 4762 RMD160 14ed83117bb3e61f7475b85b29faed13fad76b17 SHA1 027fe225aad1e013600b5534c5d1ad416711642c SHA256 7f7d7714a0f2c1b607acc363e3d96294081cf09af83a2fcac0fd515d7414fbe0
 
EBUILD DirectFB-1.4.2.ebuild 4436 RMD160 64317cdfb81159738877c36099f3a8854d632e93 SHA1 cefc43786cfba24ebd7f4f2a89d7341ac9fa3758 SHA256 a775d7db384f29775bde46717e27836e2e7b97285b800cbf9ba8ec9e38afc997
 
MISC ChangeLog 13534 RMD160 2db40664af97dafae08dc82bbc2d2b6c44af8ad3 SHA1 c0b10dfb65e907902098726eea9722d7945b9dac SHA256 17fbd927f07ec9e3ef454fd1a57de30e126e60d8728b70ccebab0e7369186c29
 
EBUILD DirectFB-1.2.7.ebuild 4776 RMD160 e870f0a417011c8c65f3870f4a966fe6848fa2c3 SHA1 b2671b45dfd4628d1b56acb8de6ded8ab85cea10 SHA256 50df56653493e6c2bca85496d3ce11962a3f59edfb7bc4e627967c5088002eea
 
EBUILD DirectFB-1.4.2.ebuild 4450 RMD160 2cbbc579b255c4b4b67fa69ce8cb1dc143cf7107 SHA1 2c3fcb037e6abde241a341e2450951239d668587 SHA256 7d549b5cc0b5f267953064e8a0598b60ba75504c6961057b5385b94a78d4b50c
 
MISC ChangeLog 13720 RMD160 36b9a7c9485a30ee7d1606bfa9593e252dc1d4df SHA1 2b0d67ec38d157c07225c3fdda4d60d2b4b5a5dc SHA256 afb9ccdca99081c9192ef50165bb738f6821cb004643c4475d486aa72e63de46
 
MISC metadata.xml 874 RMD160 602100ad1d1d3d5882f64144024636eea56a89a9 SHA1 35a43722612b96313f79c7d431c00068eef6cc95 SHA256 81a0a55f0059aa1f51089edadd145016aa6f2c0dfd986bea718afb4e9900860f
0 comments (0 inline, 0 general)