summaryrefslogtreecommitdiff
path: root/misc/lile/Makefile
blob: 4f29fd8b8379c74584ca7e61c6dcdb70023f6bbb (plain)
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
# $NetBSD: Makefile,v 1.16 2012/10/08 09:57:29 asau Exp $

DISTNAME=	lile-2.0
PKGNAME=	ile-2.0
CATEGORIES=	misc
MASTER_SITES=	ftp://ftp.inria.fr/system/user/
EXTRACT_SUFX=	.tar.z

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Input Line Editor that wraps itself around programs

# uses struct sgttyb
NOT_FOR_PLATFORM=	Linux-*-*

USE_TOOLS+=	gzcat

INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man1

post-patch:
	@(cd ${WRKSRC}; ${SED} "s,/usr/local,${PREFIX}," Makefile	\
		> Makefile.done; ${MV} Makefile.done Makefile;		\
		${ECHO} all: ile >> Makefile;				\
		${ECHO} CC=${CC} ${CFLAGS} >> Makefile )

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ile ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/ile.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"