Lines 51-56
Link Here
|
51 |
} |
51 |
} |
52 |
|
52 |
|
53 |
multilib_src_configure() { |
53 |
multilib_src_configure() { |
|
|
54 |
# setup a default FONT path that has a chance of existing using corefonts, |
55 |
# as to make it more useful with e.g. gnuplot |
56 |
local fontpath="${EPREFIX}/usr/share/fonts/corefonts" |
57 |
# like with fontconfig, try to use fonts from the host OS, because that's |
58 |
# beneficial for the user |
59 |
use prefix && case ${CHOST} in |
60 |
*-darwin*) |
61 |
fontpath+=":/Library/Fonts:/System/Library/Fonts" |
62 |
;; |
63 |
*-solaris*) |
64 |
[[ -d /usr/X/lib/X11/fonts/TrueType ]] && \ |
65 |
fontpath+=":/usr/X/lib/X11/fonts/TrueType" |
66 |
[[ -d /usr/X/lib/X11/fonts/Type1 ]] && \ |
67 |
fontpath+=":/usr/X/lib/X11/fonts/Type1" |
68 |
# OpenIndiana |
69 |
[[ -d /usr/share/fonts/X11/Type1 ]] && \ |
70 |
fontpath+=":/usr/share/fonts/X11/Type1" |
71 |
;; |
72 |
*-linux-gnu) |
73 |
[[ -d /usr/share/fonts/truetype ]] && \ |
74 |
fontpath+=":/usr/share/fonts/truetype" |
75 |
;; |
76 |
esac |
77 |
append-cppflags "-DDEFAULT_FONTPATH=\\\"${fontpath}\\\"" |
78 |
|
54 |
export ac_cv_lib_z_deflate=$(usex zlib) |
79 |
export ac_cv_lib_z_deflate=$(usex zlib) |
55 |
# we aren't actually {en,dis}abling X here ... the configure |
80 |
# we aren't actually {en,dis}abling X here ... the configure |
56 |
# script uses it just to add explicit -I/-L paths which we |
81 |
# script uses it just to add explicit -I/-L paths which we |