From ea1a639a923f5295dea62fbf9e6811aaa7058dec Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 11 Feb 2010 19:30:01 +0000 Subject: DESTDIR support --- misc/lile/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'misc/lile/Makefile') diff --git a/misc/lile/Makefile b/misc/lile/Makefile index 2b43963e08d..c9a9aa54d28 100644 --- a/misc/lile/Makefile +++ b/misc/lile/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2007/03/04 11:30:33 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2010/02/11 19:37:03 joerg Exp $ DISTNAME= lile-2.0 PKGNAME= ile-2.0 @@ -9,15 +9,23 @@ EXTRACT_SUFX= .tar.z MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Input Line Editor that wraps itself around programs +PKG_DESTDIR_SUPPORT= user-destdir + # 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" -- cgit v1.2.3