diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-11 19:30:01 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-11 19:30:01 +0000 |
commit | bf79a078e124e28794b33bc3a73b24cc90f6abe2 (patch) | |
tree | c40cbf781ffa70a5b9033ddefc45f81ae6157929 /misc | |
parent | b7dee47fb58089bff5766cfc00320bebf9da5e16 (diff) | |
download | pkgsrc-bf79a078e124e28794b33bc3a73b24cc90f6abe2.tar.gz |
DESTDIR support
Diffstat (limited to 'misc')
-rw-r--r-- | misc/kp/Makefile | 7 | ||||
-rw-r--r-- | misc/lile/Makefile | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/misc/kp/Makefile b/misc/kp/Makefile index db7252f1c08..f53f826c7e8 100644 --- a/misc/kp/Makefile +++ b/misc/kp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2007/02/22 19:26:49 wiz Exp $ +# $NetBSD: Makefile,v 1.28 2010/02/11 19:30:01 joerg Exp $ DISTNAME= kp-0.96 PKGREVISION= 1 @@ -8,8 +8,13 @@ MASTER_SITES= ftp://stampede.cs.berkeley.edu/pub/kp/ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= The Keyboard Practicer, touch-type training program +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= tk>=8.3.2:../../x11/tk +INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} \ + KPMANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + pre-configure: for f in `${FIND} ${WRKDIR}/. -type f -print \ | ${XARGS} ${GREP} -l '/usr/local'`; do \ 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" |