/[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.9 - (hide annotations) (download)
Fri Aug 17 22:26:33 2012 UTC (23 months, 1 week ago) by hwoarang
Branch: MAIN
Changes since 1.8: +2 -2 lines
Bump to 0.6.0_rc1

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 swegener 1.5 # Copyright 1999-2012 Gentoo Foundation
2 hwoarang 1.1 # Distributed under the terms of the GNU General Public License v2
3 hwoarang 1.9 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/openocd/openocd-0.5.0.ebuild,v 1.8 2012/06/01 02:26:43 zmedico Exp $
4 hwoarang 1.1
5     EAPI="4"
6    
7 zmedico 1.8 inherit eutils multilib
8 hwoarang 1.1 if [[ ${PV} == "9999" ]] ; then
9 vapier 1.4 inherit autotools git-2
10 hwoarang 1.1 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 vapier 1.3 IUSE="blaster dummy ftd2xx ftdi minidriver parport presto segger usb versaloon"
23 hwoarang 1.1 RESTRICT="strip" # includes non-native binaries
24    
25     # libftd2xx is the default because it is reported to work better.
26 hwoarang 1.9 DEPEND="<=dev-lang/jimtcl-0.73
27 ssuominen 1.7 usb? ( virtual/libusb:0 )
28 hwoarang 1.1 presto? ( dev-embedded/libftd2xx )
29     ftd2xx? ( dev-embedded/libftd2xx )
30     ftdi? ( dev-embedded/libftdi )"
31     RDEPEND="${DEPEND}"
32    
33 hwoarang 1.2 REQUIRED_USE="blaster? ( || ( ftdi ftd2xx ) ) ftdi? ( !ftd2xx )"
34 hwoarang 1.1
35 vapier 1.3 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 hwoarang 1.1 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 vapier 1.3 if use usb; then
50 hwoarang 1.1 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 swegener 1.5 use ftdi && myconf="${myconf} --enable-usb_blaster_libftdi"
59     use ftd2xx && myconf="${myconf} --enable-usb_blaster_ftd2xx"
60 hwoarang 1.1 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