blob: 65914bda42a774c899aba7306c355e83c59330b2 (
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
|
# Created by: Marwan Burelle <marwan.burelle@lri.fr>
# $FreeBSD$
PORTNAME= ledit
PORTVERSION= 2.03
CATEGORIES= sysutils
MASTER_SITES= http://cristal.inria.fr/%SUBDIR%/ \
http://pauillac.inria.fr/%SUBDIR%/
MASTER_SITE_SUBDIR= ~ddr/${PORTNAME}/distrib/src
MAINTAINER= k@stereochro.me
COMMENT= Line editor to be used with interactive commands
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= camlp5r:${PORTSDIR}/devel/ocaml-camlp5
USES= gmake tar:tgz
USE_OCAML= yes
ALL_TARGET= all ledit.opt
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= bin/ledit \
man/man1/ledit.1.gz
PORTDOCS= CHANGES README
OPTIONS_DEFINE= DOCS
do-configure:
${REINPLACE_CMD} -e '/^BINDIR=/s|/usr/local|${STAGEDIR}${PREFIX}|' \
-e '/^LIBDIR=/s|/usr/local|${STAGEDIR}${PREFIX}|' \
-e '/^MANDIR=/s|/usr/local|${STAGEDIR}${PREFIX}|' \
${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ledit
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|