ext/plain; charset=UTF-8
Content-Disposition: inline; filename="244121b9643f91e1b8ffb4c37a255d7603da2116..0c08f948d7014e66d5a79d7584c03164af2edd93.patch"
Last-Modified: Fri, 14 Feb 2025 17:17:59 GMT
Expires: Mon, 12 Feb 2035 17:17:59 GMT

 for gpcfs purposes</title>
<meta name='generator' content='cgit v1.2.3'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/static/cgit.css'/>
<link rel='shortcut icon' href='//bananach.space/favicon.png'/>
<link rel='alternate' title='Atom feed' href='https://git.bananach.space/minetest.git/atom/util/buildbot/buildwin32.sh?h=gpcf' type='application/atom+xml'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='//bananach.space/bananach.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a href='/minetest.git/'>minetest.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='077b6cfa21fe323434e704bb7a81870ff689c433'/><select name='h' onchange='this.form.submit();'>
<option value='gpcf' selected='selected'>gpcf</option>
<option value='lifo-fixes'>lifo-fixes</option>
<option value='release'>release</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>modified minetest for gpcfs purposes</td><td class='sub right'>gpcf</td></tr></table>
<table class='tabs'><tr><td>
<a href='/minetest.git/about/?h=gpcf'>about</a><a href='/minetest.git/?h=gpcf'>summary</a><a href='/minetest.git/refs/?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>refs</a><a href='/minetest.git/log/util/buildbot/buildwin32.sh?h=gpcf'>log</a><a class='active' href='/minetest.git/tree/util/buildbot/buildwin32.sh?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>tree</a><a href='/minetest.git/commit/util/buildbot/buildwin32.sh?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>commit</a><a href='/minetest.git/diff/util/buildbot/buildwin32.sh?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>diff</a></td><td class='form'><form class='right' method='get' action='/minetest.git/log/util/buildbot/buildwin32.sh'>
<input type='hidden' name='h' value='gpcf'/><input type='hidden' name='id' value='077b6cfa21fe323434e704bb7a81870ff689c433'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/minetest.git/tree/?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>root</a>/<a href='/minetest.git/tree/util?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>util</a>/<a href='/minetest.git/tree/util/buildbot?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>buildbot</a>/<a href='/minetest.git/tree/util/buildbot/buildwin32.sh?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>buildwin32.sh</a></div><div class='content'>blob: 27c7e556f2daa2343cdf7060a2f85ac4a5ee5b84 (<a href='/minetest.git/plain/util/buildbot/buildwin32.sh?h=gpcf&amp;id=077b6cfa21fe323434e704bb7a81870ff689c433'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
<a id='n42' href='#n42'>42</a>
<a id='n43' href='#n43'>43</a>
<a id='n44' href='#n44'>44</a>
<a id='n45' href='#n45'>45</a>
<a id='n46' href='#n46'>46</a>
<a id='n47' href='#n47'>47</a>
<a id='n48' href='#n48'>48</a>
<a id='n49' href='#n49'>49</a>
<a id='n50' href='#n50'>50</a>
<a id='n51' href='#n51'>51</a>
<a id='n52' href='#n52'>52</a>
<a id='n53' href='#n53'>53</a>
<a id='n54' href='#n54'>54</a>
<a id='n55' href='#n55'>55</a>
<a id='n56' href='#n56'>56</a>
<a id='n57' href='#n57'>57</a>
<a id='n58' href='#n58'>58</a>
<a id='n59' href='#n59'>59</a>
<a id='n60' href='#n60'>60</a>
<a id='n61' href='#n61'>61</a>
<a id='n62' href='#n62'>62</a>
<a id='n63' href='#n63'>63</a>
<a id='n64' href='#n64'>64</a>
<a id='n65' href='#n65'>65</a>
<a id='n66' href='#n66'>66</a>
<a id='n67' href='#n67'>67</a>
<a id='n68' href='#n68'>68</a>
<a id='n69' href='#n69'>69</a>
<a id='n70' href='#n70'>70</a>
<a id='n71' href='#n71'>71</a>
<a id='n72' href='#n72'>72</a>
<a id='n73' href='#n73'>73</a>
<a id='n74' href='#n74'>74</a>
<a id='n75' href='#n75'>75</a>
<a id='n76' href='#n76'>76</a>
<a id='n77' href='#n77'>77</a>
<a id='n78' href='#n78'>78</a>
<a id='n79' href='#n79'>79</a>
<a id='n80' href='#n80'>80</a>
<a id='n81' href='#n81'>81</a>
<a id='n82' href='#n82'>82</a>
<a id='n83' href='#n83'>83</a>
<a id='n84' href='#n84'>84</a>
<a id='n85' href='#n85'>85</a>
<a id='n86' href='#n86'>86</a>
<a id='n87' href='#n87'>87</a>
<a id='n88' href='#n88'>88</a>
<a id='n89' href='#n89'>89</a>
<a id='n90' href='#n90'>90</a>
<a id='n91' href='#n91'>91</a>
<a id='n92' href='#n92'>92</a>
<a id='n93' href='#n93'>93</a>
<a id='n94' href='#n94'>94</a>
<a id='n95' href='#n95'>95</a>
<a id='n96' href='#n96'>96</a>
<a id='n97' href='#n97'>97</a>
<a id='n98' href='#n98'>98</a>
<a id='n99' href='#n99'>99</a>
<a id='n100' href='#n100'>100</a>
<a id='n101' href='#n101'>101</a>
<a id='n102' href='#n102'>102</a>
<a id='n103' href='#n103'>103</a>
<a id='n104' href='#n104'>104</a>
<a id='n105' href='#n105'>105</a>
<a id='n106' href='#n106'>106</a>
<a id='n107' href='#n107'>107</a>
<a id='n108' href='#n108'>108</a>
<a id='n109' href='#n109'>109</a>
<a id='n110' href='#n110'>110</a>
<a id='n111' href='#n111'>111</a>
<a id='n112' href='#n112'>112</a>
<a id='n113' href='#n113'>113</a>
<a id='n114' href='#n114'>114</a>
<a id='n115' href='#n115'>115</a>
<a id='n116' href='#n116'>116</a>
<a id='n117' href='#n117'>117</a>
<a id='n118' href='#n118'>118</a>
<a id='n119' href='#n119'>119</a>
<a id='n120' href='#n120'>120</a>
<a id='n121' href='#n121'>121</a>
<a id='n122' href='#n122'>122</a>
<a id='n123' href='#n123'>123</a>
<a id='n124' href='#n124'>124</a>
<a id='n125' href='#n125'>125</a>
<a id='n126' href='#n126'>126</a>
<a id='n127' href='#n127'>127</a>
<a id='n128' href='#n128'>128</a>
<a id='n129' href='#n129'>129</a>
<a id='n130' href='#n130'>130</a>
<a id='n131' href='#n131'>131</a>
<a id='n132' href='#n132'>132</a>
<a id='n133' href='#n133'>133</a>
<a id='n134' href='#n134'>134</a>
<a id='n135' href='#n135'>135</a>
<a id='n136' href='#n136'>136</a>
<a id='n137' href='#n137'>137</a>
<a id='n138' href='#n138'>138</a>
<a id='n139' href='#n139'>139</a>
<a id='n140' href='#n140'>140</a>
<a id='n141' href='#n141'>141</a>
<a id='n142' href='#n142'>142</a>
<a id='n143' href='#n143'>143</a>
<a id='n144' href='#n144'>144</a>
<a id='n145' href='#n145'>145</a>
<a id='n146' href='#n146'>146</a>
<a id='n147' href='#n147'>147</a>
<a id='n148' href='#n148'>148</a>
<a id='n149' href='#n149'>149</a>
<a id='n150' href='#n150'>150</a>
<a id='n151' href='#n151'>151</a>
<a id='n152' href='#n152'>152</a>
<a id='n153' href='#n153'>153</a>
<a id='n154' href='#n154'>154</a>
<a id='n155' href='#n155'>155</a>
</pre></td>
<td class='lines'><pre><code><span class="hl slc">#!/bin/bash</span>
<span class="hl kwb">set -e</span>

