1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[docker] Also upgrade mujs for dos

This commit is contained in:
Witold Filipczyk 2023-11-23 14:26:02 +01:00
parent b6af8fd0b4
commit 42e2442d37
2 changed files with 9 additions and 20 deletions

View File

@ -1,7 +1,7 @@
cd
wget https://mujs.com/downloads/mujs-1.3.3.tar.gz
rm -rf mujs-1.3.3
tar -xf mujs-1.3.3.tar.gz
cd mujs-1.3.3
wget https://mujs.com/downloads/mujs-1.3.4.tar.gz
rm -rf mujs-1.3.4
tar -xf mujs-1.3.4.tar.gz
cd mujs-1.3.4
patch -p1 < ../mujs.diff
make CC=i586-pc-msdosdjgpp-gcc AR=i586-pc-msdosdjgpp-ar CFLAGS="-Wno-error -DWATT32_NO_NAMESPACE -U__STRICT_ANSI__" prefix=$HOME install
make CC=i586-pc-msdosdjgpp-gcc AR=i586-pc-msdosdjgpp-ar HAVE_READLINE=no CFLAGS="-Wno-error -DWATT32_NO_NAMESPACE -U__STRICT_ANSI__" prefix=$HOME install

View File

@ -1,16 +1,5 @@
--- mujs-1.3.3/Makefile 2023-01-10 11:11:11.000000000 +0000
+++ mujs-1.3.3/Makefile.win 2023-11-07 16:18:12.781947760 +0000
@@ -98,8 +98,8 @@
$(CC) $(CFLAGS) $(OPTIM) -c -o $@ one.c
build/release/libmujs.a: build/release/libmujs.o
$(AR) cr $@ $^
-build/release/mujs: main.c build/release/libmujs.o
- $(CC) $(CFLAGS) $(OPTIM) -o $@ $^ -lm -DHAVE_READLINE -lreadline
+#build/release/mujs: main.c build/release/libmujs.o
+# $(CC) $(CFLAGS) $(OPTIM) -o $@ $^ -lm -DHAVE_READLINE -lreadline
build/release/mujs-pp: pp.c build/release/libmujs.o
$(CC) $(CFLAGS) $(OPTIM) -o $@ $^ -lm
--- mujs-1.3.4/Makefile 2023-01-10 11:11:11.000000000 +0000
+++ mujs-1.3.4/Makefile.win 2023-11-07 16:18:12.781947760 +0000
@@ -112,14 +112,13 @@
echo >> $@ Libs: -L$(libdir) -lmujs
echo >> $@ Libs.private: -lm
@ -27,8 +16,8 @@
install -m 755 build/release/mujs-pp $(DESTDIR)$(bindir)
install-static: install-common build/release/libmujs.a
--- mujs-1.3.3/Makefile 2023-11-07 16:20:17.847381765 +0000
+++ mujs-1.3.3/Makefile.win 2023-11-07 16:22:46.616720069 +0000
--- mujs-1.3.4/Makefile 2023-11-07 16:20:17.847381765 +0000
+++ mujs-1.3.4/Makefile.win 2023-11-07 16:22:46.616720069 +0000
@@ -100,8 +100,8 @@
$(AR) cr $@ $^
#build/release/mujs: main.c build/release/libmujs.o