better deps and make it work with latest eselect-opengl
authorMichael Sterrett <mr_bones_@gentoo.org>
Thu, 17 Dec 2015 02:29:27 +0000 (21:29 -0500)
committerMichael Sterrett <mr_bones_@gentoo.org>
Thu, 17 Dec 2015 02:29:45 +0000 (21:29 -0500)
Package-Manager: portage-2.2.24

games-sports/foobillard/foobillard-3.0a.ebuild

index babc1d84dc38c896179cb56989ff01a9e5105cfc..360aa076efa775903550cd7a745efd52a1e8a885 100644 (file)
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=5
-inherit eutils autotools games
+inherit eutils flag-o-matic autotools toolchain-funcs games
 
 DESCRIPTION="8ball, 9ball, snooker and carambol game"
 HOMEPAGE="http://foobillard.sourceforge.net/"
@@ -19,10 +19,10 @@ DEPEND="x11-libs/libXaw
        virtual/opengl
        virtual/glu
        >=media-libs/freetype-2.0.9
-       media-libs/libpng
-       sdl? ( media-libs/libsdl )
+       media-libs/libpng:0
+       sdl? ( media-libs/libsdl[video] )
        !sdl? ( media-libs/freeglut )"
-RDEPEND="${DEPEND}"
+RDEPEND=${DEPEND}
 
 src_prepare() {
        epatch \
@@ -37,6 +37,7 @@ src_prepare() {
 }
 
 src_configure() {
+       use video_cards_nvidia && append-ldflags -L/usr/$(get_libdir)/opengl/nvidia/lib
        egamesconf \
                --enable-sound \
                $(use_enable sdl SDL) \