commit 82517a6
chld
·
2026-08-27 01:23:33 +0000 UTC
parent c4f329e
emacs: fix port not building
1 files changed,
+39,
-31
+39,
-31
1@@ -3,36 +3,44 @@ NAME=emacs
2 VERSION=30.2
3 RELEASE=1
4 SOURCE="https://ftp.gnu.org/gnu/emacs/emacs-30.2.tar.xz"
5-BUILD_STYLE=configure
6-BUILD_OPT=" --prefix=/
7- --bindir=/bin
8- --sbindir=/bin
9- --libdir=/lib
10- --includedir=/include
11- --sysconfdir=/etc
12- --without-pop
13- --without-mailutils
14- --without-x
15- --without-pgtk
16- --without-gnutls
17- --without-dbus
18- --without-xim
19- --without-xaw3d
20- --without-gpm
21- --without-be-cairo
22- --without-be-app
23- --without-selinux
24- --without-zlib
25- --without-xinput2
26- --without-xpm
27- --without-jpeg
28- --without-tiff
29- --without-gif
30- --without-png
31- --without-rsvg
32- --without-webp
33- --without-sqlite3
34- --without-lcms2
35- --without-libsystemd"
36+
37+build(){
38+ CFLAGS='-static' LDFLAGS='-static' ./configure --prefix=/ \
39+ --bindir=/bin \
40+ --sbindir=/bin \
41+ --libdir=/lib \
42+ --includedir=/include \
43+ --sysconfdir=/etc \
44+ --without-pop \
45+ --without-mailutils \
46+ --without-x \
47+ --without-pgtk \
48+ --without-gnutls \
49+ --without-dbus \
50+ --without-xim \
51+ --without-xaw3d \
52+ --without-gpm \
53+ --without-be-cairo \
54+ --without-be-app \
55+ --without-selinux \
56+ --without-zlib \
57+ --without-xinput2 \
58+ --without-xpm \
59+ --without-jpeg \
60+ --without-tiff \
61+ --without-gif \
62+ --without-png \
63+ --without-rsvg \
64+ --without-webp \
65+ --without-sqlite3 \
66+ --without-lcms2 \
67+ --without-libsystemd \
68+ --disable-shared \
69+ --enable-static \
70+ --without-gnutls || die "configure failed"
71+
72+ gmake CFLAGS='-static' LDFLAGS='-static' PREFIX="$PREFIX" || die "make failed"
73+ gmake CFLAGS='-static' LDFLAGS='-static' PREFIX="$PREFIX" DESTDIR="$PKG" install || die "install failed"
74+}
75
76 . ${0%/*}/../../libsh/libdmake.sh