/[gentoo-x86]/sci-geosciences/grass/grass-5.4.0.ebuild
Gentoo

Contents of /sci-geosciences/grass/grass-5.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Tue May 4 10:52:10 2010 UTC (9 years, 9 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Update install approach. Install .pc file. Drop old.
(Portage version: 2.2_rc67/cvs/Linux 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/sci-geosciences/grass/grass-5.4.0.ebuild,v 1.15 2008/06/24 07:45:51 nerdboy Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="An open-source GIS with raster and vector functionality"
8 HOMEPAGE="http://grass.itc.it/"
9 SRC_URI="http://grass.itc.it/grass54/source/${P}.tar.gz
10 http://grass.meteo.uni.wroc.pl/grass54/source/${P}.tar.gz
11 http://grass.ibiblio.org/grass54/source/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 sparc x86"
16 IUSE="tk png jpeg tiff postgres odbc motif gdal mysql blas lapack X fftw truetype nls opengl"
17
18 RDEPEND=">=sys-libs/zlib-1.1.4
19 >=sys-libs/ncurses-5.3
20 >=sys-libs/gdbm-1.8.0
21 virtual/man
22 >=sci-libs/proj-4.4.7
23 blas? ( virtual/blas )
24 lapack? ( virtual/lapack )
25 fftw? ( =sci-libs/fftw-2* )
26 gdal? ( >=sci-libs/gdal-1.2.6 )
27 jpeg? ( media-libs/jpeg )
28 tiff? ( media-libs/tiff )
29 png? ( >=media-libs/libpng-1.2.2 )
30 mysql? ( virtual/mysql )
31 odbc? ( >=dev-db/unixODBC-2.0.6 )
32 postgres? ( >=virtual/postgresql-server-7.3 )
33 nls? ( x11-terms/mlterm )
34 tk? ( >=dev-lang/tk-8.3.4 )
35 truetype? ( >=media-libs/freetype-2.0.0 )
36 motif? ( x11-libs/openmotif )
37 X? (
38 x11-libs/libXmu
39 x11-libs/libXext
40 x11-libs/libXp
41 x11-libs/libX11
42 x11-libs/libXt
43 x11-libs/libSM
44 x11-libs/libICE
45 x11-libs/libXpm
46 x11-libs/libXaw
47 )"
48
49 DEPEND="${RDEPEND}
50 >=sys-devel/make-3.80
51 >=sys-devel/flex-2.5.4a
52 >=sys-devel/bison-1.35
53 >=sys-devel/gcc-3.2.2
54 X? (
55 x11-proto/xproto
56 x11-proto/xextproto
57 )"
58
59 src_unpack() {
60 unpack ${A}
61
62 cd "${S}"
63 einfo "Patching configure..."
64 sed -i -e "s:relid':relid:g" configure || die "sed blew chunks"
65 }
66
67 src_compile() {
68 MYCONF="--prefix=${D}usr --host=${CHOST} --infodir=${D}usr/share/info \
69 --libdir=${D}usr/$(get_libdir) --mandir=${D}usr/share/man \
70 --enable-shared --with-cxx"
71
72 use truetype \
73 && MYCONF="${MYCONF} --with-freetype \
74 --with-freetype-includes=/usr/include/freetype2 \
75 --with-freetype-libs=/usr/lib" \
76 || MYCONF="${MYCONF} --without-freetype"
77
78 use gdal \
79 && MYCONF="${MYCONF} --with-gdal=/usr/bin/gdal-config" \
80 || MYCONF="${MYCONF} --without-gdal"
81
82 use mysql \
83 && MYCONF="${MYCONF} --with-mysql --with-mysql-includes=/usr/include/mysql \
84 --with-mysql-libs=/usr/lib/mysql" \
85 || MYCONF="${MYCONF} --without-mysql"
86
87 mkdir ./grass-build
88 cd ./grass-build
89
90 ../configure ${MYCONF} \
91 `use_with X` \
92 `use_with readline` \
93 `use_with tk tcltk` \
94 `use_with postgres` \
95 `use_with motif` \
96 `use_with blas` \
97 `use_with lapack` \
98 `use_with fftw` \
99 `use_with jpeg` \
100 `use_with png` \
101 `use_with tiff` \
102 `use_with odbc` \
103 `use_with nls` \
104 `use_enable amd64 64bit` \
105 `use_with opengl` || die "Error: configure failed!"
106 emake -j1 || die "Error: emake failed!"
107 }
108
109 src_install() {
110 cd "${WORKDIR}"/${P}/grass-build
111 make DESTDIR="${D}" install \
112 || die "Error: make install failed!"
113 sed -i "s:^GISBASE=.*$:GISBASE=/usr/grass54:" \
114 "${D}"usr/bin/grass54
115 # Install grass always in one directory
116 mv "${D}"usr/${P} "${D}"usr/grass54
117 }

  ViewVC Help
Powered by ViewVC 1.1.20