/[gentoo-x86]/dev-embedded/openocd/openocd-0.5.0.ebuild
Gentoo

Contents of /dev-embedded/openocd/openocd-0.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Aug 22 17:29:19 2012 UTC (2 years ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Fix dependency for jimtcl

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/openocd/openocd-0.5.0.ebuild,v 1.9 2012/08/17 22:26:33 hwoarang Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib
8 if [[ ${PV} == "9999" ]] ; then
9 inherit autotools git-2
10 KEYWORDS=""
11 EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
12 else
13 KEYWORDS="~amd64 ~x86"
14 SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2"
15 fi
16
17 DESCRIPTION="OpenOCD - Open On-Chip Debugger"
18 HOMEPAGE="http://openocd.sourceforge.net"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 IUSE="blaster dummy ftd2xx ftdi minidriver parport presto segger usb versaloon"
23 RESTRICT="strip" # includes non-native binaries
24
25 # libftd2xx is the default because it is reported to work better.
26 DEPEND="<dev-lang/jimtcl-0.73
27 usb? ( virtual/libusb:0 )
28 presto? ( dev-embedded/libftd2xx )
29 ftd2xx? ( dev-embedded/libftd2xx )
30 ftdi? ( dev-embedded/libftdi )"
31 RDEPEND="${DEPEND}"
32
33 REQUIRED_USE="blaster? ( || ( ftdi ftd2xx ) ) ftdi? ( !ftd2xx )"
34
35 src_prepare() {
36 if [[ ${PV} == "9999" ]] ; then
37 sed -i -e "/@include version.texi/d" doc/${PN}.texi || die
38 AT_NO_RECURSIVE=yes eautoreconf
39 fi
40 }
41
42 src_configure() {
43 # Here are some defaults
44 myconf="--enable-buspirate --enable-ioutil --disable-werror
45 --disable-internal-jimtcl --enable-amtjtagaccel
46 --enable-ep93xx --enable-at91rm9200 --enable-gw16012
47 --enable-oocd_trace"
48
49 if use usb; then
50 myconf="${myconf} --enable-usbprog --enable-jlink --enable-rlink \
51 --enable-vsllink --enable-arm-jtag-ew"
52 fi
53
54 # add explicitely the path to libftd2xx
55 use ftd2xx && LDFLAGS="${LDFLAGS} -L/opt/$(get_libdir)"
56
57 if use blaster; then
58 use ftdi && myconf="${myconf} --enable-usb_blaster_libftdi"
59 use ftd2xx && myconf="${myconf} --enable-usb_blaster_ftd2xx"
60 fi
61 econf \
62 $(use_enable dummy) \
63 $(use_enable ftdi ft2232_libftdi) \
64 $(use_enable ftd2xx ft2232_ftd2xx) \
65 $(use_enable minidriver minidriver-dummy) \
66 $(use_enable parport) \
67 $(use_enable presto presto_ftd2xx) \
68 $(use_enable segger jlink) \
69 $(use_enable versaloon vsllink) \
70 ${myconf}
71 }
72
73 src_install() {
74 emake DESTDIR="${D}" install || die
75 dodoc AUTHORS ChangeLog NEWS README TODO || die
76 prepstrip "${D}"/usr/bin
77 }

  ViewVC Help
Powered by ViewVC 1.1.20