2009-08-10 02:29:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2009/08/10 06:31:08 kili Exp $
|
2001-04-14 07:36:13 -04:00
|
|
|
|
2007-09-15 20:44:00 -04:00
|
|
|
COMMENT= clone of the ex/vi text editor
|
2000-06-20 09:30:56 -04:00
|
|
|
|
2008-12-11 08:58:14 -05:00
|
|
|
DISTNAME= elvis-2.2_0
|
2009-08-10 02:29:51 -04:00
|
|
|
PKGNAME= ${DISTNAME:S/_/./}p0
|
2000-06-20 09:30:56 -04:00
|
|
|
CATEGORIES= editors
|
2006-07-19 11:11:53 -04:00
|
|
|
HOMEPAGE= http://elvis.the-little-red-haired-girl.org/
|
2000-06-20 09:30:56 -04:00
|
|
|
|
2008-12-11 08:58:14 -05:00
|
|
|
# Clarified Artistic License
|
2000-06-20 09:30:56 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-24 06:08:02 -05:00
|
|
|
WANTLIB= c curses
|
2000-06-20 09:30:56 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.cs.pdx.edu/pub/elvis/ \
|
|
|
|
ftp://ftp.fh-wedel.de/pub/elvis/
|
|
|
|
|
2001-04-14 07:36:13 -04:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
2000-06-20 09:30:56 -04:00
|
|
|
CONFIGURE_STYLE= simple
|
2008-12-11 08:58:14 -05:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/bin \
|
|
|
|
--datadir=${PREFIX}/share/elvis
|
|
|
|
|
2000-06-20 09:30:56 -04:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --with-x=no
|
|
|
|
.else
|
2008-12-11 08:58:14 -05:00
|
|
|
CONFIGURE_ARGS+= --with-x \
|
|
|
|
--x-includes=${X11BASE}/include \
|
|
|
|
--x-libraries=${X11BASE}/lib
|
|
|
|
CFLAGS+= -I${X11BASE}/include/freetype2
|
2000-06-20 09:30:56 -04:00
|
|
|
USE_X11= Yes
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB+= X11 Xft Xpm pthread-stubs xcb
|
2000-06-20 09:30:56 -04:00
|
|
|
.endif
|
|
|
|
|
2001-10-25 12:14:51 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2000-06-20 09:30:56 -04:00
|
|
|
do-install:
|
2008-12-11 08:58:14 -05:00
|
|
|
@rm -f ${WRKSRC}/doc/ctags.man.orig
|
2005-09-05 08:14:36 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/elvis
|
2008-12-11 08:58:14 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/elvis
|
|
|
|
.for prog in elvfmt elvis ref
|
2000-06-20 09:30:56 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${PREFIX}/bin
|
2008-12-11 08:58:14 -05:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${prog}.man ${PREFIX}/man/man1/${prog}.1
|
2000-06-20 09:30:56 -04:00
|
|
|
.endfor
|
2008-12-11 08:58:14 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/elvtags ${PREFIX}/bin
|
|
|
|
cd ${WRKSRC}/data/ && pax -rw . ${PREFIX}/share/elvis
|
|
|
|
cd ${WRKSRC}/doc/ && pax -rw . ${PREFIX}/share/doc/elvis
|
2000-06-20 09:30:56 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|