Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 39942
Collapse All | Expand All

(-)gdal-1.2.5.ebuild (-20 / +20 lines)
Lines 29-40 Link Here
29
	jasper? ( media-libs/jasper ) 
29
	jasper? ( media-libs/jasper ) 
30
	odbc? ( dev-db/unixODBC )
30
	odbc? ( dev-db/unixODBC )
31
	sqlite? ( dev-db/sqlite )
31
	sqlite? ( dev-db/sqlite )
32
	hdf4? ( dev-libs/hdf )"
32
	hdf4? ( dev-libs/hdf )
33
33
	netcdf? ( app-sci/netcdf )"
34
# DEPEND=${DEPEND}"netcdf? ( app-sci/netcdf )"
35
34
36
src_compile() {
35
src_compile() {
37
	MYCONF=" --prefix=${D}/usr "
36
	MYCONF=" --prefix=${D}/usr "
37
38
# Python always wants to go directly to /usr/lib not sandbox
38
# Python always wants to go directly to /usr/lib not sandbox
39
	if use python; then
39
	if use python; then
40
		python_version
40
		python_version
Lines 47-58 Link Here
47
	else
47
	else
48
		MYCONF="${MYCONF} --with-cfitsio=no "
48
		MYCONF="${MYCONF} --with-cfitsio=no "
49
	fi
49
	fi
50
# Netcdf currently breaks build
50
51
#	if use netcdf; then
51
# Netcdf has symbol collisions with HDF4 -- can't use both
52
#		MYCONF="${MYCONF} --with-netcdf=/usr "
52
	if use netcdf; then
53
#	else
53
		MYCONF="${MYCONF} --with-netcdf=/usr --with-hdf4=no "
54
		MYCONF="${MYCONF} --with-netcdf=no "
54
	else
55
#	fi
55
		if use hdf4; then
56
			MYCONF="${MYCONF} --with-netcdf=no --with-hdf4=yes "
57
		else
58
			MYCONF="${MYCONF} --with-netcdf=no --with-hdf4=no "
59
		fi
60
	fi
56
	if use png; then
61
	if use png; then
57
		MYCONF="${MYCONF} --with-png=/usr/lib "
62
		MYCONF="${MYCONF} --with-png=/usr/lib "
58
	else
63
	else
Lines 61-72 Link Here
61
	if use tiff; then
66
	if use tiff; then
62
		MYCONF="${MYCONF} --with-libtiff=/usr/lib "
67
		MYCONF="${MYCONF} --with-libtiff=/usr/lib "
63
	else
68
	else
64
		MYCONF="${MYCONF} --with-libtiff=no "
69
		MYCONF="${MYCONF} --with-libtiff=internal "
65
	fi
70
	fi
66
	if use geotiff; then
71
	if use geotiff; then
67
		MYCONF="${MYCONF} --with-geotiff=/usr/lib "
72
		MYCONF="${MYCONF} --with-geotiff=/usr/lib "
68
	else
73
	else
69
		MYCONF="${MYCONF} --with-geotiff=no "
74
		MYCONF="${MYCONF} --with-geotiff=internal "
70
	fi
75
	fi
71
	if use jpeg; then
76
	if use jpeg; then
72
		MYCONF="${MYCONF} --with-jpeg=/usr/lib "
77
		MYCONF="${MYCONF} --with-jpeg=/usr/lib "
Lines 83-93 Link Here
83
	else
88
	else
84
		MYCONF="${MYCONF} --with-ogdi=no "
89
		MYCONF="${MYCONF} --with-ogdi=no "
85
	fi
90
	fi
86
	if use hdf4; then
87
		MYCONF="${MYCONF} --with-hdf4=yes "
88
	else
89
		MYCONF="${MYCONF} --with-hdf4=no "
90
	fi
91
	if use jasper; then
91
	if use jasper; then
92
		MYCONF="${MYCONF} --with-jasper=/usr/lib "
92
		MYCONF="${MYCONF} --with-jasper=/usr/lib "
93
	else
93
	else
Lines 118-132 Link Here
118
	else
118
	else
119
		MYCONF="${MYCONF} --with-geos=no "
119
		MYCONF="${MYCONF} --with-geos=no "
120
	fi
120
	fi
121
	echo ${MYCONF}
121
	./configure ${MYCONF} || die "Error: configure failed!"
122
	./configure ${MYCONF} || die "Error: econf failed!"
123
	emake -j1 || die "Error: emake failed!"
122
	emake -j1 || die "Error: emake failed!"
124
}
123
}
125
124
126
src_install() {
125
src_install() {
127
	make install \
126
	einstall || die "Error: einstall failed!"
128
		|| die "Error: make install failed!"
127
129
# TNX to "acrux" <acrux@crux-it.org>
128
# TNX to "acrux" <acrux@crux-it.org>
130
	sed -i "s|${D}/usr|/usr|g" ${D}/usr/bin/gdal-config \
129
	sed -i "s|${D}/usr|/usr|g" ${D}/usr/bin/gdal-config \
131
		|| die "Error: failed to clean-up gdal-config"
130
		|| die "Error: failed to clean-up gdal-config"
131
	dodoc ChangeLog NEWS VERSION
132
}
132
}

Return to bug 39942