1# Created by: pgf 2# $FreeBSD: head/editors/xvile/Makefile 516802 2019-11-05 15:48:40Z zeising $ 3 4PORTNAME= vile 5PORTVERSION= 9.8v 6CATEGORIES= editors 7MASTER_SITES= ftp://ftp.invisible-island.net/pub/vile/current/ \ 8 https://invisible-mirror.net/archives/vile/current/ 9PKGNAMEPREFIX= x 10 11PATCH_SITES= ${MASTER_SITES:S,vile/current/,vile/patches/,g} 12PATCHFILES= # none 13 14MAINTAINER= dickey@invisible-island.net 15COMMENT= VI Like Emacs -- X11 version 16 17LICENSE= GPLv2 18 19BUILD_DEPENDS= reflex:textproc/reflex 20 21USES= pkgconfig shebangfix tar:tgz xorg 22SHEBANG_FILES= macros/lxvile macros/lxvile-fonts perl/vileget 23USE_XORG= x11 xext xpm xt 24GNU_CONFIGURE= yes 25CONFIGURE_ENV= cf_cv_crypt_works=yes 26CONFIGURE_ARGS= --disable-imake \ 27 --disable-desktop \ 28 --enable-fontset \ 29 --with-icon-theme \ 30 --with-xpm \ 31 --datarootdir=${PREFIX}/share/xvile \ 32 --with-icondir=${PREFIX}/share/icons \ 33 --with-libdir-path=${PREFIX}/lib/xvile \ 34 --with-pixmapdir=${PREFIX}/share/pixmaps \ 35 --with-startup-path=${PREFIX}/share/xvile 36MAKEFILE= makefile 37INSTALL_TARGET= install install-doc install-html 38 39OPTIONS_DEFINE= DOCS FILTERS ICONV PERL 40OPTIONS_RADIO= MENUS 41OPTIONS_RADIO_MENUS= MOTIF XAW XAW3D 42OPTIONS_DEFAULT= ICONV 43OPTIONS_SUB= yes 44 45FILTERS_DESC= Loadable filters 46FILTERS_CONFIGURE_WITH= loadable-filters 47ICONV_USES= iconv 48ICONV_CONFIGURE_ON= --with-iconv ${ICONV_CONFIGURE_ARG} 49ICONV_CONFIGURE_OFF= --without-iconv --without-locale 50MENUS_DESC= Support for menus 51MOTIF_USES= motif 52MOTIF_CONFIGURE_ON= --enable-colored-menus \ 53 --with-screen=motif 54PERL_USES= perl5 55PERL_CONFIGURE_WITH= perl 56XAW_DESC= X Athena Widgets 57XAW_USE= XORG=xaw 58XAW_CONFIGURE_ON= --with-screen=athena 59XAW3D_DESC= X Athena Widgets with 3D effect 60XAW3D_LIB_DEPENDS= libXaw3d.so:x11-toolkits/Xaw3d 61XAW3D_CONFIGURE_ON= --enable-colored-menus \ 62 --with-Xaw3d \ 63 --with-screen=xaw3d 64 65# fixes to make this not conflict with the "vile" port 66DATADIR= ${PREFIX}/share/xvile 67DOCSDIR= ${PREFIX}/share/doc/xvile 68 69.include <bsd.port.options.mk> 70 71.if ${PORT_OPTIONS:MFILTERS} 72PLIST_SUB+= SO_EXT=".so" 73.else 74PLIST_SUB+= SO_EXT="" 75.endif 76 77.if empty(PORT_OPTIONS:MMOTIF) && empty(PORT_OPTIONS:MXAW) && empty(PORT_OPTIONS:MXAW3D) 78CONFIGURE_ARGS+= --with-screen=x11 79.endif 80 81post-patch: 82 @${REINPLACE_CMD} -e \ 83 's|$$(datadir)/doc|@prefix@/share/doc/xvile| ; \ 84 s|^\(datadir[ ]*=[ ]*\)@datadir@.*|\1@datarootdir@| ; \ 85 s|@datadir@/doc/vile|@datarootdir@/doc/xvile| ; \ 86 s|$$(datadir)/html|$$(docdir)/html| ; \ 87 s|$$(datadir)/perl|@datadir@/perl| ; \ 88 s|$$(BINDIR)/vileget|$$(BINDIR)/xvileget| ; \ 89 s|\($$(DOCDIR)\) \($$(MANDIR)\)|\1 $$(HTMLDIR) \2|' \ 90 ${WRKSRC}/makefile.in 91 @${REINPLACE_CMD} -e \ 92 's|^\(datadir[ ]*=[ ]*\)@datadir@.*|\1@datarootdir@|' \ 93 ${WRKSRC}/filters/makefile.in 94 95post-install: 96 (cd ${WRKSRC}/macros && ${INSTALL_DATA} *.desktop \ 97 ${STAGEDIR}${PREFIX}/share/applications) 98 99.include <bsd.port.mk> 100