From owner-freebsd-ports Sat Apr 29 2:42:53 2000 Delivered-To: freebsd-ports@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id 2667537B6E5 for ; Sat, 29 Apr 2000 02:42:50 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca41-197.ix.netcom.com [209.111.208.197]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id FAA09831; Sat, 29 Apr 2000 05:41:47 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id CAA24907; Sat, 29 Apr 2000 02:38:42 -0700 (PDT) To: lioux@uol.com.br Cc: freebsd-ports@FreeBSD.ORG Subject: Re: bsd.port.mk CONFIGURE_WRKDIR proposal References: <20000427002216.A97999@Fedaykin.here> <20000427133219.B476@Fedaykin.here> From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Date: 29 Apr 2000 02:38:10 -0700 In-Reply-To: lioux@uol.com.br's message of "Thu, 27 Apr 2000 13:32:19 -0300" Message-ID: Lines: 48 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: lioux@uol.com.br * However, is SRC semantically better suited than DIR? I think so. Since it replaces ${WRKSRC}. It will look weird if I said CONFIGURE_WRKDIR defaults to ${WRKSRC}. * (wink) Just do it in the next few days so that I can * enjoy using it. HEheheh Will do. Is the following ok? Satoshi ------- Index: bsd.port.mk =================================================================== RCS file: /usr/cvs/ports/Mk/bsd.port.mk,v retrieving revision 1.337 diff -u -r1.337 bsd.port.mk --- bsd.port.mk 2000/04/20 01:06:12 1.337 +++ bsd.port.mk 2000/04/29 09:37:28 @@ -368,7 +368,8 @@ # configure stage will not do anything if this is not set. # GNU_CONFIGURE - Set if you are using GNU configure (optional). Implies # HAS_CONFIGURE. -# CONFIGURE_SCRIPT - Name of configure script (defaults: configure). +# CONFIGURE_WRKSRC - Directory to run configure in (default: ${WRKSRC}). +# CONFIGURE_SCRIPT - Name of configure script (default: configure). # CONFIGURE_TARGET - The name of target to call when GNU_CONFIGURE is # defined (default: ${MACHINE_ARCH}--freebsd${OSREL}). # CONFIGURE_ARGS - Pass these args to configure if ${HAS_CONFIGURE} is set @@ -1202,6 +1203,7 @@ .endif PKGLATESTFILE?= ${PKGLATESTREPOSITORY}/${PKGBASE}${PKG_SUFX} +CONFIGURE_WRKSRC?= ${WRKSRC} CONFIGURE_SCRIPT?= configure CONFIGURE_TARGET?= ${MACHINE_ARCH}--freebsd${OSREL} CONFIGURE_LOG?= config.log @@ -1709,7 +1711,7 @@ ${SCRIPTDIR}/configure; \ fi .if defined(HAS_CONFIGURE) - @(cd ${WRKSRC} && \ + @(cd ${CONFIGURE_WRKSRC} && \ if ! ${SETENV} CC="${CC}" CXX="${CXX}" \ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message