commit 5685b63

chld  ·  2026-09-09 12:35:27 +0000 UTC
parent f5c725c
mlterm: static w libtool
1 files changed,  +48, -1
+48, -1
 1@@ -3,6 +3,53 @@ NAME=mlterm
 2 VERSION=git
 3 RELEASE=1
 4 SOURCE="https://github.com/arakiken/${NAME}"
 5-BUILD_OPT="--disable-frbidi --disable-dl-ctl --enable-static --disable-ssh2 --disable-shared --with-scrollbars --with-tools --disable-dnd --disable-iiimf --disable-ibus --disable-skk --disable-canna --disable-wnn --without-gtl --without-map-table --without-prop-table --disable-dl-type --disable-anti-alias --disable-daemon --disable-zmodem --disable-multi-canvas --with-gui=fb"
 6+
 7+build(){
 8+    gmake clean
 9+    CFLAGS='-static -O3 -pipe' LDFLAGS='-static' ./configure \
10+	  --prefix=/ \
11+	  --libdir=/lib \
12+	  --bindir=/bin \
13+	  --enable-silent-rules \
14+	  --sbindir=/sbin \
15+	  --without-gnu-ld \
16+	  --without-x \
17+	  --sysconfdir=/etc \
18+	  --enable-static \
19+	  --enable-server-static=yes \
20+	  --disable-hw-x11 \
21+	  --disable-hw-xft \
22+	  --disable-shared \
23+	  --disable-dlopen \
24+	  --disable-frbidi \
25+	  --disable-dl-ctl \
26+	  --enable-static \
27+	  --disable-ssh2 \
28+	  --disable-shared \
29+	  --with-scrollbars \
30+	  --with-tools \
31+	  --disable-dnd \
32+	  --disable-iiimf \
33+	  --disable-ibus \
34+	  --disable-skk \
35+	  --disable-canna \
36+	  --disable-wnn \
37+	  --without-gtl \
38+	  --without-map-table \
39+	  --without-prop-table \
40+	  --disable-dl-type \
41+	  --disable-anti-alias \
42+	  --disable-daemon \
43+	  --disable-zmodem \
44+	  --disable-multi-canvas \
45+	  --with-gui=fb || die 'configure failed'
46+
47+    sed -i 's/gcc/gcc -static/g' `find . -name Makefile -type f`
48+    sed -i 's/--mode=link/--mode=link --tag=CC/g' `find . -name Makefile -type f`
49+    sed -i 's/g++/g++ -static/g' `find . -name Makefile -type f`
50+    
51+    gmake LDFLAGS='-static -all-static --tag=CC' CFLAGS="-I$SRC/baselib/include -I$SRC/encodefilter/include -I$SRC/libind -I$SRC/vtemu -static -O3 -pipe" || die 'gmake failed'
52+    gmake LDFLAGS='-static' CFLAGS='-static -O3 -pipe' DESTDIR="$PKG" install || die 'install failed'
53+}
54 
55 . ${0%/*}/../../libsh/libdmake.sh