|
Lines 5-12
Link Here
|
| 5 |
WANT_AUTOCONF="2.5" |
5 |
WANT_AUTOCONF="2.5" |
| 6 |
inherit autotools distutils eutils perl-module toolchain-funcs |
6 |
inherit autotools distutils eutils perl-module toolchain-funcs |
| 7 |
|
7 |
|
| 8 |
IUSE="curl debug doc fits geos gif gml hdf hdf5 jpeg jpeg2k mysql netcdf \ |
8 |
IUSE="curl debug doc ecw fits geos gif gml hdf hdf5 jpeg jpeg2k mysql netcdf \ |
| 9 |
odbc png ogdi perl postgres python ruby sqlite threads" |
9 |
occi odbc png ogdi perl postgres python ruby sqlite threads" |
| 10 |
|
10 |
|
| 11 |
DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)" |
11 |
DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)" |
| 12 |
HOMEPAGE="http://www.gdal.org/" |
12 |
HOMEPAGE="http://www.gdal.org/" |
|
Lines 15-22
Link Here
|
| 15 |
SLOT="0" |
15 |
SLOT="0" |
| 16 |
LICENSE="MIT" |
16 |
LICENSE="MIT" |
| 17 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
17 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
| 18 |
# need to get these arches updated on several libs first |
|
|
| 19 |
#KEYWORDS="~alpha ~hppa" |
| 20 |
|
18 |
|
| 21 |
RDEPEND=">=sys-libs/zlib-1.1.4 |
19 |
RDEPEND=">=sys-libs/zlib-1.1.4 |
| 22 |
>=media-libs/tiff-3.7.0 |
20 |
>=media-libs/tiff-3.7.0 |
|
Lines 43-49
Link Here
|
| 43 |
mysql? ( virtual/mysql ) |
41 |
mysql? ( virtual/mysql ) |
| 44 |
odbc? ( dev-db/unixODBC ) |
42 |
odbc? ( dev-db/unixODBC ) |
| 45 |
geos? ( >=sci-libs/geos-2.2.1 ) |
43 |
geos? ( >=sci-libs/geos-2.2.1 ) |
| 46 |
sqlite? ( >=dev-db/sqlite-3 )" |
44 |
sqlite? ( >=dev-db/sqlite-3 ) |
|
|
45 |
ecw? ( sci-libs/libecwj2 )" |
| 47 |
|
46 |
|
| 48 |
DEPEND="${RDEPEND} |
47 |
DEPEND="${RDEPEND} |
| 49 |
ruby? ( >=dev-lang/swig-1.3.28 ) |
48 |
ruby? ( >=dev-lang/swig-1.3.28 ) |
|
Lines 101-109
Link Here
|
| 101 |
$(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \ |
100 |
$(use_with netcdf) $(use_with hdf hdf4) $(use_with geos) \ |
| 102 |
$(use_with sqlite sqlite3) $(use_with jpeg2k jasper) $(use_with odbc) \ |
101 |
$(use_with sqlite sqlite3) $(use_with jpeg2k jasper) $(use_with odbc) \ |
| 103 |
$(use_with gml xerces) $(use_with hdf5) $(use_with curl) \ |
102 |
$(use_with gml xerces) $(use_with hdf5) $(use_with curl) \ |
| 104 |
$(use_enable debug)" |
103 |
$(use_with ecw) $(use_enable debug)" |
| 105 |
|
104 |
|
| 106 |
# It can't find this |
105 |
# It can't find this |
|
|
106 |
if useq occi ; then |
| 107 |
use_conf="--with-oci-include=${ORACLE_HOME}/include \ |
| 108 |
--with-oci-lib=${ORACLE_HOME}/lib ${use_conf}" |
| 109 |
fi |
| 110 |
|
| 107 |
if useq ogdi ; then |
111 |
if useq ogdi ; then |
| 108 |
use_conf="--with-ogdi=/usr/$(get_libdir) ${use_conf}" |
112 |
use_conf="--with-ogdi=/usr/$(get_libdir) ${use_conf}" |
| 109 |
fi |
113 |
fi |
|
Lines 123-128
Link Here
|
| 123 |
${use_conf}" |
127 |
${use_conf}" |
| 124 |
fi |
128 |
fi |
| 125 |
|
129 |
|
|
|
130 |
# Force use of largefiles |
| 131 |
append-flags "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
| 132 |
|
| 126 |
# Fix doc path just in case |
133 |
# Fix doc path just in case |
| 127 |
sed -i -e "s:@exec_prefix@/doc:/usr/share/doc/${PF}/html:g" \ |
134 |
sed -i -e "s:@exec_prefix@/doc:/usr/share/doc/${PF}/html:g" \ |
| 128 |
GDALmake.opt.in || die "sed gdalmake.opt failed" |
135 |
GDALmake.opt.in || die "sed gdalmake.opt failed" |