/[gentoo-x86]/sci-libs/libgeotiff/libgeotiff-1.4.0.ebuild
Gentoo

Contents of /sci-libs/libgeotiff/libgeotiff-1.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Jul 29 16:58:17 2012 UTC (2 years, 1 month ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
Drop alpha/sparc keywords

(Portage version: 2.1.11.5/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libgeotiff/libgeotiff-1.4.0.ebuild,v 1.6 2012/05/29 20:04:00 ranger Exp $
4
5 EAPI=4
6 inherit base autotools
7
8 MY_P=${P/_rc/RC}
9
10 DESCRIPTION="Library for reading TIFF files with embedded tags for geographic (cartographic) information"
11 HOMEPAGE="http://geotiff.osgeo.org/"
12 SRC_URI="http://download.osgeo.org/geotiff/${PN}/${MY_P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
17 IUSE="debug doc static-libs"
18
19 RDEPEND="
20 virtual/jpeg
21 >=media-libs/tiff-3.9.1
22 sci-libs/proj
23 sys-libs/zlib"
24
25 DEPEND="${RDEPEND}
26 doc? ( app-doc/doxygen )"
27
28 S=${WORKDIR}/${MY_P/RC*/}
29
30 DOCS=( README ChangeLog )
31
32 src_prepare() {
33 base_src_prepare
34 sed -i \
35 -e "s:-O3::g" \
36 configure.ac || die
37 eautoreconf
38 }
39
40 src_configure() {
41 econf \
42 $(use_enable static-libs static) \
43 --enable-debug=$(use debug && echo yes || echo no) \
44 --with-jpeg="${EPREFIX}"/usr/ \
45 --with-zip="${EPREFIX}"/usr/
46
47 }
48 src_compile() {
49 default
50
51 if use doc; then
52 mkdir -p docs/api
53 cp "${FILESDIR}"/Doxyfile Doxyfile
54 doxygen -u Doxyfile || die "updating doxygen config failed"
55 doxygen Doxyfile || die "docs generation failed"
56 fi
57 }
58
59 src_install() {
60 default
61
62 use doc && dohtml docs/api/*
63 find "${ED}" -name '*.la' -exec rm -f {} +
64 }
65
66 pkg_postinst() {
67 echo
68 ewarn "You should rebuild any packages built against ${PN} by running:"
69 ewarn "# revdep-rebuild"
70 ewarn "or using preserved-rebuild features of portage-2.2:"
71 ewarn "# emerge @preserved-rebuild"
72 echo
73 }

  ViewVC Help
Powered by ViewVC 1.1.20