aboutsummaryrefslogtreecommitdiff
blob: 44a2df3cb8b165d105f1269037f99f87c15619cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

src_prepare() {
	default

	sed -i \
		-e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \
		configure || die "Failed to re-enable static support"
}

src_configure() {
	local myconf=(
		--without-xz
		--with-zlib
		--without-openssl
		--disable-python
		--disable-tools
		--enable-static
	)

	gkconf "${myconf[@]}"
}

src_install() {
	default

	# remove hardcoded $BROOT
	sed -i \
		-e 's/-L\/[^ ]*/-L${libdir}/' \
		"${D}"/usr/lib*/pkgconfig/*.pc \
		|| die

	rm -rf \
		"${D}"/usr/share/
}