Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 487138 | Differences between
and this patch

Collapse All | Expand All

(-)freetype-2.5.0.1.ebuild (-20 / +25 lines)
Lines 4-10 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit autotools-multilib flag-o-matic multilib
7
inherit autotools-multilib flag-o-matic multilib toolchain-funcs
8
8
9
MY_PV="${PV%.*}"
9
MY_PV="${PV%.*}"
10
10
Lines 106-112 Link Here
106
	autotools-utils_src_prepare
106
	autotools-utils_src_prepare
107
}
107
}
108
108
109
src_configure() {
109
multilib_src_configure() {
110
	append-flags -fno-strict-aliasing
110
	append-flags -fno-strict-aliasing
111
	type -P gmake &> /dev/null && export GNUMAKE=gmake
111
	type -P gmake &> /dev/null && export GNUMAKE=gmake
112
112
Lines 114-152 Link Here
114
		--enable-biarch-config
114
		--enable-biarch-config
115
		$(use_with bzip2) \
115
		$(use_with bzip2) \
116
		$(use_with png)
116
		$(use_with png)
117
118
		# avoid using libpng-config
119
		LIBPNG_CFLAGS="$($(tc-getPKG_CONFIG) --cflags libpng)"
120
		LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)"
117
	)
121
	)
118
122
119
	autotools-multilib_src_configure
123
	autotools-utils_src_configure
120
}
124
}
121
125
122
src_compile() {
126
multilib_src_compile() {
123
	autotools-multilib_src_compile
127
	default
124
128
125
	if use utils; then
129
	if multilib_build_binaries && use utils; then
126
		einfo "Building utils"
130
		einfo "Building utils"
127
		# fix for Prefix, bug #339334
131
		# fix for Prefix, bug #339334
128
		multilib_for_best_abi autotools-utils_src_compile \
132
		emake \
129
			X11_PATH="${EPREFIX}/usr/$(get_libdir)" \
133
			X11_PATH="${EPREFIX}/usr/$(get_libdir)" \
130
			FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${MY_PV}"
134
			FT2DEMOS=1 TOP_DIR_2="${WORKDIR}/ft2demos-${MY_PV}"
131
	fi
135
	fi
132
}
136
}
133
137
134
src_install() {
138
multilib_src_install() {
135
	autotools-multilib_src_install
139
	default
136
140
137
	if use utils; then
141
	if multilib_build_binaries && use utils; then
138
		install_utils() {
142
		einfo "Installing utils"
139
			einfo "Installing utils"
143
		rm "${WORKDIR}"/ft2demos-${MY_PV}/bin/README || die
140
			rm "${WORKDIR}"/ft2demos-${MY_PV}/bin/README || die
144
		local ft2demo
141
			local ft2demo
145
		for ft2demo in ../ft2demos-${MY_PV}/bin/*; do
142
			for ft2demo in ../ft2demos-${MY_PV}/bin/*; do
146
			./libtool --mode=install $(type -P install) -m 755 "$ft2demo" \
143
				"${BUILD_DIR}"/libtool --mode=install $(type -P install) -m 755 "$ft2demo" \
147
				"${ED}"/usr/bin || die
144
					"${ED}"/usr/bin || die
148
		done
145
			done
146
		}
147
		multilib_for_best_abi install_utils
148
	fi
149
	fi
150
}
149
151
152
multilib_src_install_all() {
150
	if use fontforge; then
153
	if use fontforge; then
151
		# Probably fontforge needs less but this way makes things simplier...
154
		# Probably fontforge needs less but this way makes things simplier...
152
		einfo "Installing internal headers required for fontforge"
155
		einfo "Installing internal headers required for fontforge"
Lines 160-163 Link Here
160
163
161
	dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO}
164
	dodoc docs/{CHANGES,CUSTOMIZE,DEBUG,*.txt,PROBLEMS,TODO}
162
	use doc && dohtml -r docs/*
165
	use doc && dohtml -r docs/*
166
167
	prune_libtool_files --all
163
}
168
}

Return to bug 487138