From owner-p4-projects@FreeBSD.ORG Wed Jul 12 20:21:49 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D45AE16A68D; Wed, 12 Jul 2006 20:21:48 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA4FC16A684 for ; Wed, 12 Jul 2006 20:21:48 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 739D543D49 for ; Wed, 12 Jul 2006 20:21:48 +0000 (GMT) (envelope-from gabor@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6CKLm81082687 for ; Wed, 12 Jul 2006 20:21:48 GMT (envelope-from gabor@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6CKLmhM082684 for perforce@freebsd.org; Wed, 12 Jul 2006 20:21:48 GMT (envelope-from gabor@FreeBSD.org) Date: Wed, 12 Jul 2006 20:21:48 GMT Message-Id: <200607122021.k6CKLmhM082684@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gabor@FreeBSD.org using -f From: Gabor Kovesdan To: Perforce Change Reviews Cc: Subject: PERFORCE change 101411 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 20:21:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=101411 Change 101411 by gabor@gabor_spitfire on 2006/07/12 20:21:16 Ports can only be installed with DESTDIR set if DESTDIR_READY is set as well. The DESTDIR implementation is a big change to our ports infrastructure, so we can't just commit these changes to Mk/, ports have to be tested and fixed as well. This macro will help us to accomplish this. Suggested by: sem Affected files ... .. //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#19 edit Differences ... ==== //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#19 (text+ko) ==== @@ -502,6 +502,9 @@ # under /bla/var/db/pkg. # Default: / (not set) # +# DESTDIR_READY - You should set this in your port's Makefile if your port is +# ready to be used with DESTDIR set. +# # X11BASE - Where X11 ports install things. # Default: /usr/X11R6 # LOCALBASE - Where non-X11 ports install things. @@ -1518,6 +1521,10 @@ _POSTMKINCLUDED= yes +.if !defined(DESTDIR_READY) +IGNORE= is not ready to be used with DESTDIR +.endif + WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work .if defined(NO_WRKSUBDIR) WRKSRC?= ${WRKDIR}