/[gentoo-x86]/media-libs/hamlib/hamlib-1.2.8.ebuild
Gentoo

Contents of /media-libs/hamlib/hamlib-1.2.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Dec 27 17:11:47 2008 UTC (9 years, 5 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Add patch to allow hamlib to use the system libltdl instead of a bundled one, patch by Thomas Beierlein. bug 252326
(Portage version: 2.2_rc19/cvs/Linux 2.6.27.10 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/hamlib-1.2.8.ebuild,v 1.1 2008/12/04 17:58:18 darkside Exp $
4
5 inherit eutils multilib libtool
6
7 DESCRIPTION="Ham radio backend rig control libraries"
8 HOMEPAGE="http://hamlib.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="LGPL-2 GPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~x86-fbsd"
14 IUSE="doc python tcl"
15
16 RESTRICT="test"
17
18 RDEPEND="virtual/libc
19 python? ( dev-lang/python
20 dev-lang/tcl )
21 tcl? ( dev-lang/tcl )"
22
23 DEPEND=" ${RDEPEND}
24 >=sys-devel/libtool-1.5
25 >=dev-util/pkgconfig-0.15
26 >=dev-lang/swig-1.3.14
27 dev-libs/libxml2
28 doc? ( >=app-doc/doxygen-1.3.5 )"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33
34 epatch "${FILESDIR}"/${PN}-pkgconfig-fix.diff
35
36 # Needed for FreeBSD - Please do not remove
37 elibtoolize
38 }
39
40 src_compile() {
41 econf \
42 --libdir=/usr/$(get_libdir)/hamlib \
43 --disable-static \
44 --with-microtune \
45 --with-rpc-backends \
46 --without-perl-binding \
47 $(use_with python python-binding) \
48 $(use_with tcl tcl-binding)
49
50 emake -j1 || die "emake failed"
51
52 if use doc ; then
53 cd doc && make doc || die "make doc failed"
54 fi
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install || die "emake install failed"
59
60 dodoc AUTHORS PLAN README README.betatester \
61 README.developer LICENSE NEWS TODO
62
63 if use doc; then
64 dohtml doc/html/*
65 fi
66
67 insinto /usr/$(get_libdir)/pkgconfig
68 doins hamlib.pc
69
70 echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
71 doenvd "${T}"/73hamlib
72 }

  ViewVC Help
Powered by ViewVC 1.1.20