summaryrefslogtreecommitdiff
blob: a43777c4826a857deaebfb472784f8a549299647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/openobex-apps/openobex-apps-1.0.0.ebuild,v 1.5 2006/02/25 15:23:03 mrness Exp $

inherit eutils

DESCRIPTION="Openobex test applications, including example obexserver to receive files using bluetooth"
HOMEPAGE="http://sourceforge.net/projects/openobex"
SRC_URI="mirror://sourceforge/openobex/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc x86"
IUSE="bluetooth"

DEPEND="dev-libs/openobex
	bluetooth? ( net-wireless/bluez-libs )"
RDEPEND="${DEPEND}
	bluetooth? ( net-wireless/bluez-utils )"

src_unpack() {
	unpack ${A}

	cd ${S}
	epatch ${FILESDIR}/${PN}-printf-fixes.patch
	use bluetooth && epatch ${FILESDIR}/add-obexserver.patch
}

src_install () {
	make DESTDIR=${D} install || die

	dodoc ChangeLog README AUTHORS NEWS
}

pkg_postinst() {
	if use bluetooth ; then
		einfo
		einfo "To use obexserver run: "
		einfo "1. sdptool add --channel=10 OPUSH "
		einfo "2. obexserver "
		einfo
	fi
}