blob: 12f175517261e571daa5b74f403ed927e8499e2f (
plain) (
blame)
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
|
# Created by: Kai Wang <kaiw27@gmail.com>
# $FreeBSD$
PORTNAME= fish
PORTVERSION= 1.23.1
PORTREVISION= 9
CATEGORIES= shells
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= A user friendly command line shell
USE_AUTOTOOLS= autoconf
USE_ICONV= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USES= gettext
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= LIBS="${LDFLAGS}"
CONFIGURE_ARGS= --docdir=${DOCSDIR}
OPTIONS_DEFINE= XSEL DOXYGEN
OPTIONS_DEFAULT= XSEL DOXYGEN
XSEL_DESC= Build with xsel
.include <bsd.port.options.mk>
MAN1= alias.1 and.1 begin.1 bg.1 bind.1 block.1 \
break.1 breakpoint.1 builtin.1 case.1 cd.1 \
command.1 commandline.1 complete.1 contains.1 \
continue.1 count.1 dirh.1 dirs.1 else.1 \
emit.1 end.1 eval.1 exec.1 exit.1 fg.1 fish.1 \
fish_indent.1 fish_pager.1 fish_prompt.1 \
fishd.1 for.1 funced.1 funcsave.1 function.1 \
functions.1 help.1 if.1 isatty.1 jobs.1 math.1 \
mimedb.1 nextd.1 not.1 open.1 or.1 popd.1 \
prevd.1 psub.1 pushd.1 random.1 read.1 return.1 \
set.1 set_color.1 source.1 status.1 switch.1 \
trap.1 type.1 ulimit.1 umask.1 vared.1 while.1
# Don't use the bundled xsel
CONFIGURE_ARGS+= --without-xsel
.if ${PORT_OPTIONS:MXSEL}
RUN_DEPENDS= xsel:${PORTSDIR}/x11/xsel-conrad
.endif
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
.endif
.if ${OSVERSION} > 900008
# already in base system
PLIST_SUB+= SEQ="@comment "
.else
PLIST_SUB+= SEQ=""
.endif
post-patch:
.if ! ${PORT_OPTIONS:MDOCS} || ! ${PORT_OPTIONS:MDOXYGEN}
@${REINPLACE_CMD} -e 's|$(PROGRAMS) user_doc|$(PROGRAMS)|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 589,593d ${WRKSRC}/Makefile.in
.endif
post-install:
${CP} ${DATADIR}/man/*.1 ${PREFIX}/man/man1/
${RM} -rf ${DATADIR}/man
if ${GREP} -q '${PREFIX}/bin/${PORTNAME}' /etc/shells; then \
${TRUE}; \
else \
${ECHO_CMD} '${PREFIX}/bin/${PORTNAME}' >> /etc/shells; \
fi
.include <bsd.port.mk>
|