Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= fish |
8 |
PORTNAME= fish |
9 |
PORTVERSION= 1.23.1 |
9 |
PORTVERSION= 1.23.1 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= shells |
11 |
CATEGORIES= shells |
11 |
MASTER_SITES= SF |
12 |
MASTER_SITES= SF |
12 |
|
13 |
|
Lines 18-31
Link Here
|
18 |
USE_GMAKE= yes |
19 |
USE_GMAKE= yes |
19 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
20 |
|
21 |
|
21 |
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen |
22 |
USE_GETTEXT= yes |
22 |
CPPFLAGS+= -I${LOCALBASE}/include |
23 |
CPPFLAGS+= -I${LOCALBASE}/include |
23 |
LDFLAGS+= -L${LOCALBASE}/lib |
24 |
LDFLAGS+= -L${LOCALBASE}/lib |
24 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LIBS="${LDFLAGS}" \ |
25 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LIBS="${LDFLAGS}" \ |
25 |
LDFLAGS="${LDFLAGS}" |
26 |
LDFLAGS="${LDFLAGS}" |
26 |
|
27 |
|
27 |
OPTIONS= NLS "Native language support" on \ |
28 |
OPTIONS= XSEL "Build with xsel" on \ |
28 |
XSEL "Build with xsel" on |
29 |
DOXYGEN "Build docs with doxygen" on |
29 |
|
30 |
|
30 |
MAN1= alias.1 and.1 begin.1 bg.1 bind.1 block.1 \ |
31 |
MAN1= alias.1 and.1 begin.1 bg.1 bind.1 block.1 \ |
31 |
break.1 breakpoint.1 builtin.1 case.1 cd.1 \ |
32 |
break.1 breakpoint.1 builtin.1 case.1 cd.1 \ |
Lines 42-68
Link Here
|
42 |
|
43 |
|
43 |
.include <bsd.port.pre.mk> |
44 |
.include <bsd.port.pre.mk> |
44 |
|
45 |
|
45 |
.if !defined(WITHOUT_NLS) |
46 |
# Don't use the bundled xsel |
46 |
USE_GETTEXT= yes |
47 |
CONFIGURE_ARGS+= --without-xsel |
47 |
PLIST_SUB+= NLS="" |
|
|
48 |
.else |
49 |
CONFIGURE_ARGS+= --without-gettext |
50 |
PLIST_SUB+= NLS="@comment " |
51 |
.endif |
52 |
|
48 |
|
53 |
.if !defined(WITHOUT_XSEL) |
49 |
.if !defined(WITHOUT_XSEL) |
54 |
CONFLICTS= xsel-[0-9]* |
50 |
RUN_DEPENDS= xsel:${PORTSDIR}/x11/xsel-conrad |
55 |
PLIST_SUB+= XSEL="" |
51 |
.endif |
56 |
MAN1+= xsel.1 |
52 |
|
|
|
53 |
.if !defined(WITHOUT_DOXYGEN) || defined(NOPORTDOCS) |
54 |
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen |
55 |
PLIST_SUB+= DOCS="" |
57 |
.else |
56 |
.else |
58 |
CONFIGURE_ARGS+= --without-xsel |
57 |
PLIST_SUB+= DOCS="@comment " |
59 |
PLIST_SUB+= XSEL="@comment " |
|
|
60 |
.endif |
58 |
.endif |
61 |
|
59 |
|
62 |
post-install: |
60 |
post-patch: |
63 |
.if !defined(WITHOUT_XSEL) |
61 |
.if defined(WITHOUT_DOXYGEN) || defined(NOPORTDOCS) |
64 |
${MV} ${PREFIX}/man/man1/xsel.1x ${PREFIX}/man/man1/xsel.1 |
62 |
@${REINPLACE_CMD} -e 's|$(PROGRAMS) user_doc|$(PROGRAMS)|' \ |
|
|
63 |
${WRKSRC}/Makefile.in |
64 |
@${REINPLACE_CMD} -e 589,593d ${WRKSRC}/Makefile.in |
65 |
.endif |
65 |
.endif |
|
|
66 |
|
67 |
post-install: |
66 |
${CP} ${DATADIR}/man/*.1 ${PREFIX}/man/man1/ |
68 |
${CP} ${DATADIR}/man/*.1 ${PREFIX}/man/man1/ |
67 |
${RM} -rf ${DATADIR}/man |
69 |
${RM} -rf ${DATADIR}/man |
68 |
if ${GREP} -q '${PREFIX}/bin/${PORTNAME}' /etc/shells; then \ |
70 |
if ${GREP} -q '${PREFIX}/bin/${PORTNAME}' /etc/shells; then \ |