|
|
|
@ -10,6 +10,20 @@ openssldir=/var/tmp/dist/openssl/openssl
|
|
|
|
|
cp -a $openssldir/include/openssl /var/tmp/dist/mingw-w64/[% c("arch") %]-w64-mingw32/include/openssl
|
|
|
|
|
cp -a $openssldir/lib/* $openssldir/bin/*.dll /var/tmp/dist/mingw-w64/[% c("arch") %]-w64-mingw32/lib/
|
|
|
|
|
|
|
|
|
|
# Required for "import ctypes"
|
|
|
|
|
tar -C /var/tmp/dist -xf [% c('input_files_by_name/libffi-src') %]
|
|
|
|
|
pushd /var/tmp/dist/*libffi*
|
|
|
|
|
# The Python devs got high on LSD and appear to have committed the libffi
|
|
|
|
|
# source code from a Windows machine, which stripped off all the +x bits.
|
|
|
|
|
# Kids, drugs and coding don't mix.
|
|
|
|
|
chmod -R +x ./
|
|
|
|
|
./configure --host=[% c("arch") %]-w64-mingw32
|
|
|
|
|
# Always errors on this step, but still produces the .dll files we want.
|
|
|
|
|
make || true
|
|
|
|
|
cp ./[% c("arch") %]-w64-mingw32/include/*.h /var/tmp/dist/mingw-w64/[% c("arch") %]-w64-mingw32/include
|
|
|
|
|
cp ./[% c("arch") %]-w64-mingw32/.libs/* /var/tmp/dist/mingw-w64/[% c("arch") %]-w64-mingw32/lib/
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
mkdir -p /var/tmp/build
|
|
|
|
|
tar -C /var/tmp/build -xf [% c('input_files_by_name/python') %]
|
|
|
|
|
tar -C /var/tmp/build -xf [% c('input_files_by_name/meson') %]
|
|
|
|
@ -65,8 +79,8 @@ ninja -C builddir install
|
|
|
|
|
find $distdir -name '*.a' -exec rm '{}' +
|
|
|
|
|
# These files don't reproduce, and are useless
|
|
|
|
|
|
|
|
|
|
# Required for "import ssl"
|
|
|
|
|
cp $openssldir/bin/*.dll $gcclibs/*.dll $distdir/bin/
|
|
|
|
|
# Required for "import ssl" and "import ctypes"
|
|
|
|
|
cp $openssldir/bin/*.dll /var/tmp/dist/*libffi*/[% c("arch") %]-w64-mingw32/.libs/*.dll $gcclibs/*.dll $distdir/bin/
|
|
|
|
|
|
|
|
|
|
cd /var/tmp/dist
|
|
|
|
|
[% c('tar', {
|
|
|
|
|