1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/shells/fish/Makefile
Kubilay Kocak b7e2076021 shells/fish: Fix for hangs on FreeBSD 10.1+
Fix for hangs on FreeBSD 10.1+ due to WCHAR_T missing as an alias for
UCS-4-INTERNAL.

[1] https://github.com/fish-shell/fish-shell/issues/1741

PR:		196661
Submitted by:	David Adam <zanchey ucc.gu.uwa.edu.au>
Approved by:	maintainer <freebsd.users gmail com>
2015-04-18 13:20:52 +00:00

53 lines
1.2 KiB
Makefile

# Created by: Kai Wang <kaiw27@gmail.com>
# $FreeBSD$
PORTNAME= fish
PORTVERSION= 2.1.1
PORTREVISION= 3
CATEGORIES= shells
MASTER_SITES= http://fishshell.com/files/${PORTVERSION}/
MAINTAINER= freebsd.users@gmail.com
COMMENT= User friendly command line shell
LICENSE= GPLv2
USES= cpe gmake iconv
USE_AUTOTOOLS= autoconf
CPE_VENDOR= fishshell
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread ${ICONV_LIB}
PORTDOCS= *
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENV= ac_cv_func_gettext=yes
NLS_CONFIGURE_OFF= --without-gettext
DOCS_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-Makefile.in
post-patch:
@${REINPLACE_CMD} -e \
'/^all:/s|user_doc|| ; \
s| "$$(HAVE_GETTEXT)" = 1| x$$(HAVE_GETTEXT) = x1| ; \
s| $$(HAVE_GETTEXT) = 1| x$$(HAVE_GETTEXT) = x1| ; \
s|$$(DESTDIR)$$(bindir)/fish|$$(bindir)/fish|g ; \
/fish\/man\/man1/d' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|-rdynamic|-Wl,--export-dynamic| ; \
/pthread_create/d ; \
s|ncurses curses|curses| ; \
s|ncurses.h||' ${WRKSRC}/configure.ac
post-install:
.for i in fish fish_indent fish_pager fishd mimedb
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
.include <bsd.port.mk>