Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 650322
Collapse All | Expand All

(-)a/media-libs/openjpeg/openjpeg-2.3.0.ebuild (-18 / +4 lines)
Lines 50-73 multilib_src_configure() { Link Here
50
		)
50
		)
51
51
52
	cmake-utils_src_configure
52
	cmake-utils_src_configure
53
54
	if use static-libs; then
55
		mycmakeargs=(
56
			-DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)"
57
			-DBUILD_TESTING="$(usex test)"
58
			-DBUILD_SHARED_LIBS=OFF
59
			-DBUILD_CODEC="$(usex test)"
60
			)
61
		BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_configure
62
	fi
63
}
53
}
64
54
65
multilib_src_compile() {
55
multilib_src_compile() {
66
	cmake-utils_src_compile
56
	cmake-utils_src_compile
67
68
	if use static-libs; then
69
		BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_compile
70
	fi
71
}
57
}
72
58
73
multilib_src_test() {
59
multilib_src_test() {
Lines 127-135 multilib_src_test() { Link Here
127
}
113
}
128
114
129
multilib_src_install() {
115
multilib_src_install() {
130
	if use static-libs; then
131
		BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_install
132
	fi
133
134
	cmake-utils_src_install
116
	cmake-utils_src_install
117
118
	if ! use static-libs; then
119
		rm -v "${D}"/usr/lib*/lib*.a || die
120
	fi
135
}
121
}

Return to bug 650322