131 |
{ |
{ |
132 |
local configure_opts="$@" |
local configure_opts="$@" |
133 |
local default_opts |
local default_opts |
134 |
|
[[ -n ${CMAKE_SRCDIR} ]] || local CMAKE_SRCDIR |
135 |
|
[[ -n ${CMAKE_BUILDDIR} ]] || local CMAKE_BUILDDIR |
136 |
|
|
137 |
# disable colors if requested |
# disable colors if requested |
138 |
if [[ ${NOCOLORS} = true ]] |
if [[ ${NOCOLORS} = true ]] |
180 |
|
|
181 |
cmake_setup_builddir() |
cmake_setup_builddir() |
182 |
{ |
{ |
183 |
|
[[ -n ${CMAKE_BUILDDIR} ]] || local CMAKE_BUILDDIR |
184 |
|
|
185 |
if [[ ${MULTILIB_BUILD} = true ]] |
if [[ ${MULTILIB_BUILD} = true ]] |
186 |
then |
then |
187 |
: ${CMAKE_BUILDDIR="${BUILDDIR}/build-$(mabi)"} |
: ${CMAKE_BUILDDIR="${BUILDDIR}/build-$(mabi)"} |
194 |
|
|
195 |
cmake_mmake() |
cmake_mmake() |
196 |
{ |
{ |
197 |
|
[[ -n ${CMAKE_BUILDDIR} ]] || local CMAKE_BUILDDIR |
198 |
|
|
199 |
if [[ ${MULTILIB_BUILD} = true ]] |
if [[ ${MULTILIB_BUILD} = true ]] |
200 |
then |
then |
201 |
: ${CMAKE_BUILDDIR="${BUILDDIR}/build-$(mabi)"} |
: ${CMAKE_BUILDDIR="${BUILDDIR}/build-$(mabi)"} |
208 |
|
|
209 |
cmake_src_compile() |
cmake_src_compile() |
210 |
{ |
{ |
211 |
|
[[ -n ${CMAKE_SRCDIR} ]] || local CMAKE_SRCDIR |
212 |
|
|
213 |
: ${CMAKE_SRCDIR="${SRCDIR}"} |
: ${CMAKE_SRCDIR="${SRCDIR}"} |
214 |
cd ${CMAKE_SRCDIR} |
cd ${CMAKE_SRCDIR} |
215 |
|
|
220 |
|
|
221 |
cmake_src_check() |
cmake_src_check() |
222 |
{ |
{ |
223 |
|
#[[ -n ${CMAKE_BUILDDIR} ]] || local CMAKE_BUILDDIR |
224 |
|
# |
225 |
#: ${CMAKE_BUILDDIR="${BUILDDIR}/build"} |
#: ${CMAKE_BUILDDIR="${BUILDDIR}/build"} |
226 |
#cd ${CMAKE_BUILDDIR} |
#cd ${CMAKE_BUILDDIR} |
227 |
#mmake -j1 -k check || die |
#mmake -j1 -k check || die |
230 |
|
|
231 |
cmake_multilib_src_check() |
cmake_multilib_src_check() |
232 |
{ |
{ |
233 |
|
#[[ -n ${CMAKE_BUILDDIR} ]] || local CMAKE_BUILDDIR |
234 |
|
# |
235 |
#local abi |
#local abi |
236 |
#local abis_to_run="${MULTILIB_ABIS}" |
#local abis_to_run="${MULTILIB_ABIS}" |
237 |
# |
# |
248 |
|
|
249 |
cmake_src_install() |
cmake_src_install() |
250 |
{ |
{ |
251 |
|
[[ -n ${CMAKE_SRCDIR} ]] || local CMAKE_SRCDIR |
252 |
|
|
253 |
: ${CMAKE_SRCDIR="${SRCDIR}"} |
: ${CMAKE_SRCDIR="${SRCDIR}"} |
254 |
|
|
255 |
cmake_mmake DESTDIR=${BINDIR} install || die |
cmake_mmake DESTDIR=${BINDIR} install || die |
270 |
{ |
{ |
271 |
local abi |
local abi |
272 |
local abis_to_run="${MULTILIB_ABIS}" |
local abis_to_run="${MULTILIB_ABIS}" |
273 |
|
[[ -n ${CMAKE_SRCDIR} ]] || local CMAKE_SRCDIR |
274 |
|
|
275 |
cmake_mmake DESTDIR=${BINDIR} install || die |
cmake_mmake DESTDIR=${BINDIR} install || die |
276 |
|
|