dir<span class="hl opt">=</span><span class="hl str">&quot;$( cd &quot;</span>$<span class="hl opt">(</span> <span class="hl kwc">dirname</span> <span class="hl str">&quot;</span><span class="hl ipl">${BASH_SOURCE[0]}</span><span class="hl str">&quot;</span> <span class="hl opt">)</span><span class="hl str">&quot; &amp;&amp; pwd )&quot;</span>
<span class="hl kwa">if</span> <span class="hl opt">[</span> <span class="hl kwd">$#</span> <span class="hl kwb">-ne</span> <span class="hl num">1</span> <span class="hl opt">];</span> <span class="hl kwa">then</span>
	<span class="hl kwb">echo</span> <span class="hl str">&quot;Usage:</span> <span class="hl ipl">$0</span> <span class="hl str">&lt;build directory&gt;&quot;</span>
	<span class="hl kwb">exit</span> <span class="hl num">1</span>
<span class="hl kwa">fi</span>
builddir<span class="hl opt">=</span><span class="hl kwd">$1</span>
mkdir <span class="hl kwb">-p</span> <span class="hl kwd">$builddir</span>
builddir<span class="hl opt">=</span><span class="hl str">&quot;$( cd &quot;</span><span class="hl kwd">$builddir</span><span class="hl str">&quot; &amp;&amp; pwd )&quot;</span>
packagedir<span class="hl opt">=</span><span class="hl kwd">$builddir</span><span class="hl opt">/</span>packages
libdir<span class="hl opt">=</span><span class="hl kwd">$builddir</span><span class="hl opt">/</span>libs

toolchain_file<span class="hl opt">=</span><span class="hl kwd">$dir</span><span class="hl opt">/</span>toolchain_mingw.cmake
irrlicht_version<span class="hl opt">=</span><span class="hl num">1.8.4</span>
ogg_version<span class="hl opt">=</span><span class="hl num">1.3.2</span>
vorbis_version<span class="hl opt">=</span><span class="hl num">1.3.5</span>
curl_version<span class="hl opt">=</span><span class="hl num">7.50.3</span>
gettext_version<span class="hl opt">=</span><span class="hl num">0.14.4</span>
freetype_version<span class="hl opt">=</span><span class="hl num">2.7</span>
sqlite3_version<span class="hl opt">=</span><span class="hl num">3.14.2</span>
luajit_version<span class="hl opt">=</span><span class="hl num">2.0.1</span>
leveldb_version<span class="hl opt">=</span><span class="hl num">1.18</span>
zlib_version<span class="hl opt">=</span><span class="hl num">1.2.8</span>

mkdir <span class="hl kwb">-p</span> <span class="hl kwd">$packagedir</span>
mkdir <span class="hl kwb">-p</span> <span class="hl kwd">$libdir</span>

<span class="hl kwb">cd</span> <span class="hl kwd">$builddir</span>

<span class="hl slc"># Get stuff</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>irrlicht-<span class="hl kwd">$irrlicht_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>irrlicht-<span class="hl kwd">$irrlicht_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>irrlicht-<span class="hl kwd">$irrlicht_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>zlib-<span class="hl kwd">$zlib_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>zlib-<span class="hl kwd">$zlib_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>zlib-<span class="hl kwd">$zlib_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libogg-<span class="hl kwd">$ogg_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>libogg-<span class="hl kwd">$ogg_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libogg-<span class="hl kwd">$ogg_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libvorbis-<span class="hl kwd">$vorbis_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>libvorbis-<span class="hl kwd">$vorbis_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libvorbis-<span class="hl kwd">$vorbis_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>curl-<span class="hl kwd">$curl_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>curl-<span class="hl kwd">$curl_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>curl-<span class="hl kwd">$curl_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>gettext-<span class="hl kwd">$gettext_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>gettext-<span class="hl kwd">$gettext_version</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>gettext-<span class="hl kwd">$gettext_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>freetype2-<span class="hl kwd">$freetype_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>freetype2-<span class="hl kwd">$freetype_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>freetype2-<span class="hl kwd">$freetype_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>sqlite3-<span class="hl kwd">$sqlite3_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>sqlite3-<span class="hl kwd">$sqlite3_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>sqlite3-<span class="hl kwd">$sqlite3_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>luajit-<span class="hl kwd">$luajit_version</span><span class="hl kwb">-static-win32</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>luajit-<span class="hl kwd">$luajit_version</span><span class="hl kwb">-static-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>luajit-<span class="hl kwd">$luajit_version</span><span class="hl kwb">-static-win32</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libleveldb-<span class="hl kwd">$leveldb_version</span>.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>libleveldb-<span class="hl kwd">$leveldb_version</span><span class="hl kwb">-win32</span>.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libleveldb-<span class="hl kwd">$leveldb_version</span>.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-e</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>openal_stripped.<span class="hl kwc">zip</span> <span class="hl opt">]</span> || wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>openal_stripped.<span class="hl kwc">zip</span> \
	<span class="hl kwb">-c -O</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>openal_stripped.<span class="hl kwc">zip</span>

<span class="hl slc"># Extract stuff</span>
<span class="hl kwb">cd</span> <span class="hl kwd">$libdir</span>
<span class="hl opt">[</span> <span class="hl kwb">-d</span> irrlicht <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>irrlicht-<span class="hl kwd">$irrlicht_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> irrlicht
<span class="hl opt">[</span> <span class="hl kwb">-d</span> zlib <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>zlib-<span class="hl kwd">$zlib_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> zlib
<span class="hl opt">[</span> <span class="hl kwb">-d</span> libogg <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libogg-<span class="hl kwd">$ogg_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> libogg
<span class="hl opt">[</span> <span class="hl kwb">-d</span> libvorbis <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libvorbis-<span class="hl kwd">$vorbis_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> libvorbis
<span class="hl opt">[</span> <span class="hl kwb">-d</span> libcurl <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>curl-<span class="hl kwd">$curl_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> libcurl
<span class="hl opt">[</span> <span class="hl kwb">-d</span> <span class="hl kwc">gettext</span> <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>gettext-<span class="hl kwd">$gettext_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> <span class="hl kwc">gettext</span>
<span class="hl opt">[</span> <span class="hl kwb">-d</span> freetype <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>freetype2-<span class="hl kwd">$freetype_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> freetype
<span class="hl opt">[</span> <span class="hl kwb">-d</span> sqlite3 <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>sqlite3-<span class="hl kwd">$sqlite3_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> sqlite3
<span class="hl opt">[</span> <span class="hl kwb">-d</span> openal_stripped <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>openal_stripped.<span class="hl kwc">zip</span>
<span class="hl opt">[</span> <span class="hl kwb">-d</span> luajit <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>luajit-<span class="hl kwd">$luajit_version</span><span class="hl kwb">-static-win32</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> luajit
<span class="hl opt">[</span> <span class="hl kwb">-d</span> leveldb <span class="hl opt">]</span> || <span class="hl kwc">unzip</span> <span class="hl kwb">-o</span> <span class="hl kwd">$packagedir</span><span class="hl opt">/</span>libleveldb-<span class="hl kwd">$leveldb_version</span>.<span class="hl kwc">zip</span> <span class="hl kwb">-d</span> leveldb

<span class="hl slc"># Get minetest</span>
<span class="hl kwb">cd</span> <span class="hl kwd">$builddir</span>
<span class="hl kwa">if</span> <span class="hl opt">[ !</span> <span class="hl str">&quot;x</span><span class="hl ipl">$EXISTING_MINETEST_DIR</span><span class="hl str">&quot;</span> <span class="hl opt">=</span> <span class="hl str">&quot;x&quot;</span> <span class="hl opt">];</span> <span class="hl kwa">then</span>
	<span class="hl kwc">ln</span> <span class="hl kwb">-s</span> <span class="hl kwd">$EXISTING_MINETEST_DIR</span> minetest
<span class="hl kwa">else</span>
	<span class="hl opt">[</span> <span class="hl kwb">-d</span> minetest <span class="hl opt">] &amp;&amp; (</span><span class="hl kwb">cd</span> minetest <span class="hl opt">&amp;&amp;</span> git pull<span class="hl opt">)</span> || <span class="hl opt">(</span>git clone https<span class="hl opt">://</span>github.com<span class="hl opt">/</span>minetest<span class="hl opt">/</span>minetest<span class="hl opt">)</span>
<span class="hl kwa">fi</span>
<span class="hl kwb">cd</span> minetest
git_hash<span class="hl opt">=</span>$<span class="hl opt">(</span>git rev-parse <span class="hl kwb">--short</span> HEAD<span class="hl opt">)</span>

<span class="hl slc"># Get minetest_game</span>
<span class="hl kwb">cd</span> games
<span class="hl kwa">if</span> <span class="hl opt">[</span> <span class="hl str">&quot;x</span><span class="hl ipl">$NO_MINETEST_GAME</span><span class="hl str">&quot;</span> <span class="hl opt">=</span> <span class="hl str">&quot;x&quot;</span> <span class="hl opt">];</span> <span class="hl kwa">then</span>
	<span class="hl opt">[</span> <span class="hl kwb">-d</span> minetest_game <span class="hl opt">] &amp;&amp; (</span><span class="hl kwb">cd</span> minetest_game <span class="hl opt">&amp;&amp;</span> git pull<span class="hl opt">)</span> || <span class="hl opt">(</span>git clone https<span class="hl opt">://</span>github.com<span class="hl opt">/</span>minetest<span class="hl opt">/</span>minetest_game<span class="hl opt">)</span>
<span class="hl kwa">fi</span>
<span class="hl kwb">cd</span> ..<span class="hl opt">/</span>..

<span class="hl slc"># Build the thing</span>
<span class="hl kwb">cd</span> minetest
<span class="hl opt">[</span> <span class="hl kwb">-d</span> _build <span class="hl opt">] &amp;&amp;</span> <span class="hl kwc">rm</span> <span class="hl kwb">-Rf</span> _build<span class="hl opt">/</span>
mkdir _build
<span class="hl kwb">cd</span> _build
cmake .. \
	<span class="hl kwb">-DCMAKE_INSTALL_PREFIX</span><span class="hl opt">=/</span>tmp \
	<span class="hl kwb">-DVERSION_EXTRA</span><span class="hl opt">=</span><span class="hl kwd">$git_hash</span> \
	<span class="hl kwb">-DBUILD_CLIENT</span><span class="hl opt">=</span><span class="hl num">1</span> <span class="hl kwb">-DBUILD_SERVER</span><span class="hl opt">=</span><span class="hl num">0</span> \
	<span class="hl kwb">-DCMAKE_TOOLCHAIN_FILE</span><span class="hl opt">=</span><span class="hl kwd">$toolchain_file</span> \
	\
	<span class="hl kwb">-DENABLE_SOUND</span><span class="hl opt">=</span><span class="hl num">1</span> \
	<span class="hl kwb">-DENABLE_CURL</span><span class="hl opt">=</span><span class="hl num">1</span> \
	<span class="hl kwb">-DENABLE_GETTEXT</span><span class="hl opt">=</span><span class="hl num">1</span> \
	<span class="hl kwb">-DENABLE_FREETYPE</span><span class="hl opt">=</span><span class="hl num">1</span> \
	<span class="hl kwb">-DENABLE_LEVELDB</span><span class="hl opt">=</span><span class="hl num">1</span> \
	\
	<span class="hl kwb">-DIRRLICHT_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>irrlicht<span class="hl opt">/</span>include \
	<span class="hl kwb">-DIRRLICHT_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>irrlicht<span class="hl opt">/</span>lib<span class="hl opt">/</span>Win32-gcc<span class="hl opt">/</span>libIrrlicht.dll.a \
	<span class="hl kwb">-DIRRLICHT_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>irrlicht<span class="hl opt">/</span>bin<span class="hl opt">/</span>Win32-gcc<span class="hl opt">/</span>Irrlicht.dll \
	\
	<span class="hl kwb">-DZLIB_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>zlib<span class="hl opt">/</span>include \
	<span class="hl kwb">-DZLIB_LIBRARIES</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>zlib<span class="hl opt">/</span>lib<span class="hl opt">/</span>libz.dll.a \
	<span class="hl kwb">-DZLIB_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>zlib<span class="hl opt">/</span>bin<span class="hl opt">/</span>zlib1.dll \
	\
	<span class="hl kwb">-DLUA_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>luajit<span class="hl opt">/</span>include \
	<span class="hl kwb">-DLUA_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>luajit<span class="hl opt">/</span>libluajit.a \
	\
	<span class="hl kwb">-DOGG_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libogg<span class="hl opt">/</span>include \
	<span class="hl kwb">-DOGG_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libogg<span class="hl opt">/</span>lib<span class="hl opt">/</span>libogg.dll.a \
	<span class="hl kwb">-DOGG_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libogg<span class="hl opt">/</span>bin<span class="hl opt">/</span>libogg-0.dll \
	\
	<span class="hl kwb">-DVORBIS_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libvorbis<span class="hl opt">/</span>include \
	<span class="hl kwb">-DVORBIS_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libvorbis<span class="hl opt">/</span>lib<span class="hl opt">/</span>libvorbis.dll.a \
	<span class="hl kwb">-DVORBIS_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libvorbis<span class="hl opt">/</span>bin<span class="hl opt">/</span>libvorbis-0.dll \
	<span class="hl kwb">-DVORBISFILE_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libvorbis<span class="hl opt">/</span>lib<span class="hl opt">/</span>libvorbisfile.dll.a \
	<span class="hl kwb">-DVORBISFILE_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libvorbis<span class="hl opt">/</span>bin<span class="hl opt">/</span>libvorbisfile-3.dll \
	\
	<span class="hl kwb">-DOPENAL_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>openal_stripped<span class="hl opt">/</span>include<span class="hl opt">/</span>AL \
	<span class="hl kwb">-DOPENAL_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>openal_stripped<span class="hl opt">/</span>lib<span class="hl opt">/</span>libOpenAL32.dll.a \
	<span class="hl kwb">-DOPENAL_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>openal_stripped<span class="hl opt">/</span>bin<span class="hl opt">/</span>OpenAL32.dll \
	\
	<span class="hl kwb">-DCURL_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libcurl<span class="hl opt">/</span>bin<span class="hl opt">/</span>libcurl-4.dll \
	<span class="hl kwb">-DCURL_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libcurl<span class="hl opt">/</span>include \
	<span class="hl kwb">-DCURL_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>libcurl<span class="hl opt">/</span>lib<span class="hl opt">/</span>libcurl.dll.a \
	\
	<span class="hl kwb">-DCUSTOM_GETTEXT_PATH</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span><span class="hl kwc">gettext</span> \
	<span class="hl kwb">-DGETTEXT_MSGFMT</span><span class="hl opt">=</span><span class="hl str">`which msgfmt`</span> \
	<span class="hl kwb">-DGETTEXT_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>gettext<span class="hl opt">/</span>bin<span class="hl opt">/</span>libintl3.dll \
	<span class="hl kwb">-DGETTEXT_ICONV_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>gettext<span class="hl opt">/</span>bin<span class="hl opt">/</span>libiconv2.dll \
	<span class="hl kwb">-DGETTEXT_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>gettext<span class="hl opt">/</span>include \
	<span class="hl kwb">-DGETTEXT_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>gettext<span class="hl opt">/</span>lib<span class="hl opt">/</span>libintl.dll.a \
	\
	<span class="hl kwb">-DFREETYPE_INCLUDE_DIR_freetype2</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>freetype<span class="hl opt">/</span>include<span class="hl opt">/</span>freetype2 \
	<span class="hl kwb">-DFREETYPE_INCLUDE_DIR_ft2build</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>freetype<span class="hl opt">/</span>include<span class="hl opt">/</span>freetype2 \
	<span class="hl kwb">-DFREETYPE_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>freetype<span class="hl opt">/</span>lib<span class="hl opt">/</span>libfreetype.dll.a \
	<span class="hl kwb">-DFREETYPE_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>freetype<span class="hl opt">/</span>bin<span class="hl opt">/</span>libfreetype-6.dll \
	\
	<span class="hl kwb">-DSQLITE3_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>sqlite<span class="hl num">3</span><span class="hl opt">/</span>include \
	<span class="hl kwb">-DSQLITE3_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>sqlite<span class="hl num">3</span><span class="hl opt">/</span>lib<span class="hl opt">/</span>libsqlite3.dll.a \
	<span class="hl kwb">-DSQLITE3_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>sqlite<span class="hl num">3</span><span class="hl opt">/</span>bin<span class="hl opt">/</span>libsqlite3-0.dll \
	\
	<span class="hl kwb">-DLEVELDB_INCLUDE_DIR</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>leveldb<span class="hl opt">/</span>include \
	<span class="hl kwb">-DLEVELDB_LIBRARY</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>leveldb<span class="hl opt">/</span>lib<span class="hl opt">/</span>libleveldb.dll.a \
	<span class="hl kwb">-DLEVELDB_DLL</span><span class="hl opt">=</span><span class="hl kwd">$libdir</span><span class="hl opt">/</span>leveldb<span class="hl opt">/</span>bin<span class="hl opt">/</span>libleveldb.dll

<span class="hl kwc">make</span> package <span class="hl kwb">-j2</span>

<span class="hl slc"># EOF</span>
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.3</a> (<a href='https://git-scm.com/'>git 2.39.1</a>) at 2025-02-14 17:17:59 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>
