1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/editors/2bsd-vi/Makefile
Jean-Yves Lefort 0840e7f325 - Update to 050325
- Do not chmod /var/preserve, use /var/preserve/${UNIQUENAME} instead

PR:		ports/80162
Submitted by:	David Thiel <lx@redundancy.redundancy.org> (maintainer)
Approved by:	adamw (mentor)
2005-04-21 17:53:34 +00:00

43 lines
973 B
Makefile

# New ports collection makefile for: 2bsd-vi
# Date created: 2004-07-12
# Whom: David Thiel <lx@redundancy.redundancy.org>
#
# $FreeBSD$
#
PORTNAME= vi
PORTVERSION= 050325
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ex-vi
PKGNAMEPREFIX= 2bsd-
DISTNAME= ex-${PORTVERSION}
MAINTAINER= lx@redundancy.redundancy.org
COMMENT= The original vi editor, updated to run on modern OSes
USE_BZIP2= yes
USE_REINPLACE= yes
PRESERVEDIR= /var/preserve/${UNIQUENAME}
PLIST_SUB= PRESERVEDIR="${PRESERVEDIR}"
MAN1= ex.1 vi.1
MLINKS= ex.1 edit.1 vi.1 vedit.1 vi.1 view.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
EXTRA_PATCHES+= ${FILESDIR}/stable-Makefile.patch
.endif
post-patch:
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|-DMB||g' ${WRKSRC}/Makefile
.endif
.for f in Makefile ex.1 expreserve.c exrecover.c vi.1
@${REINPLACE_CMD} -e 's|/var/preserve|${PRESERVEDIR}|' ${WRKSRC}/${f}
.endfor
.include <bsd.port.post.mk>