openbsd-ports/shells/zsh/Makefile

54 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.91 2019/07/12 20:49:39 sthen Exp $
COMMENT= Z shell, Bourne shell-compatible
V= 5.7.1
DISTNAME= zsh-$V
CATEGORIES= shells
MAINTAINER= Pierre-Emmanuel Andre <pea@openbsd.org>
HOMEPAGE= https://www.zsh.org/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=zsh/} \
https://www.zsh.org/pub/
EXTRACT_SUFX= .tar.xz
# BSD
PERMIT_PACKAGE= Yes
WANTLIB= c curses iconv m pcre
LIB_DEPENDS= converters/libiconv \
devel/pcre
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-zsh-mem \
--enable-zsh-secure-free \
--enable-maildir-support \
--enable-function-subdirs \
--enable-multibyte \
--enable-pcre \
--disable-gdbm \
--with-tcsetpgrp
SUBST_VARS= V
EXTFILES= Calendar/calendar_add Example/cat Example/zless \
Misc/checkmail Misc/run-help \
Misc/run-help-ip \
Misc/sticky-note Misc/zcalc \
Misc/zed Misc/zkbd
pre-configure:
.for i in ${EXTFILES}
sed -i -e "s,/bin/zsh,${TRUEPREFIX}/bin/zsh,g" \
${WRKSRC}/Functions/${i}
.endfor
.include <bsd.port.mk>