96 |
echo "-DBUILD_${feature}=OFF" |
echo "-DBUILD_${feature}=OFF" |
97 |
} |
} |
98 |
|
|
99 |
|
# install cmake opts |
100 |
|
cmake_install() |
101 |
|
{ |
102 |
|
local feature="$1" |
103 |
|
local option="$2" |
104 |
|
echo "-DINSTALL_${feature}=${option}" |
105 |
|
} |
106 |
|
|
107 |
|
# generic cmake opts |
108 |
|
cmake_opt() |
109 |
|
{ |
110 |
|
local feature="$1" |
111 |
|
local option="$2" |
112 |
|
echo "-D${feature}=${option}" |
113 |
|
} |
114 |
|
|
115 |
cmake_src_prepare() |
cmake_src_prepare() |
116 |
{ |
{ |
117 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
130 |
fi |
fi |
131 |
|
|
132 |
cmake \ |
cmake \ |
133 |
|
-DCMAKE_VERBOSE_MAKEFILE=ON \ |
134 |
-DCMAKE_BUILD_TYPE=Release \ |
-DCMAKE_BUILD_TYPE=Release \ |
135 |
-DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr} \ |
-DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr} \ |
136 |
-DLIB_SUFFIX=${libsuffix} \ |
-DLIB_SUFFIX=${libsuffix} \ |
155 |
mmake || die |
mmake || die |
156 |
} |
} |
157 |
|
|
158 |
|
cmake_src_check() |
159 |
|
{ |
160 |
|
#cd ${BUILDDIR}/build |
161 |
|
#mmake -j1 -k check || die |
162 |
|
return 0 |
163 |
|
} |
164 |
|
|
165 |
cmake_src_install() |
cmake_src_install() |
166 |
{ |
{ |
167 |
cd ${BUILDDIR}/build |
cd ${BUILDDIR}/build |
179 |
done |
done |
180 |
} |
} |
181 |
|
|
182 |
export_inherits cmake src_prepare src_compile src_install |
export_inherits cmake src_prepare src_compile src_check src_install |