# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils toolchain-funcs DESCRIPTION="Touchscreen Access Library" KEYWORDS="arm x86 amd64" IUSE="arctic2 collie corgi h3600 linear-h2200 mk712 ucb1x00" DEPEND="" RDEPEND="" HOMEPAGE="http://tslib.berlios.de/" SRC_URI="http://download.berlios.de/tslib/tslib-1.0.tar.bz2" SLOT="0" src_unpack() { unpack ${A} cd ${S} epatch "${FILESDIR}"/devfs.patch epatch "${FILESDIR}"/event1.patch ./autogen.sh } src_compile() { echo ac_cv_func_malloc_0_nonnull=yes > config.cache econf --config-cache --enable-shared \ --enable-linear --enable-dejitter \ --enable-variance --enable-pthres \ --enable-input \ $(use_enable arctic2) \ $(use_enable collie) \ $(use_enable corgi) \ $(use_enable h3600) \ $(use_enable linear-h2200) \ $(use_enable mk712) \ $(use_enable ucb1x00) \ --disable-debug || die "Configure failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" #doenvd "${FILESDIR}"/10tslib }