# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # # This ebuild is writed by Achraf cherti. If you have a question # you can contact me in: achrafcherti@gmail.com # # $Header: $ inherit eutils DESCRIPTION="A widget library extention for Fltk" HOMEPAGE="http://www.osc.edu/~jbryan/FLU" SRC_URI="http://www.osc.edu/~jbryan/FLU/FLU_2.14.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="X opengl shared" DEPEND="fltk" RDEPEND="" S="${WORKDIR}/FLU_2.14" src_compile() { cd $S || die "chdir failed" FLAGS="" if use opengl; then FLAGS="--enable-gl" else FLAGS="--disable-gl" fi if use shared; then FLAGS="$FLAGS --enable-shared" else FLAGS="$FLAGS --disable-shared" fi ./configure $FLAGS --disable-examples --prefix=/usr --L=/usr/lib/fltk-1.1 --I=/usr/include/fltk-1.1 || die "configure error" cp flu-config nice-flu-config ./configure $FLAGS --disable-examples --prefix=${D}/usr --L=/usr/lib/fltk-1.1 --I=/usr/include/fltk-1.1 || die "configure error" emake || die "make failed" } src_install() { #installing the executable make install || die "make install failed" cp nice-flu-config ${D}/usr/bin/flu-config chmod 755 ${D}/usr/bin/flu-config }