blob: b75d7f8bff9b3d01b58a297fbb2df248576f43a5 (
plain)
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
|
# Created by: pgf
# $FreeBSD$
PORTNAME= vile
PORTVERSION= 9.8k
CATEGORIES= editors
MASTER_SITES= ftp://dickey.his.com/vile/current/ \
ftp://invisible-island.net/vile/current/
EXTRACT_SUFX= .tgz
PATCH_SITES= ${MASTER_SITES:S,vile/current/,vile/patches/,g}
PATCHFILES= # none
MAINTAINER= ports@FreeBSD.org
COMMENT= VI Like Emacs -- console version
LICENSE= GPLv2
OPTIONS_DEFINE= FILTERS ICONV PERL DOCS
FILTERS_DESC= Loadable filters
USES= pkgconfig shebangfix
SHEBANG_FILES= perl/vileget
GNU_CONFIGURE= yes
MAKEFILE= makefile
MAKE_JOBS_SAFE= yes
MAN1= vile.1
CONFLICTS_INSTALL= xvile-[0-9]*
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFILTERS}
CONFIGURE_ARGS+= --with-loadable-filters
PLIST_SUB+= SO_EXT=".so"
.else
PLIST_SUB+= SO_EXT=""
.endif
.if ${PORT_OPTIONS:MICONV}
USES+= iconv
CONFIGURE_ARGS+= --with-iconv --with-libiconv-prefix=${LOCALBASE}
PLIST_SUB+= ICONV=""
.else
CONFIGURE_ARGS+= --without-iconv --without-locale
PLIST_SUB+= ICONV="@comment "
.endif
.if ${PORT_OPTIONS:MPERL}
USES+= perl5
CONFIGURE_ARGS+= --with-perl
PLIST_SUB+= PERL=""
.else
PLIST_SUB+= PERL="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|^DOCDIR|#DOCDIR|' ${WRKSRC}/makefile.in
@${REINPLACE_CMD} -e \
's|defined(FLEX_BETA)|0|' ${WRKSRC}/filters/filters.h
post-install:
@${MKDIR} ${DATADIR}/macros
(cd ${WRKSRC}/macros && ${INSTALL_DATA} *.rc ${DATADIR}/macros)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.doc ${DOCSDIR})
.endif
.include <bsd.port.mk>
|