aboutsummaryrefslogtreecommitdiffstats
path: root/editors/vile/Makefile
blob: be53b009854f910c513f9e282bdb20aa095d2c70 (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
# Created by: pgf
# $FreeBSD$

PORTNAME=   vile
PORTVERSION=    9.8m
CATEGORIES= editors
MASTER_SITES=   ftp://dickey.his.com/vile/current/ \
        ftp://invisible-island.net/vile/current/ \
        http://invisible-mirror.net/archives/vile/current/

PATCH_SITES=    ${MASTER_SITES:S,vile/current/,vile/patches/,g}
PATCHFILES= # none

MAINTAINER= ports@FreeBSD.org
COMMENT=    VI Like Emacs -- console version

LICENSE=    GPLv2

BUILD_DEPENDS=  reflex:${PORTSDIR}/textproc/reflex

USES=       pkgconfig shebangfix tar:tgz
SHEBANG_FILES=  perl/vileget
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  cf_cv_crypt_works=yes
MAKEFILE=   makefile
INSTALL_TARGET= install install-doc install-html

CONFLICTS_INSTALL=  xvile-[0-9]*

OPTIONS_DEFINE=     DOCS FILTERS ICONV PERL
OPTIONS_SUB=        yes

FILTERS_DESC=       Loadable filters
FILTERS_CONFIGURE_WITH= loadable-filters
ICONV_USES=     iconv
ICONV_CONFIGURE_ON= --with-iconv ${ICONV_CONFIGURE_ARG}
ICONV_CONFIGURE_OFF=    --without-iconv --without-locale
PERL_USES=      perl5
PERL_CONFIGURE_WITH=    perl

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFILTERS}
PLIST_SUB+= SO_EXT=".so"
.else
PLIST_SUB+= SO_EXT=""
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|$$(datadir)/doc|@datadir@/doc/vile| ; \
         s|$$(datadir)/html|$$(docdir)/html| ; \
         s|\($$(DOCDIR)\) \($$(MANDIR)\)|\1 $$(HTMLDIR) \2|' \
        ${WRKSRC}/makefile.in

.include <bsd.port.mk>