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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 30 00:13:06 2004 UTC (14 years, 3 months ago) by killsoft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove cruft

1 # Copyright 1999-2004 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.1.4.ebuild,v 1.3 2004/06/28 21:45:42 agriffis Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Ham radio backend rig control libraries"
8 HOMEPAGE="http://sourceforge.net/projects/hamlib/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10 LICENSE="GPL-2"
11
12 SLOT="0"
13 KEYWORDS="~x86 ~alpha"
14 IUSE="doc gd X"
15
16 RDEPEND="virtual/libc
17 X? ( virtual/x11 )
18 gd? ( media-libs/libgd )"
19
20 DEPEND="${RDEPEND}
21 sys-devel/libtool
22 doc? ( >=app-doc/doxygen-1.3.5-r1 )
23 >=dev-util/pkgconfig-0.12.0"
24
25 src_unpack() {
26 unpack ${A}
27 cd ${S}
28 epatch ${FILESDIR}/${PN}-pkgconfig-fix.diff || \
29 die "epatch failed"
30 }
31
32 src_compile() {
33 econf \
34 --libdir=/usr/lib/hamlib \
35 --includedir=/usr/include/hamlib \
36 --with-microtune \
37 --without-rpc-backends \
38 --without-perl-binding \
39 --without-tcl-binding \
40 $(use_with gd rigmatrix) \
41 $(use_with X x) \
42 || die "configure failed"
43 emake || die "emake failed"
44 if use doc ; then
45 cd doc && make doc || die "make doc failed"
46 fi
47 }
48
49 src_install() {
50 einstall \
51 libdir=${D}/usr/lib/hamlib \
52 includedir=${D}/usr/include/hamlib || \
53 die "einstall failed"
54 dodoc AUTHORS PLAN README README.betatester
55 dodoc README.developer LICENSE NEWS TODO
56 if use doc; then
57 dohtml doc/html/*
58 doman doc/man/man3/*
59 fi
60 insinto /usr/lib/pkgconfig
61 doins hamlib.pc
62 }
63
64 pkg_postinst() {
65 if ! use gd ; then
66 echo
67 ewarn "Your USE flags do not contain \"gd\"."
68 ewarn "Therefore, hamlib has been built without"
69 ewarn "rigmatrix support. If this is not what you"
70 ewarn "want, add \"gd\" to your /etc/make.conf USE"
71 ewarn "flags and re-emerge hamlib."
72 echo
73 fi
74 echo
75 einfo "hamlib is now installed. Add \"hamlib\" to"
76 einfo "your /etc/make.conf USE flags to enable ham"
77 einfo "radio applications to use hamlib libraries."
78 echo
79 }

  ViewVC Help
Powered by ViewVC 1.1.20