|
|
unpack ${A} | unpack ${A} |
cd "${S}" | cd "${S}" |
| |
epatch "${FILESDIR}/${PN}-1.2.5-imglibs.patch" | epatch "${FILESDIR}/${PN}-1.2.5-imglibs.patch" |
| |
|
sed -i \ |
|
-e 's/FONTCONFIG-CONFIG/FONTCONFIG_CONFIG/' \ |
|
-e 's/FREETYPE-CONFIG/FREETYPE_CONFIG/' \ |
|
configure.in || die 'configure.in not found' |
eautoreconf | eautoreconf |
} | } |
| |
src_compile() { | src_compile() { |
if [[ "$(gcc-major-version)" -gt "3" ]] || \ | if [[ "$(gcc-major-version)" -gt "3" ]] || \ |
|
|
append-flags -fno-inline-functions | append-flags -fno-inline-functions |
fi | fi |
| |
# Disable glitz support as libgdiplus does not use it, and it causes errors | # Disable glitz support as libgdiplus does not use it, and it causes errors |
econf --disable-glitz \ | econf --disable-glitz \ |
|
--disable-dependency-tracking \ |
|
--with-cairo=system \ |
$(use_with exif libexif) \ | $(use_with exif libexif) \ |
$(use_with gif libgif) \ | $(use_with gif libgif) \ |
$(use_with jpeg libjpeg) \ | $(use_with jpeg libjpeg) \ |
$(use_with tiff libtiff) || die "configure failed" | $(use_with tiff libtiff) || die "configure failed" |
| |