summaryrefslogtreecommitdiff
path: root/sysutils/ledit/Makefile
blob: a9928c298299865ef49b974da87f6695a8d7d146 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ex:ts=8
# Ports collection makefile for:	ledit
# Date created:			Feb 8, 2005
# Whom:				Marwan Burelle <marwan.burelle@lri.fr>
#
# $FreeBSD$
#

PORTNAME=	ledit
PORTVERSION=	2.03
CATEGORIES=	sysutils
MASTER_SITES=	http://cristal.inria.fr/~ddr/ledit/distrib/src/ \
		http://pauillac.inria.fr/~ddr/ledit/distrib/src/
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Line editor to be used with interactive commands

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	camlp5r:${PORTSDIR}/devel/ocaml-camlp5

USE_GMAKE=	yes
USE_OCAML=	yes

ALL_TARGET=	all ledit.opt

PLIST_FILES=	bin/ledit
MAKE_JOBS_UNSAFE=	yes

MAN1=		ledit.1
PORTDOCS=	CHANGES LICENSE README

.include <bsd.port.pre.mk>

do-configure:
	${REINPLACE_CMD} -e '/^BINDIR=/s;/usr/local;${PREFIX};' \
			-e '/^LIBDIR=/s;/usr/local;${PREFIX};' \
			-e '/^MANDIR=/s;/usr/local;${PREFIX};' \
			${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
. endfor
.endif

.include <bsd.port.post.mk>