File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ DLFCN_WIN32_REPO=" https://github.com/dlfcn-win32/dlfcn-win32.git"
4+ DLFCN_WIN32_COMMIT=" 010969070719fe14435f4b146ecef5e65df0098f"
5+
6+ ffbuild_enabled () {
7+ [[ $TARGET != win* ]] && return -1
8+ return 0
9+ }
10+
11+ ffbuild_dockerbuild () {
12+ git-mini-clone " $DLFCN_WIN32_REPO " " $DLFCN_WIN32_COMMIT " dlfcn-win32
13+ cd dlfcn-win32
14+
15+ mkdir build && cd build
16+
17+ cmake -DCMAKE_TOOLCHAIN_FILE=" $FFBUILD_CMAKE_TOOLCHAIN " -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=" $FFBUILD_PREFIX " \
18+ -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF ..
19+ make -j$( nproc)
20+ make install
21+ }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ FREI0R_REPO=" https://github.com/dyne/frei0r.git"
4+ FREI0R_COMMIT=" 86475d3e11e1061bf161e6ed3830fe2cf3d172ac"
5+
6+ ffbuild_enabled () {
7+ [[ $VARIANT == lgpl* ]] && return -1
8+ return 0
9+ }
10+
11+ ffbuild_dockerbuild () {
12+ git-mini-clone " $FREI0R_REPO " " $FREI0R_COMMIT " frei0r
13+ cd frei0r
14+
15+ ./autogen.sh
16+
17+ local myconf=(
18+ --prefix=" $FFBUILD_PREFIX "
19+ --disable-shared
20+ --enable-static
21+ --with-pic
22+ --enable-cpuflags
23+ )
24+
25+ if [[ $TARGET == win* || $TARGET == linux* ]]; then
26+ myconf+=(
27+ --host=" $FFBUILD_TOOLCHAIN "
28+ )
29+ else
30+ echo " Unknown target"
31+ return -1
32+ fi
33+
34+ ./configure " ${myconf[@]} "
35+ make -C include -j$( nproc)
36+ make -C include install
37+ make install-pkgconfigDATA
38+ }
39+
40+ ffbuild_configure () {
41+ echo --enable-frei0r
42+ }
43+
44+ ffbuild_unconfigure () {
45+ echo --disable-frei0r
46+ }
You can’t perform that action at this time.
0 commit comments