You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/openobex/openobex-1.3.ebuild

44 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openobex/openobex-1.3.ebuild,v 1.15 2012/05/22 16:37:11 ssuominen Exp $
inherit autotools eutils
DESCRIPTION="An implementation of the OBEX protocol used for transferring data to mobile devices"
HOMEPAGE="http://sourceforge.net/projects/openobex/"
SRC_URI="mirror://sourceforge/openobex/${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 arm hppa ppc ppc64 sparc x86"
IUSE="bluetooth debug irda syslog usb"
RDEPEND="usb? ( =virtual/libusb-0* )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-as-needed.patch
eautoreconf
}
src_compile() {
econf \
--enable-apps \
$(use_enable irda) \
$(use_enable bluetooth) \
$(use_enable usb) \
$(use_enable debug) \
$(use_enable debug dump) \
$(use_enable syslog) \
|| die "econf failed"
emake || die "emake failed"
}
src_install () {
emake DESTDIR="${D}" install || die "make install failed"
dodoc README AUTHORS NEWS ChangeLog
}