/[gentoo-x86]/dev-embedded/urjtag/urjtag-9999.ebuild
Gentoo

Contents of /dev-embedded/urjtag/urjtag-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Jan 20 13:58:53 2013 UTC (7 years, 1 month ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +5 -3 lines
Copy LDFLAGS logic from openocd for ftd2xx support.

(Portage version: 2.2.0_alpha157/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24)

1 swegener 1.3 # Copyright 1999-2013 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 swegener 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/urjtag/urjtag-9999.ebuild,v 1.2 2012/03/28 17:30:31 vapier Exp $
4 vapier 1.1
5     # TODO: figure out htf to make python.eclass work
6    
7     EAPI="4"
8    
9 swegener 1.3 inherit eutils multilib
10 vapier 1.1 if [[ ${PV} == "9999" ]] ; then
11     EGIT_REPO_URI="git://urjtag.git.sourceforge.net/gitroot/urjtag/urjtag"
12     EGIT_SOURCEDIR=${WORKDIR}
13     inherit git-2 autotools
14     S=${WORKDIR}/${PN}
15     else
16     SRC_URI="mirror://sourceforge/urjtag/${P}.tar.bz2"
17     KEYWORDS="amd64 ppc sparc x86"
18     fi
19    
20     DESCRIPTION="tool for communicating over JTAG with flash chips, CPUs, and many more (fork of openwince jtag)"
21     HOMEPAGE="http://urjtag.sourceforge.net/"
22    
23     LICENSE="GPL-2"
24     SLOT="0"
25 vapier 1.2 IUSE="ftd2xx ftdi readline static-libs usb"
26 vapier 1.1
27     DEPEND="ftdi? ( dev-embedded/libftdi )
28 vapier 1.2 ftd2xx? ( dev-embedded/libftd2xx )
29 vapier 1.1 readline? ( sys-libs/readline )
30     usb? ( virtual/libusb:1 )"
31     RDEPEND="${DEPEND}
32     !dev-embedded/jtag"
33    
34     src_prepare() {
35     if [[ ${PV} == "9999" ]] ; then
36     mkdir -p m4
37     eautopoint
38     eautoreconf
39     fi
40     }
41    
42     src_configure() {
43 swegener 1.3 use ftd2xx && LDFLAGS="${LDFLAGS} -L/opt/$(get_libdir)"
44    
45 vapier 1.1 econf \
46     --disable-werror \
47     --disable-python \
48     $(use_with readline) \
49     $(use_with ftdi libftdi) \
50 vapier 1.2 $(use_with ftd2xx) \
51 vapier 1.1 $(use_enable static-libs static) \
52     $(use_with usb libusb 1.0)
53     }
54    
55     src_install() {
56     default
57     use static-libs || find "${ED}" -name '*.la' -delete
58     }

  ViewVC Help
Powered by ViewVC 1.1.20