blob: cd98f72185515f839c8711da646c2696ec550fd1 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# $NetBSD: Makefile,v 1.99 2020/12/25 21:47:47 ryoon Exp $
DISTNAME= zsh-5.8
PKGREVISION= 2
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=zsh/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://zsh.sourceforge.net/
COMMENT= The Z shell
LICENSE= gnu-gpl-v2 AND zsh
USE_LANGUAGES= c c99
USE_TOOLS+= automake autoconf makeinfo
GNU_CONFIGURE= yes
INFO_FILES= yes
TEXINFO_REQD= 4.0
CHECK_PORTABILITY_SKIP= Misc/c2z # not used
CONFIGURE_ARGS+= --disable-gdbm
CONFIGURE_ARGS+= --enable-etcdir=${PKG_SYSCONFDIR:Q}
# Ensure we can find initscr(3) otherwise the curses module will not be built.
CONFIGURE_ARGS+= --with-term-lib="${BUILDLINK_LIBNAME.curses} ${BUILDLINK_LIBNAME.terminfo}"
.include "../../mk/bsd.prefs.mk"
# This cannot be detected automatically without a controlling tty, for example
# when bulk building.
.if ${OPSYS} == "Interix"
CONFIGURE_ARGS+= --without-tcsetpgrp
.else
CONFIGURE_ARGS+= --with-tcsetpgrp
.endif
.if ${USE_CROSS_COMPILE:U:tl} == "yes"
# These can't be detected automagically in cross-builds.
CONFIGURE_ENV.NetBSD+= zsh_cv_shared_environ=yes
CONFIGURE_ENV.NetBSD+= zsh_cv_shared_tgetent=yes
CONFIGURE_ENV.NetBSD+= zsh_cv_shared_tigetstr=yes
CONFIGURE_ENV.NetBSD+= zsh_cv_sys_dynamic_execsyms=yes
.endif
INSTALLATION_DIRS+= share/doc/zsh
PLIST_VARS+= xattr
.if exists(/usr/include/sys/xattr.h) || \
exists(/usr/include/${NATIVE_MACHINE_GNU_ARCH}-${LOWER_OPSYS}-gnu/sys/xattr.h) || \
defined(OSX_SDK_PATH) && exists(${OSX_SDK_PATH}/usr/include/sys/xattr.h)
PLIST.xattr= yes
.endif
PRINT_PLIST_AWK+= {if ($$0 ~ /attr.so/) {$$0 = "$${PLIST.xattr}" $$0;}}
MAKE_JOBS_SAFE= no
INSTALL_TARGET= install install.info
TEST_TARGET= check
PKG_SHELL= bin/zsh
REPLACE_INTERPRETER+= zsh
REPLACE.zsh.old= .*zsh
REPLACE.zsh.new= ${PREFIX}/bin/zsh
REPLACE_FILES.zsh= Functions/Calendar/*
REPLACE_FILES.zsh+= Functions/Example/*
REPLACE_FILES.zsh+= Functions/Misc/*
REPLACE_FILES.zsh+= Misc/globtests*
REPLACE_FILES.zsh+= Test/runtests.zsh Test/ztst.zsh
REPLACE_FILES.zsh+= Util/check-tmux-state Util/reporter
SUBST_CLASSES+= pkgdb
SUBST_STAGE.pkgdb= pre-configure
SUBST_MESSAGE.pkgdb= Set PKGDB_DIR
SUBST_FILES.pkgdb= Completion/BSD/Command/_bsd_pkg
SUBST_VARS.pkgdb= PKG_DBDIR
.include "options.mk"
pre-configure:
${RM} ${WRKSRC}/Completion/BSD/Command/_bsd_pkg.orig
cd ${WRKSRC}; autoreconf -fiv
post-install:
.for f in FEATURES NEWS Etc/BUGS Etc/FAQ
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/zsh
.endfor
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/terminfo.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|