101 |
{ |
{ |
102 |
local feature="$1" |
local feature="$1" |
103 |
local option="$2" |
local option="$2" |
104 |
echo "-DINSTALL_${feature}=\"${option}\"" |
echo "-DINSTALL_${feature}=${option}" |
105 |
} |
} |
106 |
|
|
107 |
# generic cmake opts |
# generic cmake opts |
109 |
{ |
{ |
110 |
local feature="$1" |
local feature="$1" |
111 |
local option="$2" |
local option="$2" |
112 |
echo "-D${feature}=\"${option}\"" |
echo "-D${feature}=${option}" |
113 |
} |
} |
114 |
|
|
115 |
cmake_src_prepare() |
cmake_src_prepare() |
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} \ |