forked from aspel/pobfrontend
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.darwin
61 lines (48 loc) · 1.31 KB
/
Makefile.darwin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
DIR := ${CURDIR}
all: frontend pob
pushd build; \
ninja install; \
popd; \
macdeployqt ${DIR}/PathOfBuilding.app; \
cp ${DIR}/Info.plist.sh ${DIR}/PathOfBuilding.app/Contents/Info.plist; \
echo 'Finished'
pob: luacurl load_pob frontend
pushd PathOfBuilding; \
unzip -o 'tree*.zip'; \
unzip runtime-win32.zip lua/xml.lua lua/base64.lua lua/sha1.lua; \
mv lua/*.lua .; \
rmdir lua; \
cp ../lcurl.so .; \
mv src/* .; \
rmdir src; \
popd
frontend:
meson -Dbuildtype=release --prefix=${DIR}/PathOfBuilding.app --bindir=Contents/MacOS build
load_pob:
git clone --depth 1 https://github.com/PathOfBuildingCommunity/PathOfBuilding.git; \
pushd PathOfBuilding; \
rm -rf .git; \
popd
luacurl:
git clone --depth 1 https://github.com/Lua-cURL/Lua-cURLv3.git; \
pushd Lua-cURLv3; \
sed -i '' 's/\?= lua$$/\?= luajit/' Makefile; \
sed -i '' 's@shell .* --libs libcurl@shell PKG_CONFIG_PATH=\$$\$$(brew --prefix --installed curl)/lib/pkgconfig \$$(PKG_CONFIG) --libs libcurl@' Makefile; \
make; \
mv lcurl.so ../lcurl.so; \
popd
tools: qt lua zlib meson curl dylibbundler
qt:
brew install qt5
lua:
brew install luajit
zlib:
brew install zlib
meson:
brew install meson
curl:
brew install curl
dylibbundler:
brew install dylibbundler
clean:
rm -rf PathOfBuilding PathOfBuilding.app Lua-cURLv3 lcurl.so build