sthen 6ee0c39d2e Updates from Donovan Watteau, who takes maintainer. From Donovan's mail:
* Fix a startup crash that's extremely easy to trigger on OpenBSD
  (patch-draw_c).

* Various fixes from a forked Github version (there was no official
  elvis release since 2004), clang warns about most of them.

* Remove some questionable/broken/dangerous features: backtick
  support in filenames, WYSIWYG for nroff/tex files, and
  HTTP/FTP support.  Looking at the code, I'd feel better having
  less features, here.  Please complain if you really want them.

* Remove dead FTP mirrors from MASTER_SITES, and use an HTTP server
  instead.

* Remove some previous patches of mine which only dealt with
  whitespace in man pages: fixing that was just useless noise.
2017-04-17 21:43:15 +00:00

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2017/04/17 21:43:15 sthen Exp $
COMMENT= clone of the ex/vi text editor
DISTNAME= elvis-2.2_0
PKGNAME= ${DISTNAME:S/_/./}
REVISION= 3
CATEGORIES= editors
HOMEPAGE= http://elvis.the-little-red-haired-girl.org/
MAINTAINER= Donovan Watteau <tsoomi@gmail.com>
# Clarified Artistic License
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c curses
MASTER_SITES= http://www.the-little-red-haired-girl.org/pub/elvis/
FLAVORS= no_x11
FLAVOR?=
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= --bindir=${PREFIX}/bin \
--datadir=${PREFIX}/share/elvis \
--docdir=${PREFIX}/share/doc/elvis \
--verbose
.if ${FLAVOR:Mno_x11}
CONFIGURE_ARGS+= --with-x=no
.else
CONFIGURE_ARGS+= --with-x \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
CFLAGS+= -I${X11BASE}/include/freetype2
WANTLIB+= X11 Xft Xpm pthread-stubs xcb
.endif
NO_TEST= Yes
do-install:
rm ${WRKSRC}/{doc,data}/*.orig
${INSTALL_DATA_DIR} ${PREFIX}/share/elvis
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/elvis
.for prog in elvfmt elvis ref
${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${prog}.man ${PREFIX}/man/man1/${prog}.1
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/elvtags ${PREFIX}/bin
cd ${WRKSRC}/data/ && pax -rw . ${PREFIX}/share/elvis
cd ${WRKSRC}/doc/ && pax -rw . ${PREFIX}/share/doc/elvis
.include <bsd.port.mk>