Debian Codegraph @

src/win32/build-depkgs-mingw-w64

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # Copyright (C) 2000-2022 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 # This file may help you build the dependency packages that
7 # are needed to cross compile the Win64 bit version of the Bacula
8 # File daemon. This file is provided as is, and we don't guarantee
9 # that it will work. We run it only on Ubuntu Hardy. Trying to use
10 # it on any other GNU/Linux distro will probably require changes.
11 #
12 # This file is driven by the parameters that are defined in
13 # the file External-mingw-w64
14 #
15
16 usagescip-shell shell bacula 15.0.3-5 usage().()
17 {
18 echoscip-shell system . . echo. "usage: $0 [-h] [-C] [<dependency 1>] [<dependency 2>] ..."
19 echoscip-shell system . . echo. " -h Displays this usage"
20 echoscip-shell system . . echo. " -C Clobbers (overwrites) the source code by "
21 echoscip-shell system . . echo. " reextracting the archive and reapplying the"
22 echoscip-shell system . . echo. " patches."
23 echoscip-shell system . . echo. ""
24 echoscip-shell system . . echo. "<dependency N> Optional dependency, If none are given then all"
25 echoscip-shell system . . echo. " of them will be built."
26 echoscip-shell system . . echo. ""
27 echoscip-shell system . . echo. "Valid dependencies are:"
28 grepscip-shell system . . grep. -v '^#' < External-mingw-w64 | cutscip-shell system . . cut. -d'|' -f1 | cutscip-shell system . . cut. -d'_' -f1 | trscip-shell system . . tr. A-Z a-z | sortscip-shell system . . sort. -u | awkscip-shell system . . awk. '{ print " " $1 }'
29 }
30
31 CLOBBER_SOURCE=
32
33 while getopts "hHC" opt; do
34 case ${opt} in
35 H|h|\?) usagescip-shell shell bacula 15.0.3-5 usage().;exit 1;;
36 C) CLOBBER_SOURCE=true;;
37 esac
38 done
39
40 [scip-shell system . . `[`. ${OPTIND} -gt 1 ] && shift `exprscip-shell system . . expr. ${OPTIND} - 1`
41
42 cwd=`pwdscip-shell system . . pwd.`
43 cd `dirnamescip-shell system . . dirname. $0`
44 SCRIPT_DIR=`pwdscip-shell system . . pwd.`
45
46 cd ../../..
47 TOP_DIR=`pwdscip-shell system . . pwd.`
48 TOP_DIR=${DEPKGS:-${TOP_DIR}}
49
50 if [scip-shell system . . `[`. -e ${TOP_DIR}/cross-tools/mingw-w64/bin/x86_64-pc-mingw32-gcc ]
51 then
52 cd ${TOP_DIR}/cross-tools/mingw-w64/bin
53 BIN_DIR=`pwdscip-shell system . . pwd.`
54
55 elif whichscip-shell system . . which. x86_64-w64-mingw32-gcc > /dev/nullscip-shell filesystem . . `/dev/null`.; then
56 BIN_DIR=
57 BASE=x86_64-w64-mingw32
58
59 else
60 echoscip-shell system . . echo. "The GCC cross compiler is not installed."
61 echoscip-shell system . . echo. "You must run build-win64-cross-tools first"
62 exit 1
63 fi
64
65 [scip-shell system . . `[`. ! -e ${TOP_DIR}/depkgs-mingw-w64 ] && mkdirscip-shell system . . mkdir. ${TOP_DIR}/depkgs-mingw-w64
66 cd ${TOP_DIR}/depkgs-mingw-w64
67 DEPPKG_DIR=`pwdscip-shell system . . pwd.`
68 DEPKGS_DIR=`pwdscip-shell system . . pwd.`
69
70 export PATH=${BIN_DIR}:${PATH}
71
72 [scip-shell system . . `[`. ! -e bin ] && mkdirscip-shell system . . mkdir. bin
73 [scip-shell system . . `[`. ! -e src ] && mkdirscip-shell system . . mkdir. src
74 [scip-shell system . . `[`. ! -e include ] && mkdirscip-shell system . . mkdir. include
75 [scip-shell system . . `[`. ! -e lib ] && mkdirscip-shell system . . mkdir. lib
76
77 OLD_IFS=${IFS};IFS="|";
78 while read package url dir mkd; do
79 echoscip-shell system . . echo. "Got package ${package}"
80 case ${package} in
81 \#*) ;;
82 *) eval "URL_${package}=${url};DIR_${package}=${dir};MKD_${package}=${mkd}";;
83 esac
84 done < ${SCRIPT_DIR}/External-mingw-w64
85 IFS=${OLD_IFS};unset OLD_IFS
86
87 get_sourcescip-shell shell bacula 15.0.3-5 get_source().()
88 {
89 URL=$1
90 SRC_DIR=$2
91 MAKE_DIR=$3
92 echoscip-shell system . . echo. "Processing ${URL}"
93 ARCHIVE=`basenamescip-shell system . . basename. ${URL}`
94
95 case ${ARCHIVE} in
96 *.tar.gz) ARCHIVER="tar xzf"; [scip-shell system . . `[`. -z "${SRC_DIR}" ] && SRC_DIR=`exprscip-shell system . . expr. "${ARCHIVE}" : '\(.*\)\.tar\.gz'`;;
97 *.tar.bz2) ARCHIVER="tar xjf"; [scip-shell system . . `[`. -z "${SRC_DIR}" ] && SRC_DIR=`exprscip-shell system . . expr. "${ARCHIVE}" : '\(.*\)\.tar\.bz2'`;;
98 *.zip) ARCHIVER="unzip -d ."; [scip-shell system . . `[`. -z "${SRC_DIR}" ] && SRC_DIR=`exprscip-shell system . . expr. "${ARCHIVE}" : '\(.*\)\.zip'`;;
99 *.exe) ARCHIVER=""; [scip-shell system . . `[`. -z "${SRC_DIR}" ] && SRC_DIR=`exprscip-shell system . . expr. "${ARCHIVE}" : '\(.*\)\.zip'`;;
100 *.xz) ARCHIVER="tar xf"; [scip-shell system . . `[`. -z "${SRC_DIR}" ] && SRC_DIR=`exprscip-shell system . . expr. "${ARCHIVE}" : '\(.*\)\.tar\.xz'`;;
101 *) echoscip-shell system . . echo. Unsupported archive type - $ARCHIVE; exit 1;;
102 esac
103
104 cd ${DEPPKG_DIR}/src
105
106 if [scip-shell system . . `[`. ! -e "${ARCHIVE}" ]
107 then
108 echoscip-shell system . . echo. Downloading "${URL}"
109 if wget --passive-ftp "${URL}"
110 then
111 :
112 else
113 echoscip-shell system . . echo. Unable to download ${ARCHIVE}
114 exit 1
115 fi
116 fi
117
118 [scip-shell system . . `[`. -z "${ARCHIVER}" ] && return 0
119
120 if [scip-shell system . . `[`. ! -e "${SRC_DIR}" -o "${CLOBBER_SOURCE}" = "true" ]
121 then
122 rmscip-shell system . . rm. -rf ${SRC_DIR}
123 echoscip-shell system . . echo. Extracting ${ARCHIVE}
124 if [scip-shell system . . `[`. "${MAKE_DIR}" = "true" ]
125 then
126 mkdirscip-shell system . . mkdir. ${SRC_DIR}
127 cd ${SRC_DIR}
128 ${ARCHIVER} ../${ARCHIVE} > ../${ARCHIVE}.log 2>&1
129 else
130 ${ARCHIVER} ${ARCHIVE} > ${ARCHIVE}.log 2>&1
131 cd ${SRC_DIR}
132 fi
133 return 0
134 fi
135
136 cd ${SRC_DIR}
137 return 1
138 }
139
140 parse_outputscip-shell shell bacula 15.0.3-5 parse_output().()
141 {
142 sedscip-shell system . . sed. -ne '/\\$/Nscip-shell filesystem . . `/\\$/N`.' -e 's/\\\n//' -e 's/\t\+/ /g' -e 's/ \+/ /g' \
143 -e '/ error: /pscip-shell filesystem . . `/ error: /p`.' \
144 -e "s%.*Entering directory[ ]\\+.${DEPPKG_DIR}/\\([^ ]\+\).%Entering \\1%p" \
145 -e "s%.*Leaving directory[ ]\\+.${DEPPKG_DIR}/\\([^ ]\+.\).%Leaving \\1%p" \
146 -e '/gcc \|g\+\+ \|ar /!dscip-shell filesystem . . `/gcc \|g\+\+ \|ar /!d`.' \
147 -e 's/ \(\.\.\/\)\+/ /g' \
148 -e 's/.* \([^ ]\+\(\.c\|\.cpp\|\.cc\|\.cxx\)\)\( .*\|\)$/Compiling \1/p' \
149 -e 's/.* \([^ ]\+\.s\)\( .*\|\)$/Assembling \1/p' \
150 -e 's/.*ar [^ ]\+ \([^ ]\+\)\(\( [^ ]\+\.o\)\+\)/Updating \1 -\2/p' \
151 -e 's/.* -o \([^ ]\+\)\( .*\|\)$/Linking \1/p'
152 }
153
154 do_patchscip-shell shell bacula 15.0.3-5 do_patch().()
155 {
156 PATCH_FILE=${SCRIPT_DIR}/patches/$1; shift
157
158 if patchscip-shell system . . patch. -f -p0 "$@" >>patch.log < ${PATCH_FILE}
159 then
160 :
161 else
162 echoscip-shell system . . echo. "Patch failed - Check `pwdscip-shell system . . pwd.`/patch.log" > /dev/ttyscip-shell filesystem . . `/dev/tty`.
163 exit 1
164 fi
165 }
166
167 do_makescip-shell shell bacula 15.0.3-5 do_make().()
168 {
169 if makescip-shell system . . make. -f "$@" 2>&1
170 then
171 :
172 else
173 echoscip-shell system . . echo. "Make failed - Check `pwdscip-shell system . . pwd.`/make.log" > /dev/ttyscip-shell filesystem . . `/dev/tty`.
174 exit 1
175 fi | teescip-shell system . . tee. -a make.log | parse_outputscip-shell shell bacula 15.0.3-5 parse_output().
176 }
177
178 process_zlibscip-shell shell bacula 15.0.3-5 process_zlib().()
179 {
180 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_ZLIB}" "${DIR_ZLIB}" "${MKD_ZLIB}"
181 then
182 truescip-shell system . . true.
183 fi
184 echoscip-shell system . . echo. Building zlib
185 > make.log
186 do_makescip-shell shell bacula 15.0.3-5 do_make(). win32/Makefile.gcc PREFIX=${BASE}- DESTDIR=${DEPPKG_DIR}/ all
187 echoscip-shell system . . echo. Installing zlib
188 do_makescip-shell shell bacula 15.0.3-5 do_make(). win32/Makefile.gcc PREFIX=${BASE}- DESTDIR=${DEPPKG_DIR}/ LIBRARY_PATH=lib BINARY_PATH=bin INCLUDE_PATH=include SHARED_MODE=1 install
189 }
190
191 process_pcrescip-shell shell bacula 15.0.3-5 process_pcre().()
192 {
193 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_PCRE}" "${DIR_PCRE}" "${MKD_PCRE}"
194 then
195 echoscip-shell system . . echo. Patching PCRE
196 >patch.log
197 do_patchscip-shell shell bacula 15.0.3-5 do_patch(). pcre.patch
198 echoscip-shell system . . echo. Configuring PCRE
199 ./configure CC_FOR_BUILD=gcc \
200 CXX_FOR_BUILD=g++ \
201 --host=${BASE} \
202 --prefix=${DEPPKG_DIR} \
203 --enable-utf8 \
204 --enable-unicode-properties >make.log 2>&1
205 fi
206 echoscip-shell system . . echo. Building PCRE
207 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile PREFIX=${DEPPKG_DIR} all
208 echoscip-shell system . . echo. Installing PCRE
209 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile PREFIX=${DEPPKG_DIR} install
210 }
211
212 process_dbscip-shell shell bacula 15.0.3-5 process_db().()
213 {
214 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_DB}" "${DIR_DB}" "${MKD_DB}"
215 then
216 echoscip-shell system . . echo. "No patch needed for this package"
217 fi
218 cd build_unix
219 ../dist/configure --host=${BASE} --enable-mingw --prefix=${DEPPKG_DIR}
220 > make.log
221 echoscip-shell system . . echo. Building DB
222 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile
223 echoscip-shell system . . echo. Installing DB
224 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile install_setup install_include install_lib
225 }
226
227 process_pthreadsscip-shell shell bacula 15.0.3-5 process_pthreads().()
228 {
229 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_PTHREADS}" "${DIR_PTHREADS}" "${MKD_PTHREADS}"
230 then
231 echoscip-shell system . . echo. "No patch needed for this package"
232 fi
233 echoscip-shell system . . echo. Building pthreads
234 > make.log
235 do_makescip-shell shell bacula 15.0.3-5 do_make(). GNUmakefile CROSS=${BASE}- clean GCE-inlined
236 echoscip-shell system . . echo. Installing pthreads
237 rmscip-shell system . . rm. -rf ${DEPPKG_DIR}/include/pthreads
238 mkdirscip-shell system . . mkdir. ${DEPPKG_DIR}/include/pthreads
239 cpscip-shell system . . cp. -p *.h ${DEPPKG_DIR}/include/pthreads
240 cpscip-shell system . . cp. -p *.dll ${DEPPKG_DIR}/bin
241 cpscip-shell system . . cp. -p *.a ${DEPPKG_DIR}/lib
242 }
243
244 process_opensslscip-shell shell bacula 15.0.3-5 process_openssl().()
245 {
246 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_OPENSSL}" "${DIR_OPENSSL}" "${MKD_OPENSSL}"
247 then
248 echoscip-shell system . . echo. Configuring openssl
249 CROSS_COMPILE=${BASE}- ./Configure --prefix=${DEPPKG_DIR} \
250 shared zlib-dynamic \
251 threads \
252 --with-zlib-include=${DEPPKG_DIR}/include \
253 mingw64 > make.log 2>&1
254 fi
255 echoscip-shell system . . echo. Patching openssl
256 sedscip-shell system . . sed. -i "s;OPENSSLDIR_dev=C:;OPENSSLDIR_dev=;" Makefile
257 sedscip-shell system . . sed. -i "s;OPENSSLDIR_dir=.*;OPENSSLDIR_dir=${DEPPKG_DIR}/openssl;" Makefile
258 echoscip-shell system . . echo. Building openssl
259 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile all
260 echoscip-shell system . . echo. Installing openssl
261 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile -k install_sw install
262 cpscip-shell system . . cp. *.dll ${DEPPKG_DIR}/bin
263 mkdirscip-shell system . . mkdir. -p ${DEPPKG_DIR}/ssl
264 cpscip-shell system . . cp. -f apps/openssl.cnf ${DEPPKG_DIR}/ssl
265 }
266
267 process_lzoscip-shell shell bacula 15.0.3-5 process_lzo().()
268 {
269 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_LZO}" "${DIR_LZO}" "${MKD_LZO}"
270 then
271 sedscip-shell system . . sed. -i s/-lwinmm// configure
272 fi
273 echoscip-shell system . . echo. Building lzo
274 ./configure --host=${BASE} --prefix=${DEPPKG_DIR}/
275 echoscip-shell system . . echo. Installing lzo
276 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile -k PREFIX=${DEPPKG_DIR}/ all
277 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile -k PREFIX=${DEPPKG_DIR}/ install
278 }
279
280 process_qt5scip-shell shell bacula 15.0.3-5 process_qt5().()
281 {
282 # Required libz.dll.a, zlib.h and zconf.h for proper Qt build purpose
283 process_zlibscip-shell shell bacula 15.0.3-5 process_zlib().
284 process_opensslscip-shell shell bacula 15.0.3-5 process_openssl().
285
286 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_Qt5}" "${DIR_Qt5}" "${MKD_Qt5}"
287 then
288 echoscip-shell system . . echo. Patching Qt5
289 fi
290 if [scip-shell system . . `[`. -f done ]; then
291 return
292 fi
293 echoscip-shell system . . echo. "Configuring Qt5"
294 export OPENSSL_LIBS="-lssl -lcrypto"
295 echoscip-shell system . . echo. y | ./configure \
296 -xplatform win32-g++ \
297 -device-option CROSS_COMPILE=/usr/bin/x86_64-w64-mingw32-scip-shell filesystem . . `/usr/bin/x86_64-w64-mingw32-`. \
298 -prefix ${DEPKGS_DIR}/ \
299 -opensource -confirm-license \
300 -no-compile-examples -nomake examples -nomake tests \
301 -skip qtactiveqt -skip qtcharts -skip qtdoc -skip qtlocation \
302 -skip qtremoteobjects -skip qtserialbus -skip qtwebchannel \
303 -skip qtwebview -skip qtandroidextras -skip qtconnectivity \
304 -skip qtgamepad -skip qtmacextras -skip qtpurchasing -skip qtscript \
305 -skip qttranslations -skip qtwebengine -skip qtwinextras \
306 -skip qtdatavis3d -skip qtgraphicaleffects -skip qtmultimedia \
307 -skip qtquickcontrols -skip qtscxml -skip qtspeech \
308 -skip qtvirtualkeyboard -skip qtwebglplugin -skip qtx11extras \
309 -skip qt3d -skip qtcanvas3d -skip qtdeclarative \
310 -skip qtimageformats -skip qtquickcontrols2 -no-opengl \
311 -skip qtsensors -skip qtwayland -skip qtwebsockets -I ${DEPKGS_DIR}/include -L ${DEPKGS_DIR}/lib
312
313 makescip-shell system . . make.
314 makescip-shell system . . make. install
315
316 echoscip-shell system . . echo. "Installing Qt5"
317 # TODO: Not working
318 cd qtbase
319 cpscip-shell system . . cp. -f ./plugins/platforms/qwindows.dll $DEPPKG_DIR/bin
320 cpscip-shell system . . cp. -r ./plugins/platforms $DEPPKG_DIR/bin
321 cpscip-shell system . . cp. -r ./plugins/platforms $DEPPKG_DIR/lib
322 cpscip-shell system . . cp. -rf src/corelib ${DEPPKG_DIR}/src/
323 cpscip-shell system . . cp. -rf src/gui ${DEPPKG_DIR}/src/
324 cpscip-shell system . . cp. -rf src/network ${DEPPKG_DIR}/src/
325 cd $DEPPKG_DIR/src
326 }
327
328
329 process_mingwscip-shell shell bacula 15.0.3-5 process_mingw().()
330 {
331 if testscip-shell system . . test. -f /usr/lib/gcc/${BASE}/*posix/libstdc++-6.dll; then
332 cpscip-shell system . . cp. /usr/lib/gcc/${BASE}/*posix/libstdc++-6.dll ${DEPPKG_DIR}/bin
333 cpscip-shell system . . cp. /usr/lib/gcc/${BASE}/*posix/libgcc*dll ${DEPPKG_DIR}/bin
334 elif testscip-shell system . . test. -f /usr/lib/gcc/${BASE}/*/libstdc++-6.dll; then
335 cpscip-shell system . . cp. /usr/lib/gcc/${BASE}/*/libstdc++-6.dll ${DEPPKG_DIR}/bin
336 cpscip-shell system . . cp. /usr/lib/gcc/${BASE}/*/libgcc*dll ${DEPPKG_DIR}/bin
337 elif testscip-shell system . . test. -f /usr/${BASE}/lib/libstdc++-6.dll; then
338 cpscip-shell system . . cp. /usr/${BASE}/lib/libstdc++-6.dll ${DEPPKG_DIR}/bin
339 cpscip-shell system . . cp. /usr/${BASE}/lib/libgcc*dll ${DEPPKG_DIR}/bin
340 else
341 echoscip-shell system . . echo. "ERROR: Unable to find ${BASE} on this system"
342 fi
343 if testscip-shell system . . test. -f /usr/$BASE/lib/libwinpthread-1.dll; then
344 cpscip-shell system . . cp. /usr/$BASE/lib/libwinpthread-1.dll ${DEPPKG_DIR}/bin
345 fi
346
347 }
348
349 process_mtxscip-shell shell bacula 15.0.3-5 process_mtx().()
350 {
351 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_MTX}" "${DIR_MTX}" "${MKD_MTX}"
352 then
353 echoscip-shell system . . echo. Patching mtx
354 # We can't run configure in a cross-compile environment so we
355 # patch the files to the correct values
356 cpscip-shell system . . cp. -f config.h.in config.h
357 cpscip-shell system . . cp. -f Makefile.in Makefile
358 rmscip-shell system . . rm. -f configure
359 >patch.log
360 do_patchscip-shell shell bacula 15.0.3-5 do_patch(). mtx.patch
361 fi
362 echoscip-shell system . . echo. Building mtx
363 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile prefix=${DEPPKG_DIR} all
364 echoscip-shell system . . echo. Installing mtx
365 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile prefix=${DEPPKG_DIR} install
366 }
367
368 process_mtscip-shell shell bacula 15.0.3-5 process_mt().()
369 {
370 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_MT}" "${DIR_MT}" "${MKD_MT}"
371 then
372 echoscip-shell system . . echo. "Patching mt"
373 >patch.log
374 do_patchscip-shell shell bacula 15.0.3-5 do_patch(). mt.patch
375 fi
376 echoscip-shell system . . echo. "Building mt"
377 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile PREFIX=${DEPPKG_DIR} all
378 echoscip-shell system . . echo. Installing mt
379 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile PREFIX=${DEPPKG_DIR} install
380 }
381
382 process_sedscip-shell shell bacula 15.0.3-5 process_sed().()
383 {
384 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_SED}" "${DIR_SED}" "${MKD_SED}"
385 then
386 echoscip-shell system . . echo. Patching sed
387 >patch.log
388 do_patchscip-shell shell bacula 15.0.3-5 do_patch(). sed.patch
389 echoscip-shell system . . echo. Configuring sed
390 ./configure --host=$BASE \
391 --prefix=${DEPPKG_DIR} \
392 --disable-nls >make.log 2>&1
393 fi
394 echoscip-shell system . . echo. Building sed
395 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile all
396 echoscip-shell system . . echo. Installing sed
397 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile install
398 }
399
400 process_cmd_utilsscip-shell shell bacula 15.0.3-5 process_cmd_utils().()
401 {
402 if get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "${URL_CMD_UTILS}" "${DIR_CMD_UTILS}" "${MKD_CMD_UTILS}"
403 then
404 # echo Patching cmd-utils
405 # >patch.log
406 # do_patch cmd-utils.patch
407 sedscip-shell system . . sed. -i "s:strrchr:NULL;//:" expr64/expr64.cpp
408 echoscip-shell system . . echo. Configuring cmd-utils
409 ./configure --host=$BASE \
410 --prefix=${DEPPKG_DIR} \
411 >make.log 2>&1
412 fi
413 echoscip-shell system . . echo. Building cmd-utils
414 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile
415 echoscip-shell system . . echo. Installing cmd-utils
416 do_makescip-shell shell bacula 15.0.3-5 do_make(). Makefile install
417 }
418
419
420 process_zstdscip-shell shell bacula 15.0.3-5 process_zstd().()
421 {
422 echoscip-shell system . . echo. Installing ZSTD
423 get_sourcescip-shell shell bacula 15.0.3-5 get_source(). "$URL_ZSTD" "$DIR_ZSTD" "$MKD_ZSTD"
424 CC=x86_64-w64-mingw32-gcc makescip-shell system . . make. TARGET_SYSTEM=Windows
425 cpscip-shell system . . cp. lib/libzstd.a $DEPPKG_DIR/lib
426 cpscip-shell system . . cp. lib/*.h $DEPPKG_DIR/include
427 }
428
429
430 if [scip-shell system . . `[`. "$#" -eq 0 ]
431 then
432 process_mingwscip-shell shell bacula 15.0.3-5 process_mingw().
433 process_lzoscip-shell shell bacula 15.0.3-5 process_lzo().
434 process_zlibscip-shell shell bacula 15.0.3-5 process_zlib().
435 # process_pcre
436 # process_pthreads
437 process_opensslscip-shell shell bacula 15.0.3-5 process_openssl().
438 process_qt5scip-shell shell bacula 15.0.3-5 process_qt5().
439 process_sedscip-shell shell bacula 15.0.3-5 process_sed().
440 process_cmd_utilsscip-shell shell bacula 15.0.3-5 process_cmd_utils().
441 process_zstdscip-shell shell bacula 15.0.3-5 process_zstd().
442 # process_mtx
443 # process_mt
444 else
445 for dependency in "$@"
446 do
447 eval "process_${dependency}"
448 done
449 fi
450 #vss
451 #Need to download from Microsoft