pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libvolume_id DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6faf19470343
branches:  trunk
changeset: 550675:6faf19470343
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Wed Nov 26 07:47:56 2008 +0000

description:
DESTDIR support.

diffstat:

 devel/libvolume_id/Makefile |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r 703e0cde23d4 -r 6faf19470343 devel/libvolume_id/Makefile
--- a/devel/libvolume_id/Makefile       Wed Nov 26 04:52:37 2008 +0000
+++ b/devel/libvolume_id/Makefile       Wed Nov 26 07:47:56 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/11/22 13:48:23 jmcneill Exp $
+# $NetBSD: Makefile,v 1.2 2008/11/26 07:47:56 hasso Exp $
 #
 
 DISTNAME=              libvolume_id-0.81.0
@@ -10,6 +10,8 @@
 HOMEPAGE=              ${MASTER_SITES}
 COMMENT=               Library to provide file system type information
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+INSTALLATION_DIRS=     include lib lib/pkgconfig 
 USE_TOOLS+=            gmake pkg-config ranlib
 
 MAKE_ENV+=             E=@${ECHO}
@@ -19,10 +21,10 @@
 MAKE_ENV+=             prefix=${PREFIX}
 
 do-install:
-       ${INSTALL_DATA} ${WRKSRC}/libvolume_id.pc ${PREFIX}/lib/pkgconfig/libvolume_id.pc
-       ${INSTALL_DATA} ${WRKSRC}/libvolume_id.h ${PREFIX}/include/libvolume_id.h
-       ${INSTALL_DATA} ${WRKSRC}/libvolume_id.a ${PREFIX}/lib/libvolume_id.a
-       ${INSTALL_LIB} ${WRKSRC}/libvolume_id.so.0 ${PREFIX}/lib/libvolume_id.so.0
-       ${LN} -sf ${PREFIX}/lib/libvolume_id.so.0 ${PREFIX}/lib/libvolume_id.so
+       ${INSTALL_DATA} ${WRKSRC}/libvolume_id.pc ${DESTDIR}${PREFIX}/lib/pkgconfig/libvolume_id.pc
+       ${INSTALL_DATA} ${WRKSRC}/libvolume_id.h ${DESTDIR}${PREFIX}/include/libvolume_id.h
+       ${INSTALL_DATA} ${WRKSRC}/libvolume_id.a ${DESTDIR}${PREFIX}/lib/libvolume_id.a
+       ${INSTALL_LIB} ${WRKSRC}/libvolume_id.so.0 ${DESTDIR}${PREFIX}/lib/libvolume_id.so.0
+       ${LN} -sf ${PREFIX}/lib/libvolume_id.so.0 ${DESTDIR}${PREFIX}/lib/libvolume_id.so
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index