pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/srsh * Use *_MAKE_FLAGS instead of *_TARGET to pas...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6324eb33114a
branches:  trunk
changeset: 536864:6324eb33114a
user:      obache <obache%pkgsrc.org@localhost>
date:      Thu Dec 27 12:08:01 2007 +0000

description:
* Use *_MAKE_FLAGS instead of *_TARGET to pass variables.
* Add DESTDIR support.
* Honor PKGMANDIR.

Bump PKGREVISION.

diffstat:

 net/srsh/Makefile |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 24e56dad1ad6 -r 6324eb33114a net/srsh/Makefile
--- a/net/srsh/Makefile Thu Dec 27 12:01:58 2007 +0000
+++ b/net/srsh/Makefile Thu Dec 27 12:08:01 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2004/12/03 15:15:06 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2007/12/27 12:08:01 obache Exp $
 #
 
 DISTNAME=              srsh-1.2
+PKGREVISION=           1
 CATEGORIES=            net
 MASTER_SITES=          ftp://ftp.gw.com/pub/people/kim/
 
@@ -12,8 +13,16 @@
 DEPENDS+=              {ssh{,6}-[0-9]*,openssh-[0-9]*}:../../security/openssh
 .endif
 
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 NO_CONFIGURE=          yes
-BUILD_TARGET=          all PREFIX=${PREFIX}
-INSTALL_TARGET=                install PREFIX=${PREFIX}
+BUILD_MAKE_FLAGS+=     PREFIX=${PREFIX}
+INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX}
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+SUBST_CLASSES+=                manpath
+SUBST_STAGE.manpath=   post-extract
+SUBST_FILES.manpath=   Makefile
+SUBST_SED.manpath=     -e 's,/man/,/${PKGMANDIR}/,'
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index