2022-07-12 12:45:59 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
rm -rf /tmp/builddir2
|
|
|
|
|
2023-11-15 12:05:20 -05:00
|
|
|
cd $HOME/elinks
|
|
|
|
|
|
|
|
LIBRARY_PATH="$HOME/lib" \
|
|
|
|
PKG_CONFIG_PATH="$HOME/lib/pkgconfig" \
|
|
|
|
C_INCLUDE_PATH="$HOME/include" \
|
|
|
|
CFLAGS="-O2 -I$HOME/include -DWATT32_NO_NAMESPACE -DWATT32_NO_OLDIES" \
|
|
|
|
CXXFLAGS="-O2 -I$HOME/include -DWATT32_NO_NAMESPACE -DWATT32_NO_OLDIES" \
|
2024-01-02 04:41:52 -05:00
|
|
|
LDFLAGS="-lm -L$HOME/lib" \
|
2023-07-24 09:54:30 -04:00
|
|
|
meson setup /tmp/builddir2 --cross-file cross/linux-djgpp.txt \
|
2022-07-12 12:45:59 -04:00
|
|
|
-D88-colors=false \
|
|
|
|
-D256-colors=false \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dapidoc=false \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dbacktrace=false \
|
|
|
|
-Dbittorrent=false \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dbrotli=false \
|
|
|
|
-Dbzlib=false \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dcgi=false \
|
2022-07-12 15:26:07 -04:00
|
|
|
-Dcss=true \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Ddgi=true \
|
2023-12-26 07:28:23 -05:00
|
|
|
-Ddoc=false \
|
2022-11-30 10:06:58 -05:00
|
|
|
-Dexmode=true \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dfastmem=true \
|
|
|
|
-Dfsp=false \
|
2023-07-24 09:54:30 -04:00
|
|
|
-Dfsp2=true \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dgemini=true \
|
|
|
|
-Dgettext=false \
|
|
|
|
-Dgnutls=false \
|
|
|
|
-Dgopher=true \
|
|
|
|
-Dgpm=false \
|
|
|
|
-Dguile=false \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dhtmldoc=false \
|
|
|
|
-Didn=false \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dipv6=true \
|
2023-07-25 14:28:35 -04:00
|
|
|
-Dlibcss=true \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dlibcurl=true \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dlibev=false \
|
|
|
|
-Dlibevent=false \
|
2023-07-24 09:54:30 -04:00
|
|
|
-Dluapkg='lua' \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dlzma=false \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dmailcap=false \
|
|
|
|
-Dmouse=true \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dmujs=false \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dnls=true \
|
|
|
|
-Dnntp=true \
|
|
|
|
-Dopenssl=true \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dpdfdoc=false \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dperl=false \
|
|
|
|
-Dprefix=$HOME \
|
|
|
|
-Dpython=false \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dquickjs=true \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Druby=false \
|
|
|
|
-Dsm-scripting=false \
|
|
|
|
-Dspidermonkey=false \
|
|
|
|
-Dstatic=true \
|
|
|
|
-Dterminfo=false \
|
2022-11-30 10:06:58 -05:00
|
|
|
-Dtest=false \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dtre=false \
|
|
|
|
-Dtrue-color=false \
|
|
|
|
-Dutf-8=false \
|
|
|
|
-Dwithdebug=false \
|
|
|
|
-Dx=false \
|
2022-07-12 15:21:40 -04:00
|
|
|
-Dxbel=true \
|
2022-07-12 12:45:59 -04:00
|
|
|
-Dzlib=true \
|
2023-11-15 12:05:20 -05:00
|
|
|
-Dzstd=false
|
2022-07-12 12:45:59 -04:00
|
|
|
|
|
|
|
meson compile -C /tmp/builddir2
|
2022-12-07 13:48:15 -05:00
|
|
|
|
|
|
|
i586-pc-msdosdjgpp-strip /tmp/builddir2/src/elinks.exe
|
|
|
|
|
|
|
|
upx /tmp/builddir2/src/elinks.exe
|
2023-11-15 12:05:20 -05:00
|
|
|
|
2024-09-04 09:30:45 -04:00
|
|
|
# prepare zip
|
|
|
|
rm -rf $HOME/ELINKS
|
|
|
|
|
|
|
|
mkdir -p $HOME/ELINKS/src
|
|
|
|
mkdir -p $HOME/ELINKS/po
|
|
|
|
|
|
|
|
install /tmp/builddir2/src/elinks.exe $HOME/ELINKS/src/elinks.exe
|
|
|
|
|
|
|
|
cd /tmp/builddir2/po
|
|
|
|
for i in *; do cp -v $i/LC_MESSAGES/elinks.mo $HOME/ELINKS/po/$i.gmo; done
|
|
|
|
cd -
|
|
|
|
|
2023-11-15 12:05:20 -05:00
|
|
|
#cp -a /tmp/builddir2/src/elinks.exe ~/.dosemu/drive_c/ELINKS/src/
|