linamh/x11-libs/tslib/tslib-1.0-r1.ebuild

44 lines
1.3 KiB
Bash

# Copyright 2008-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/tslib/tslib-1.0-r1.ebuild,v 1.1 2008/11/09 20:51:39 solar Exp $
inherit eutils toolchain-funcs autotools
DESCRIPTION="Touchscreen Access Library"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""
#extras arctic2 collie corgi h3600 linear-h2200 mk712 ucb1x00"
DEPEND=""
RDEPEND=""
HOMEPAGE="http://tslib.berlios.de/"
SRC_URI="mirror://gentoo/${PN}-${PV}-patches-2.tar.bz2 mirror://berlios/${PN}/${PN}-${PV}.tar.bz2"
SLOT="0"
LICENSE="LGPL-2"
src_unpack() {
unpack ${A}
cd "${S}"
# patches come from buildroot + openembedded + suse
epatch "${WORKDIR}"/patches/*.patch
epatch "${FILESDIR}"/${PN}-1.0-test-1.patch
eautoreconf
}
src_compile() {
# compile everything. INSTALL_MASK= what you don't want.
econf --enable-linear --enable-dejitter \
--enable-variance --enable-pthres \
--enable-input --enable-shared \
--enable-arctic2 --enable-collie \
--enable-corgi --enable-h3600 \
--enable-linear-h2200 --enable-mk712 \
--enable-ucb1x00 --disable-debug || die "Configure failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README
}