Andreas Wacknitz
2024-03-31 783118944874d559e30eea1600352e3feb5263a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2017, Longrin Wischnewski.
# Copyright 2019, Michal Nowak
# Copyright 2021, Nona Hansel
# Copyright 2022 Niklas Poslovski
#
 
BUILD_BITS= 64
BUILD_STYLE= cmake
USE_PARALLEL_BUILD= yes
USE_DEFAULT_TEST_TRANSFORMS= yes
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=        fish
COMPONENT_VERSION=    3.7.1
COMPONENT_SUMMARY=    Fish is a smart and user-friendly command line shell
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_PROJECT_URL=    https://fishshell.com
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH=    sha256:614c9f5643cd0799df391395fa6bbc3649427bb839722ce3b114d3bbc1a3b250
COMPONENT_ARCHIVE_URL=    https://github.com/fish-shell/fish-shell/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_FMRI=        shell/fish
COMPONENT_CLASSIFICATION=    System/Shells
COMPONENT_LICENSE=    GPLv2
 
include $(WS_MAKE_RULES)/common.mk
PATH= $(PATH.gnu)
 
CMAKE_OPTIONS += -DCMAKE_INSTALL_SYSCONFDIR="/etc"
CMAKE_OPTIONS += -DSYS_PCRE2_INCLUDE_DIR=/usr/include/pcre
CMAKE_OPTIONS += -DFISH_USE_SYSTEM_PCRE2=ON
CMAKE_OPTIONS += -DWITH_GETTEXT=ON
 
COMPONENT_TEST_ENV += LC_ALL=C.UTF-8
COMPONENT_TEST_CMD= gmake
COMPONENT_TEST_TARGETS= test
 
# Manually added dependencies (for tests)
PYTHON_REQUIRED_PACKAGES += library/python/pexpect
 
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += library/pcre2
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math