File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 22
22
23
23
set -e
24
24
25
- export MAKEFLAGS=-j$( getconf _NPROCESSORS_ONLN)
25
+ MAKEFLAGS=-j$( getconf _NPROCESSORS_ONLN)
26
+ export MAKEFLAGS
26
27
27
28
if [ -z " $WXWIDGETS_VERSION " ]; then
28
29
WXWIDGETS_VERSION=3.1.5
29
30
fi
30
31
31
32
vsn=$WXWIDGETS_VERSION
33
+ WXWIDGETS_BUILD_DIR=$( pwd) /wxWidgets
32
34
33
- if [ -d " wxWidgets-build " ]; then
34
- echo " wxWidgets-build / containing wxWidgets already exists; reusing it..."
35
+ if [ -d " ${WXWIDGETS_BUILD_DIR} " ]; then
36
+ echo " ${WXWIDGETS_BUILD_DIR} / containing wxWidgets source already exists; reusing it..."
35
37
else
36
- curl --fail -LO https://github.com/wxWidgets/wxWidgets/releases/download/v$vsn /wxWidgets-$vsn .tar.bz2
37
- tar -xf wxWidgets-$vsn .tar.bz2
38
- rm -rf wxWidgets-build && mv wxWidgets-$vsn / wxWidgets-build
38
+ curl --fail -LO https://github.com/wxWidgets/wxWidgets/releases/download/v" $vsn " /wxWidgets-" $vsn " .tar.bz2
39
+ tar -xf wxWidgets-" $vsn " .tar.bz2
40
+ rm -rf " ${WXWIDGETS_BUILD_DIR} " && mv wxWidgets-" $vsn " / " ${WXWIDGETS_BUILD_DIR} "
39
41
40
42
# Replace #include <fp.h> in pngpriv.h to #include <math.h> for MacOS build.
41
43
sed -i ' ' -E ' s/^#[[:space:]]*include[[:space:]]*<fp\.h>/#include <math.h>/' " wxWidgets-build/src/png/pngpriv.h"
44
+
42
45
# Find and comment out #define fdopen NULL in zutil.h and let it use default MacOS impl
43
46
sed -i ' ' -E ' s/^([[:space:]]*#[[:space:]]*define[[:space:]]+fdopen.*)$//' " wxWidgets-build/src/zlib/zutil.h"
44
47
fi
45
48
46
- cd wxWidgets-build
49
+ cd " ${WXWIDGETS_BUILD_DIR} "
47
50
./configure \
48
51
--disable-shared \
49
- --prefix=$PWD /release \
52
+ --prefix=" $PWD " /release \
50
53
--with-cocoa \
51
54
--with-macosx-version-min=10.15 \
52
55
--disable-sys-libs
You can’t perform that action at this time.
0 commit comments