[emacs] add FLAVOR {x11,pgtk}

This commit is contained in:
Gwenhael Le Moine 2023-12-11 16:06:49 +01:00
parent a4279530ef
commit 5979d2f788
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -28,10 +28,11 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=emacs PKGNAM=emacs
BUILD=${BUILD:-4} BUILD=${BUILD:-5}
TAG=gwh TAG=gwh
VERSION=${VERSION:-"latest"} VERSION=${VERSION:-"latest"}
FLAVOR=${FLAVOR:-x11}
REPOSITORY=/home/installs/SlackBuilds/_repositories/$PKGNAM REPOSITORY=/home/installs/SlackBuilds/_repositories/$PKGNAM
@ -121,18 +122,12 @@ find . \
SRCDIR=. SRCDIR=.
EMACS_VERSION=$(grep "AC_INIT(\[GNU Emacs\]," $SRCDIR/configure.ac | cut -d, -f 2 | tr -d \ | tr -d [ | tr -d ]) EMACS_VERSION=$(grep "AC_INIT(\[GNU Emacs\]," $SRCDIR/configure.ac | cut -d, -f 2 | tr -d \ | tr -d [ | tr -d ])
# --with-x \ CONFIGURE_OPTIONS="--prefix=/usr \
# --with-x-toolkit=${X_TOOLKIT:-gtk3} \
# --without-toolkit-scroll-bars \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
$SRCDIR/configure \
--prefix=/usr \
--libdir=/usr/lib$(uname -m | grep -o 64 ) \ --libdir=/usr/lib$(uname -m | grep -o 64 ) \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--program-prefix="" \ --program-prefix=\"\" \
--program-suffix="" \ --program-suffix=\"\" \
--mandir=/usr/man \ --mandir=/usr/man \
--infodir=/usr/info \ --infodir=/usr/info \
--without-gconf \ --without-gconf \
@ -148,7 +143,6 @@ CFLAGS="$SLKCFLAGS" \
--with-xpm \ --with-xpm \
--with-gpm=yes \ --with-gpm=yes \
--disable-libsystemd \ --disable-libsystemd \
--with-pgtk \
--with-tree-sitter \ --with-tree-sitter \
--enable-link-time-optimization \ --enable-link-time-optimization \
--with-native-compilation=aot \ --with-native-compilation=aot \
@ -157,8 +151,28 @@ CFLAGS="$SLKCFLAGS" \
--with-xinput \ --with-xinput \
--with-compress-install \ --with-compress-install \
--without-gconf \ --without-gconf \
--with-gameuser=":games" \ --with-gameuser=\":games\" \
--build=${ARCH}-slackware-linux || exit 1 --build=${ARCH}-slackware-linux"
case $FLAVOR in
pgtk)
VERSION=${VERSION}_pgtk
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS \
--with-pgtk"
;;
*) # x11
VERSION=${VERSION}_x11
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS \
--with-x \
--with-x-toolkit=${X_TOOLKIT:-gtk3} \
--without-toolkit-scroll-bars"
;;
esac
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
$SRCDIR/configure \
$CONFIGURE_OPTIONS || exit 1
make bootstrap $NUMJOBS || exit 1 make bootstrap $NUMJOBS || exit 1