blob: ded1755287254073b99083a93ba6dd94a5d1e3a7 (
plain)
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
56
57
58
59
60
61
62
|
# $NetBSD: Makefile,v 1.34 2022/04/05 20:49:22 bsiegert Exp $
DISTNAME= fish-3.4.1
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GITHUB:=fish-shell/}
GITHUB_PROJECT= fish-shell
GITHUB_RELEASE= ${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.fishshell.com/
COMMENT= User friendly command line shell for UNIX-like operating systems
LICENSE= gnu-gpl-v2
USE_LANGUAGES+= c c++
USE_CMAKE= yes
USE_TOOLS+= msgfmt
CMAKE_ARGS+= -DIntl_INCLUDE_DIR=${PREFIX}/include
CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PKG_SYSCONFDIR}
CMAKE_ARGS+= -DBUILD_DOCS=OFF
PKG_SHELL= bin/fish
LDFLAGS.SunOS+= -lintl
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/execinfo.h)
CPPFLAGS+= -DHAVE_BACKTRACE
CPPFLAGS+= -DHAVE_BACKTRACE_SYMBOLS
CXXFLAGS.NetBSD+= -fpermissive
LDFLAGS+= -lexecinfo
.endif
# Upstream intentionally omits open.1 on Darwin, but adds realpath.1
PLIST_VARS+= open realpath
.if ${OPSYS} == "Darwin"
PLIST.realpath= yes
.else
PLIST.open= yes
.endif
EGDIR= ${PREFIX}/share/examples/fish
CONF_FILES= ${EGDIR}/config.fish ${PKG_SYSCONFDIR}/fish/config.fish
OWN_DIRS+= ${PKG_SYSCONFDIR}/fish/functions
OWN_DIRS+= ${PKG_SYSCONFDIR}/fish/conf.d
OWN_DIRS+= ${PKG_SYSCONFDIR}/fish/completions
REPLACE_PYTHON= share/tools/create_manpage_completions.py
# Avoid C++ <version> issues.
post-extract:
${MV} ${WRKSRC}/version ${WRKSRC}/version.txt
.include "../../devel/pcre2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gettext-tools/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/atomic64.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|