diff options
author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-09-23 15:55:51 +0200 |
---|---|---|
committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-09-23 15:55:51 +0200 |
commit | 49b287fe9fefcf21061afeecb782c8e6d04b5df4 (patch) | |
tree | e409ddc13a1dbbc6a20b8bdc35ab40a3becc910b /.fmsbw | |
parent | 66747b641dbf66af0ed4ebaeb55e81997d4285ea (diff) | |
download | sciteco-49b287fe9fefcf21061afeecb782c8e6d04b5df4.tar.gz |
freebsd14-msys-sciteco: build Win64 Gtk binaries as well
* Also make sure that we find all DLLs.
* The nightly download URL will now be https://sciteco.fmsbw.de/downloads/nightly/
Diffstat (limited to '.fmsbw')
-rwxr-xr-x | .fmsbw/10-freebsd14-msys-sciteco | 70 |
1 files changed, 63 insertions, 7 deletions
diff --git a/.fmsbw/10-freebsd14-msys-sciteco b/.fmsbw/10-freebsd14-msys-sciteco index f27dfa9..5337827 100755 --- a/.fmsbw/10-freebsd14-msys-sciteco +++ b/.fmsbw/10-freebsd14-msys-sciteco @@ -10,7 +10,7 @@ export ASSUME_ALWAYS_YES=yes # gmake pkgconf autoconf automake libtool \ # glib gtk3 groff lowdown valgrind # -#pkg install llvm20 gnugrep gmake coreutils gsed git wget gnupg bash groff zip autoconf automake libtool +#pkg install llvm20 gnugrep gmake coreutils gsed git wget gnupg bash groff zip autoconf automake libtool python3 #git clone https://github.com/HolyBlackCat/quasi-msys2.git /opt/quasi-msys2 #cd /opt/quasi-msys2 #ln -s /usr/local/bin/gpgv2 /usr/local/bin/gpgv @@ -80,6 +80,7 @@ export CURSES_CFLAGS=-I/mingw64/include/pdcurses/ # LIBGLIB_LIBS: -lglib-2.0 -lintl -liconv -lpcre -lole32 -lws2_32 -luuid # FIXME: Once there is an --enable-lto, we should use that. #CFLAGS: -O3 -flto -DGLIB_STATIC_COMPILATION +# FIXME: Get -flto to work again. #export CFLAGS="-O3 -flto" #export CXXFLAGS="-O3 -flto" #export LDFLAGS="-flto" @@ -113,9 +114,11 @@ make make install-strip #make check TESTSUITEFLAGS="--verbose --color=never" +export MINGW_BUNDLEDLLS_SEARCH_PATH=/mingw64/bin + cd .. -mkdir temp-bin/ -cd temp-bin/ +mkdir -p temp-bin-pdcurses/ +cd temp-bin-pdcurses/ cp -r /mingw64/bin/{gsciteco.exe,sciteco.exe,grosciteco.tes,tedoc.tes} ./ # datadir is relative to bindir cp -r /mingw64/bin/{lib,*.tmac} ./ @@ -124,11 +127,64 @@ cp -r /mingw64/share/doc/sciteco/* ./ cp ../COPYING ../ChangeLog ./ cp /mingw64/bin/gspawn-win64-helper*.exe ./ # Collect DLLs for all included binaries -for f in *.exe; do python3.11 ../contrib/mingw-bundledlls --copy $f; done +for f in *.exe; do ../contrib/mingw-bundledlls --copy $f; done zip -9 -r ../sciteco-pdcurses_nightly_win64.zip . cd .. -mkdir -p /opt/htdocs/downloads/ci/ -cp sciteco-pdcurses_nightly_win64.zip /opt/htdocs/downloads/ci/ +mkdir -p /opt/htdocs/downloads/nightly/ +cp sciteco-pdcurses_nightly_win64.zip /opt/htdocs/downloads/nightly/ + +# FIXME: If we had a working bootstrapping build (where SciTECO +# is run under wine64), this should also be in a separate job +# so we don't have to install into the same root as for the PDCurses versions. +mkdir build-gtk +cd build-gtk +../configure --host=x86_64-w64-mingw32 \ + --with-interface=gtk --enable-html-docs \ + --with-scitecodatadir=. \ + --disable-bootstrap +make +make install-strip +#make check TESTSUITEFLAGS="--verbose --color=never" + +export MINGW_BUNDLEDLLS_SEARCH_PATH=/mingw64/bin + +cd .. +mkdir -p temp-bin-gtk/ +cd temp-bin-gtk/ +cp /mingw64/bin/{sciteco.exe,grosciteco.tes,tedoc.tes} ./ +# datadir is relative to bindir +cp -r /mingw64/bin/{lib,*.tmac} ./ +cp /mingw64/bin/fallback.teco_ini .teco_ini +cp /mingw64/bin/fallback.css ../win32/.teco_css . +cp -r /mingw64/share/doc/sciteco/* ./ +cp ../COPYING ../ChangeLog ./ +cp /mingw64/bin/gspawn-win64-helper*.exe ./ +# Collect DLLs for all included binaries +for f in *.exe; do ../contrib/mingw-bundledlls --copy $f; done +#mkdir share +#cp /mingw64/share/loader.cache share/ +#glib-compile-schemas /mingw64/share/glib-2.0/schemas +#mkdir -p share/glib-2.0 +#cp /mingw64/share/glib-2.0/gschemas.compiled share/glib-2.0/ +mkdir -p share/icons/Adwaita +# FIXME: It should be sufficient to package the SVG icons, +# but I cannot get it to work. Perhaps index.theme would have to be tweaked. +# We could also try to include a pure scalable icon theme. +#cp -r /mingw64/share/icons/Adwaita/{scalable*,index.theme} share/icons/Adwaita/ +cp -r /mingw64/share/icons/Adwaita/* share/icons/Adwaita/ +wine64 /mingw64/bin/gtk-update-icon-cache-3.0.exe share/icons/Adwaita/ +# FIXME: It's possible to change the location of loaders.cache via $GDK_PIXBUF_MODULE_FILE. +# If we did that, we could avoid "reusing" the lib/ directory. +# This is important when somebody changes $SCITECOPATH. +cp /mingw64/lib/gdk-pixbuf-2.0/2.10.0/loaders/{pixbufloader_svg.dll,libpixbufloader-png.dll} . +# Collect DLLs for all pixbuf loaders into the root directory +for f in *pixbufloader*.dll; do ../contrib/mingw-bundledlls --copy $f; done +mkdir -p lib/gdk-pixbuf-2.0/2.10.0/loaders/ +mv *pixbufloader*.dll lib/gdk-pixbuf-2.0/2.10.0/loaders/ +cp ../win32/loaders.cache lib/gdk-pixbuf-2.0/2.10.0/ +zip -9 -r ../sciteco-gtk3_nightly_win64.zip . +cd .. -# TODO: Windows Gtk builds +mkdir -p /opt/htdocs/downloads/nightly/ +cp sciteco-gtk3_nightly_win64.zip /opt/htdocs/downloads/nightly/ |