mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
16c1253b4a
Disable LTO. On riscv64: Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi) ld: error: lto.tmp: cannot link object files with different floating-point ABI cc: error: linker command failed with exit code 1 (use -v to see invocation) On powerpc64, LTO is broken with LLVM.
72 lines
2.4 KiB
Makefile
72 lines
2.4 KiB
Makefile
PORTNAME= kitty
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.23.1
|
|
CATEGORIES= x11
|
|
|
|
MAINTAINER= alexis.praga@free.fr
|
|
COMMENT= Cross-platform, fast, featureful, GPU-based terminal emulator
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}furo>0:textproc/py-furo@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sphinx-copybutton>0:textproc/py-sphinx-copybutton@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sphinx-inline-tabs>0:textproc/py-sphinx-inline-tabs@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sphinxext-opengraph>0:textproc/py-sphinxext-opengraph@${PY_FLAVOR} \
|
|
sphinx-build:textproc/py-sphinx@${PY_FLAVOR} \
|
|
wayland-protocols>=0:graphics/wayland-protocols
|
|
LIB_DEPENDS= libdbus-1.so:devel/dbus \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2 \
|
|
libharfbuzz.so:print/harfbuzz \
|
|
liblcms2.so:graphics/lcms2 \
|
|
libpng.so:graphics/png \
|
|
libwayland-client.so:graphics/wayland \
|
|
libwayland-cursor.so:graphics/wayland \
|
|
libxkbcommon.so:x11/libxkbcommon
|
|
|
|
USES= compiler:c11 cpe gettext-runtime gl gmake ncurses:port pkgconfig \
|
|
python:3.5+ shebangfix terminfo xorg
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= kovidgoyal
|
|
USE_GL= gl
|
|
USE_XORG= x11 xcb xcursor xi xinerama xrandr
|
|
CPE_VENDOR= kitty_project
|
|
|
|
SHEBANG_FILES= build-terminfo count-lines-of-code mypy-editor-integration \
|
|
update-on-ox update-on-ubuntu
|
|
SHEBANG_GLOB= *.py
|
|
|
|
TEST_ENV= PATH="${STAGEDIR}${PREFIX}/bin:${PATH}"
|
|
TEST_TARGET= test
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD} python=${PYTHON_CMD}
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/linux-package
|
|
|
|
_STRIP_TARGETS= lib/kitty/kitty/fast_data_types.so lib/kitty/kitty/glfw-x11.so \
|
|
lib/kitty/kittens/diff/diff_speedup.so \
|
|
lib/kitty/kittens/unicode_input/unicode_names.so \
|
|
lib/kitty/kitty/glfw-wayland.so \
|
|
lib/kitty/kittens/choose/subseq_matcher.so bin/kitty
|
|
_EMPTY_DIRS= kittens/choose kittens/diff kittens/unicode_input kittens kitty
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc64 || ${ARCH:Mriscv64*}
|
|
MAKE_ENV+= KITTY_NO_LTO=1
|
|
.endif
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py linux-package --update-check-interval 0)
|
|
${FIND} ${INSTALL_WRKSRC} -name __pycache__ -type d -exec ${RM} -r -- {} +
|
|
|
|
do-install:
|
|
${CP} -a ${INSTALL_WRKSRC}/ ${STAGEDIR}${PREFIX}
|
|
${STRIP_CMD} ${_STRIP_TARGETS:S|^|${STAGEDIR}${PREFIX}/|}
|
|
${INSTALL_DATA} ${WRKSRC}/terminfo/kitty.terminfo \
|
|
${STAGEDIR}${PREFIX}/share/misc/
|
|
|
|
.include <bsd.port.mk>
|