pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libdaemon DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/65995ccb0e7c
branches:  trunk
changeset: 554043:65995ccb0e7c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Feb 07 17:51:59 2009 +0000

description:
DESTDIR support

diffstat:

 devel/libdaemon/Makefile |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 0a5f975879bd -r 65995ccb0e7c devel/libdaemon/Makefile
--- a/devel/libdaemon/Makefile  Sat Feb 07 17:44:40 2009 +0000
+++ b/devel/libdaemon/Makefile  Sat Feb 07 17:51:59 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/12/20 17:24:48 ahoka Exp $
+# $NetBSD: Makefile,v 1.2 2009/02/07 17:51:59 joerg Exp $
 #
 
 DISTNAME=              libdaemon-0.12
@@ -9,6 +9,8 @@
 HOMEPAGE=              http://0pointer.de/lennart/projects/libdaemon/
 COMMENT=               C library that eases the writing of UNIX daemons
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_PKGLOCALEDIR=      YES
 USE_LIBTOOL=           YES
 PKGCONFIG_OVERRIDE+=   ${WRKSRC}/libdaemon.pc.in
@@ -16,8 +18,9 @@
 
 CONFIGURE_ARGS+=       --disable-lynx
 
+INSTALLATION_DIRS=     share/doc/libdaemon
+
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libdaemon
-       ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/libdaemon
+       ${INSTALL_DATA} ${WRKSRC}/doc/README ${DESTDIR}${PREFIX}/share/doc/libdaemon
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index