Lines 94-140
Link Here
|
94 |
autotools-utils_src_prepare |
94 |
autotools-utils_src_prepare |
95 |
} |
95 |
} |
96 |
|
96 |
|
97 |
src_configure() { |
97 |
multilib_src_configure() { |
98 |
append-flags -fno-strict-aliasing |
98 |
append-flags -fno-strict-aliasing |
99 |
type -P gmake &> /dev/null && export GNUMAKE=gmake |
99 |
type -P gmake &> /dev/null && export GNUMAKE=gmake |
100 |
|
100 |
|
101 |
local myeconfargs=( |
101 |
local myeconfargs=( |
102 |
--enable-biarch-config |
102 |
--enable-biarch-config |
103 |
$(use_with bzip2) \ |
103 |
$(use_with bzip2) |
104 |
$(use_with png) |
104 |
$(use_with png) |
|
|
105 |
|
106 |
# avoid using libpng-config |
107 |
LIBPNG_CFLAGS="$($(tc-getPKG_CONFIG) --cflags libpng)" |
108 |
LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
105 |
) |
109 |
) |
106 |
|
110 |
|
107 |
autotools-multilib_src_configure |
111 |
autotools-utils_src_configure |
108 |
} |
112 |
} |
109 |
|
113 |
|
110 |
src_compile() { |
114 |
multilib_src_compile() { |
111 |
autotools-multilib_src_compile |
115 |
default |
112 |
|
116 |
|
113 |
if use utils; then |
117 |
if multilib_build_binaries && use utils; then |
114 |
einfo "Building utils" |
118 |
einfo "Building utils" |
115 |
# fix for Prefix, bug #339334 |
119 |
# fix for Prefix, bug #339334 |
116 |
multilib_for_best_abi autotools-utils_src_compile \ |
120 |
emake \ |
117 |
X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
121 |
X11_PATH="${EPREFIX}/usr/$(get_libdir)" \ |
118 |
FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
122 |
FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" |
119 |
fi |
123 |
fi |
120 |
} |
124 |
} |
121 |
|
125 |
|
122 |
src_install() { |
126 |
multilib_src_install() { |
123 |
autotools-multilib_src_install |
127 |
default |
124 |
|
128 |
|
125 |
if use utils; then |
129 |
if multilib_build_binaries && use utils; then |
126 |
install_utils() { |
130 |
einfo "Installing utils" |
127 |
einfo "Installing utils" |
131 |
rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
128 |
rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die |
132 |
local ft2demo |
129 |
local ft2demo |
133 |
for ft2demo in ../ft2demos-${PV}/bin/*; do |
130 |
for ft2demo in ../ft2demos-${PV}/bin/*; do |
134 |
./libtool --mode=install $(type -P install) -m 755 "$ft2demo" \ |
131 |
"${BUILD_DIR}"/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \ |
135 |
"${ED}"/usr/bin || die |
132 |
"${ED}"/usr/bin || die |
136 |
done |
133 |
done |
|
|
134 |
} |
135 |
multilib_for_best_abi install_utils |
136 |
fi |
137 |
fi |
|
|
138 |
} |
137 |
|
139 |
|
|
|
140 |
multilib_src_install_all() { |
138 |
if use fontforge; then |
141 |
if use fontforge; then |
139 |
# Probably fontforge needs less but this way makes things simplier... |
142 |
# Probably fontforge needs less but this way makes things simplier... |
140 |
einfo "Installing internal headers required for fontforge" |
143 |
einfo "Installing internal headers required for fontforge" |
Lines 148-151
Link Here
|
148 |
|
151 |
|
149 |
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO} |
152 |
dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO} |
150 |
use doc && dohtml -r docs/* |
153 |
use doc && dohtml -r docs/* |
|
|
154 |
|
155 |
prune_libtool_files --all |
151 |
} |
156 |
} |