2012-12-29 05:16:49 +01:00
|
|
|
# Created by: pgf
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1995-02-28 00:01:11 +01:00
|
|
|
|
2000-04-14 08:21:02 +02:00
|
|
|
PORTNAME= xvile
|
2013-07-11 17:15:30 +02:00
|
|
|
PORTVERSION= 9.8k
|
1996-11-11 06:07:53 +01:00
|
|
|
CATEGORIES= editors
|
2013-02-07 15:21:18 +01:00
|
|
|
MASTER_SITES= ftp://dickey.his.com/vile/current/ \
|
|
|
|
ftp://invisible-island.net/vile/current/
|
|
|
|
DISTNAME= vile-${PORTVERSION}
|
1996-12-03 13:53:39 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-10-09 11:54:54 +02:00
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITES:S,vile/current/,vile/patches/,g}
|
|
|
|
PATCHFILES= # none
|
2002-07-04 10:02:37 +02:00
|
|
|
|
2012-12-29 05:16:49 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-02-07 15:21:18 +01:00
|
|
|
COMMENT= VI Like Emacs -- X11 version
|
1996-11-11 06:07:53 +01:00
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= FILTERS ICONV PERL DOCS
|
|
|
|
OPTIONS_RADIO= MENUS
|
|
|
|
OPTIONS_RADIO_MENUS= MOTIF XAW XAW3D
|
2013-04-29 16:26:14 +02:00
|
|
|
OPTIONS_DEFAULT= ICONV
|
2013-02-07 15:21:18 +01:00
|
|
|
FILTERS_DESC= Loadable filters
|
|
|
|
MENUS_DESC= Support for menus
|
|
|
|
XAW_DESC= X Athena Widgets
|
|
|
|
XAW3D_DESC= X Athena Widgets with 3D effect
|
|
|
|
|
2013-07-11 17:15:30 +02:00
|
|
|
USES= pkgconfig shebangfix
|
|
|
|
SHEBANG_FILES= perl/vileget
|
2013-02-07 15:21:18 +01:00
|
|
|
USE_XORG= x11 xext xpm
|
2006-04-13 19:55:47 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-04-29 16:26:14 +02:00
|
|
|
CONFIGURE_ARGS= --disable-imake \
|
|
|
|
--enable-fontset \
|
|
|
|
--with-xpm \
|
2013-02-07 15:21:18 +01:00
|
|
|
--with-pixmapdir=${PREFIX}/share/pixmaps
|
|
|
|
MAKEFILE= makefile
|
2000-06-01 15:29:49 +02:00
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
DATADIR= ${PREFIX}/share/vile
|
|
|
|
|
1996-11-17 08:01:32 +01:00
|
|
|
MAN1= xvile.1
|
1995-04-24 05:38:32 +02:00
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
CONFLICTS_INSTALL= vile-[0-9]*
|
2007-05-29 18:55:40 +02:00
|
|
|
|
2013-09-20 18:36:23 +02:00
|
|
|
NO_STAGE= yes
|
2013-01-06 15:26:52 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2002-01-13 20:09:49 +01:00
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
.if ${PORT_OPTIONS:MFILTERS}
|
|
|
|
CONFIGURE_ARGS+= --with-loadable-filters
|
|
|
|
PLIST_SUB+= SO_EXT=".so"
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SO_EXT=""
|
|
|
|
.endif
|
|
|
|
|
2013-01-06 15:26:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MICONV}
|
2013-04-27 10:50:46 +02:00
|
|
|
USES+= iconv
|
2013-09-04 22:01:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-iconv ${ICONV_CONFIGURE_ARG}
|
2013-02-07 15:21:18 +01:00
|
|
|
PLIST_SUB+= ICONV=""
|
2008-02-17 12:49:05 +01:00
|
|
|
.else
|
2013-04-29 16:26:14 +02:00
|
|
|
BROKEN= Does not build if ICONV support is disabled
|
2013-02-07 15:21:18 +01:00
|
|
|
CONFIGURE_ARGS+= --without-iconv --without-locale
|
|
|
|
PLIST_SUB+= ICONV="@comment "
|
2008-02-17 12:49:05 +01:00
|
|
|
.endif
|
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-08-03 10:45:51 +02:00
|
|
|
USES+= perl5
|
2013-02-07 15:21:18 +01:00
|
|
|
CONFIGURE_ARGS+= --with-perl
|
|
|
|
PLIST_SUB+= PERL=""
|
1997-09-06 21:58:13 +02:00
|
|
|
.else
|
2013-02-07 15:21:18 +01:00
|
|
|
PLIST_SUB+= PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if empty(PORT_OPTIONS:MMOTIF) && empty(PORT_OPTIONS:MXAW) && empty(PORT_OPTIONS:MXAW3D)
|
2006-04-13 19:55:47 +02:00
|
|
|
CONFIGURE_ARGS+= --with-screen=x11
|
1997-09-06 21:58:13 +02:00
|
|
|
.endif
|
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
.if ${PORT_OPTIONS:MMOTIF}
|
2013-07-10 08:49:35 +02:00
|
|
|
USES+= motif
|
2013-02-07 15:21:18 +01:00
|
|
|
CONFIGURE_ARGS+= --with-screen=motif
|
1998-06-04 22:42:17 +02:00
|
|
|
.endif
|
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
.if ${PORT_OPTIONS:MXAW}
|
|
|
|
USE_XORG+= xaw
|
|
|
|
CONFIGURE_ARGS+= --with-screen=athena
|
2001-03-23 22:02:17 +01:00
|
|
|
.endif
|
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
.if ${PORT_OPTIONS:MXAW3D}
|
|
|
|
LIB_DEPENDS+= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
|
|
|
|
CONFIGURE_ARGS+= --enable-colored-menus \
|
|
|
|
--with-Xaw3d \
|
|
|
|
--with-screen=xaw3d
|
2001-03-23 22:02:17 +01:00
|
|
|
.endif
|
|
|
|
|
2013-02-07 15:21:18 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^DOCDIR|#DOCDIR|' ${WRKSRC}/makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
2013-07-11 17:15:30 +02:00
|
|
|
's|defined(FLEX_BETA)|0|' ${WRKSRC}/filters/filters.h
|
2013-02-07 15:21:18 +01:00
|
|
|
|
1997-09-06 21:58:13 +02:00
|
|
|
post-install:
|
2013-02-07 15:21:18 +01:00
|
|
|
@${MKDIR} ${DATADIR}/macros
|
|
|
|
(cd ${WRKSRC}/macros && ${INSTALL_DATA} *.rc ${DATADIR}/macros)
|
|
|
|
@${MKDIR} ${DESKTOPDIR}
|
|
|
|
(cd ${WRKSRC}/macros && ${INSTALL_DATA} *.desktop ${DESKTOPDIR})
|
2013-01-06 15:26:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-02-07 15:21:18 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.doc ${DOCSDIR})
|
1997-09-06 21:58:13 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-06 15:26:52 +01:00
|
|
|
.include <bsd.port.mk>
|