pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/kdeutils3 let "ark" use /usr/bin/tar on NetBSD 1....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/40e6aa09be6a
branches:  trunk
changeset: 472129:40e6aa09be6a
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Mon Apr 05 09:31:30 2004 +0000

description:
let "ark" use /usr/bin/tar on NetBSD 1.6 and beyond, as it's sufficient
to replace gtar here.  no more gtar-base on my system.  :-)

thanks to seb@ for the pkgsrc Makefile magic help.

diffstat:

 misc/kdeutils3/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 30bca3951b28 -r 40e6aa09be6a misc/kdeutils3/Makefile
--- a/misc/kdeutils3/Makefile   Mon Apr 05 09:07:56 2004 +0000
+++ b/misc/kdeutils3/Makefile   Mon Apr 05 09:31:30 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/03/26 02:27:46 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2004/04/05 09:31:30 mrg Exp $
 
 DISTNAME=      kdeutils-${_KDE_VERSION}
 PKGREVISION=   1
@@ -8,7 +8,7 @@
 
 .include "../../meta-pkgs/kde3/Makefile.kde3"
 
-DEPENDS+=      gtar-base>=1.13.25:../../archivers/gtar-base
+.include "../../mk/bsd.prefs.mk"
 
 USE_BUILDLINK2=                YES
 USE_PKGINSTALL=                YES
@@ -17,9 +17,15 @@
 LDFLAGS+=              ${EXPORT_SYMBOLS_LDFLAGS}
 MAKE_ENV+=             EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
 
+.if !empty(MACHINE_PLATFORM:MNetBSD-1.6*) || !empty(MACHINE_PLATFORM:MNetBSD-[2-9]*)
+CPPFLAGS+=             -DARK_TAR=\"\\\"/usr/bin/tar\\\"\"
+.else
+DEPENDS+=      gtar-base>=1.13.25:../../archivers/gtar-base
+
 EVAL_PREFIX+=          PREFIX.gtar=gtar
 PREFIX.gtar_DEFAULT=   ${LOCALBASE}
 CPPFLAGS+=             -DARK_TAR=\"\\\"${PREFIX.gtar}/bin/${GNU_PROGRAM_PREFIX}tar\\\"\"
+.endif
 
 .include "../../mk/bsd.prefs.mk"
 



Home | Main Index | Thread Index | Old Index