blob: a108d89f7a86792b7bf7220e4766bb9d6cc5c535 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Created by: pgf
# $FreeBSD$
PORTNAME= vile
PORTVERSION= 9.8n
CATEGORIES= editors
MASTER_SITES= ftp://dickey.his.com/vile/current/ \
ftp://invisible-island.net/vile/current/ \
http://invisible-mirror.net/archives/vile/current/
PKGNAMEPREFIX= x
PATCH_SITES= ${MASTER_SITES:S,vile/current/,vile/patches/,g}
PATCHFILES= # none
MAINTAINER= ports@FreeBSD.org
COMMENT= VI Like Emacs -- X11 version
LICENSE= GPLv2
BUILD_DEPENDS= reflex:${PORTSDIR}/textproc/reflex
USES= pkgconfig shebangfix tar:tgz
SHEBANG_FILES= macros/lxvile macros/lxvile-fonts perl/vileget
USE_XORG= x11 xext xpm
GNU_CONFIGURE= yes
CONFIGURE_ENV= cf_cv_crypt_works=yes
CONFIGURE_ARGS= --disable-imake \
--enable-fontset \
--with-xpm \
--with-pixmapdir=${PREFIX}/share/pixmaps
MAKEFILE= makefile
INSTALL_TARGET= install install-doc install-html
CONFLICTS_INSTALL= vile-[0-9]*
OPTIONS_DEFINE= DOCS FILTERS FREETYPE ICONV PERL
OPTIONS_RADIO= MENUS
OPTIONS_RADIO_MENUS= MOTIF XAW XAW3D
OPTIONS_DEFAULT= ICONV
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
MENUS_DESC= Support for menus
MOTIF_USES= motif
MOTIF_CONFIGURE_ON= --with-screen=motif
PERL_USES= perl5
PERL_CONFIGURE_WITH= perl
XAW_DESC= X Athena Widgets
XAW_USE= XORG=xaw
XAW_CONFIGURE_ON= --with-screen=athena
XAW3D_DESC= X Athena Widgets with 3D effect
XAW3D_LIB_DEPENDS= libXaw3d.so:${PORTSDIR}/x11-toolkits/Xaw3d
XAW3D_CONFIGURE_ON= --enable-colored-menus \
--with-Xaw3d \
--with-screen=xaw3d
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFILTERS}
PLIST_SUB+= SO_EXT=".so"
.else
PLIST_SUB+= SO_EXT=""
.endif
.if empty(PORT_OPTIONS:MICONV)
BROKEN= Does not build if ICONV support is disabled
.endif
.if empty(PORT_OPTIONS:MMOTIF) && empty(PORT_OPTIONS:MXAW) && empty(PORT_OPTIONS:MXAW3D)
CONFIGURE_ARGS+= --with-screen=x11
.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
@${REINPLACE_CMD} -e \
'/^Icon/s|=.*|=${PREFIX}/share/pixmaps/vile.xpm| ; \
/^Categories/s|Application;||' \
${WRKSRC}/macros/*.desktop
post-install:
(cd ${WRKSRC}/macros && ${INSTALL_DATA} *.desktop \
${STAGEDIR}${DESKTOPDIR})
.include <bsd.port.mk>
|