aboutsummaryrefslogtreecommitdiff
path: root/devel/libedit/Makefile
blob: 149746f66b4a77ca4fbd6e309179373bc8a466be (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
# Created by: jasone
# $FreeBSD$

PORTNAME=	libedit
PORTVERSION=	2.6.10
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.astron.com/pub/libedit/ \
		http://www.canonware.com/download/libedit/

MAINTAINER=	rodrigo@FreeBSD.org
COMMENT=	Command line editing library

LICENSE=	BSD

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

post-extract:
	${MV} ${WRKSRC}/readline ${WRKSRC}/editline

post-patch:
	@${REINPLACE_CMD} -e 's|$$(PREFIX)|$$(DESTDIR)&|g' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|CFLAGS -O|CFLAGS|g ; \
		 s|MAJOR="2"|MAJOR="6"|g' ${WRKSRC}/configure

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libedit.so

.include <bsd.port.mk>