# Copyright Inria # Author: Bruno Marmol & Emilien Kia # Distributed under the terms of the GNU General Public License v2 # bugs: # - can use variable for version number: for re-use after new version # - DEPEND and RDEPEND are empty... that's bad... inherit libtool S=${WORKDIR}/Amaya/LINUX-ELF DESCRIPTION="The W3C Web-Browser" SRC_URI="http://wam.inrialpes.fr/software/${PN}/${PN}-fullsrc-${PV}-4.tgz" HOMEPAGE="http://www.w3.org/Amaya/" KEYWORDS="~x86" LICENSE="GPL-2" SLOT="0" IUSE="debug opengl" RDEPEND="" DEPEND="${RDEPEND}" src_compile() { local myconf="--enable-system-wx" mkdir ${S} cd ${S} if use opengl then myconf="${myconf} --with-gl" fi if use debug then myconf="${myconf} --with-debug" fi ../configure \ ${myconf} \ --prefix=/usr \ --host=${CHOST} make || die } src_install () { dodir /usr make prefix=${D}/usr install || die rm ${D}/usr/bin/amaya rm ${D}/usr/bin/print dosym /usr/Amaya/wx/bin/amaya /usr/bin/amaya dosym /usr/Amaya/wx/bin/print /usr/bin/print }