do not edit — generated by btf.
git.druid.rocksindexdruid520portsports/editors/qemacs/add.sh

ports/editors/qemacs/add.sh


set -e
 
# Fabrice Bellard's minimalist Emacs-like editor. Its own ffmpeg-style
# configure (hand-written shell, not autoconf -- needs no autotools
# bootstrap at all) already auto-detects that this system has none of
# X11/libpng/ffmpeg and disables that support on its own either way, so
# the real, deliberate choice here is --tiny-only: build ONLY the small
# "tqe" binary (no language modes/plugins/kmaps/bidi) instead of ALSO
# building the much larger, full-featured "qe" the plain default would
# produce alongside it.
#
# that choice is expressed as a DEFAULT for $CONFIGURE_FLAGS (the same
# generic passthrough compilers/gcc, ssl/libressl, networking/curl,
# security/doas, and libcs/musl already read into their own ./configure
# lines), not a hardcoded, unconditional flag on the configure command
# below -- ": -" only supplies "--tiny-only" when CONFIGURE_FLAGS is
# genuinely unset, so a site that wants the full build back (or any
# other qemacs configure flag) just exports CONFIGURE_FLAGS itself
# first -- see /etc/mpx.env.d/qemacs.env (mpx.env.example's own
# documented per-package override convention) for how to do that
# without touching this file, or any other port's own use of the same
# variable name.
#
# source checkout deliberately NOT self-cleaned -- unlike most ports
# here, this project's own "make uninstall" is a real, working target
# (no synthesized DESTDIR-diff needed, unlike libraries/libbsd/libmd),
# but del.sh still needs the checkout (with its own configure-generated
# config.mak) to run it from.
CONFIGURE_FLAGS="${CONFIGURE_FLAGS:---tiny-only}"
git clone https://github.com/qemacs/qemacs.git
cd qemacs
sh configure --prefix=$MP_PREFIX \
    --extra-cflags="$CFLAGS" --extra-ldflags="$LDFLAGS" \
    $CONFIGURE_FLAGS
make -j$MP_JOBS
make install
make clean || true
powered by btf.