pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/968b00605fa5
branches:  trunk
changeset: 571384:968b00605fa5
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 11 19:30:01 2010 +0000

description:
DESTDIR support

diffstat:

 mail/smtpfeed/Makefile |   9 ++++++---
 misc/kp/Makefile       |   7 ++++++-
 misc/lile/Makefile     |  10 +++++++++-
 3 files changed, 21 insertions(+), 5 deletions(-)

diffs (89 lines):

diff -r 4c1cf283d42b -r 968b00605fa5 mail/smtpfeed/Makefile
--- a/mail/smtpfeed/Makefile    Thu Feb 11 19:29:38 2010 +0000
+++ b/mail/smtpfeed/Makefile    Thu Feb 11 19:30:01 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2008/03/17 11:37:41 obache Exp $
+# $NetBSD: Makefile,v 1.33 2010/02/11 19:39:04 joerg Exp $
 
 DISTNAME=      smtpfeed-1.18
 PKGREVISION=   1
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://member.wide.ad.jp/wg/smtp/smtpfeed.html
 COMMENT=       SMTP Fast Exploding External Deliverer for Sendmail
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 # sendmail 8.x with WIDE patch works better with it, than stock 8.x.
 # require sendmail from pkgsrc.
 #DEPENDS+=     sendmail>=8.9.3:../../mail/sendmail
@@ -34,11 +36,12 @@
 .endif
 
 INSTALLATION_DIRS=     libexec ${PKGMANDIR}/man8 share/doc/smtpfeed
+INSTALL_MAKE_FLAGS+=   libexecdir=${DESTDIR}${PREFIX}/libexec
 
 post-install:
-       ${INSTALL_MAN} ${WRKSRC}/smtpfeed.8 ${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_MAN} ${WRKSRC}/smtpfeed.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
        for i in ${DOCS}; do \
-               ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/smtpfeed; \
+               ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/share/doc/smtpfeed; \
        done
 
 .include "../../devel/sysexits/buildlink3.mk"
diff -r 4c1cf283d42b -r 968b00605fa5 misc/kp/Makefile
--- a/misc/kp/Makefile  Thu Feb 11 19:29:38 2010 +0000
+++ b/misc/kp/Makefile  Thu Feb 11 19:30:01 2010 +0000
@@ -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 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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 -r 4c1cf283d42b -r 968b00605fa5 misc/lile/Makefile
--- a/misc/lile/Makefile        Thu Feb 11 19:29:38 2010 +0000
+++ b/misc/lile/Makefile        Thu Feb 11 19:30:01 2010 +0000
@@ -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 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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"



Home | Main Index | Thread Index | Old Index