blob: e8aef6fa993316f74784fa8fb19b81cba33de21e [file] [log] [blame]
# Copyright 2014 The ChromiumOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN=mesa-demos
MY_P=${MY_PN}-${PV}
EGIT_REPO_URI="git://anongit.freedesktop.org/${MY_PN/-//}"
if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git-r3"
EXPERIMENTAL="true"
fi
inherit toolchain-funcs ${GIT_ECLASS}
DESCRIPTION="eglinfo from Mesa demos"
HOMEPAGE="http://mesa3d.sourceforge.net/"
SRC_URI="ftp://ftp.freedesktop.org/pub/${MY_PN/-//}/${PV}/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="virtual/opengles"
DEPEND="${RDEPEND}
x11-drivers/opengles-headers
x11-libs/libX11
"
S=${WORKDIR}/${MY_P}
EGIT_CHECKOUT_DIR=${S}
src_unpack() {
default
[[ $PV = 9999* ]] && git-r3_src_unpack
}
src_configure() { :; }
src_compile() {
cd src/egl/opengl
$(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c -lEGL
}
src_install() {
dobin src/egl/opengl/eglinfo
}