mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
08004f22d7
- Support staging PR: ports/184844 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Kai Wang <kaiw27@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fish
|
|
PORTVERSION= 2.0.0
|
|
CATEGORIES= shells
|
|
MASTER_SITES= http://fishshell.com/files/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= User friendly command line shell
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= gmake iconv
|
|
USE_AUTOTOOLS= autoconf
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -pthread ${ICONV_LIB}
|
|
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_ENV= ac_cv_func_gettext=yes
|
|
NLS_CONFIGURE_OFF= --without-gettext
|
|
|
|
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| ; \
|
|
/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>
|