aboutsummaryrefslogtreecommitdiff
path: root/devel/editline/Makefile
blob: 46a9c442e2269659144218c72af05f9d2b22b396 (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
# $FreeBSD$

PORTNAME=	editline
PORTVERSION=	1.17.1
CATEGORIES=	devel

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Minix editline: A free readline() for UNIX

LICENSE=	BSD4CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		autoreconf libtool ncurses pathfix

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

GH_ACCOUNT=	troglobit
USE_GITHUB=	yes

OPTIONS_DEFINE=	DOCS

post-patch:
# Do not install LICENSE to DOCSDIR
	@${REINPLACE_CMD} -e '/doc_DATA/ s| LICENSE||' ${WRKSRC}/Makefile.am
# Rename editline.3 to libeditline.3 to avoid conflict with libedit
	@${REINPLACE_CMD} -e 's|editline.3|lib&|' ${WRKSRC}/man/Makefile.am
	@${MV} ${WRKSRC}/man/editline.3 ${WRKSRC}/man/libeditline.3

.include <bsd.port.mk>