From nobody Mon May 24 18:16:47 2021 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1A1C29EA5E0 for ; Mon, 24 May 2021 18:15:45 +0000 (UTC) (envelope-from pj@smo.de) Received: from mail.adebahr.de (mail.adebahr.de [185.66.179.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.adebahr.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fplkl71GGz3Qr0 for ; Mon, 24 May 2021 18:15:43 +0000 (UTC) (envelope-from pj@smo.de) Received: from localhost (localhost [127.0.0.1]) by mail.adebahr.de (Postfix) with ESMTP id B664260949416 for ; Mon, 24 May 2021 20:15:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=smo.de; h= content-transfer-encoding:content-language:content-type :content-type:mime-version:user-agent:date:date:message-id :subject:subject:from:from; s=mail; t=1621880135; x=1623694536; bh=euiB+byy8YTH+KlfcGtqu4yMgFWbD3lpVujO84CBYA8=; b=kDNKy9fRE0IY +hNNyILGjTm+tf2pB77xCiMWXKk8sKOba+uK2o3l9G/Qt2jme12wsHHM3TIaQh3x pBKRa7cK+tVEgLwEuoeaD012tGBVW5fE29D87hDOrMLNSFb8sTIpnbv5/I/pGqlx UuN1dKoC/0nHA2kEkqmSbEnZM15ZwEA= Received: from mail.adebahr.de ([127.0.0.1]) by localhost (mail.adebahr.de [127.0.0.1]) (amavisd-new, port 10026) with LMTP id hC_cl9Vm91CP for ; Mon, 24 May 2021 20:15:35 +0200 (CEST) Received: from skjaldbreidur.intern.smo.de (p5b239a2d.dip0.t-ipconnect.de [91.35.154.45]) by mail.adebahr.de (Postfix) with ESMTPSA id 8EDE3606D4629 for ; Mon, 24 May 2021 20:15:35 +0200 (CEST) To: ports@freebsd.org From: Philipp Ost Subject: How to correctly reference WRKSRC of another port? Message-ID: Date: Mon, 24 May 2021 20:16:47 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fplkl71GGz3Qr0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=smo.de header.s=mail header.b=kDNKy9fR; dmarc=none; spf=pass (mx1.freebsd.org: domain of pj@smo.de designates 185.66.179.123 as permitted sender) smtp.mailfrom=pj@smo.de X-Spamd-Result: default: False [-0.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.66.179.96/27]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[smo.de:+]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[185.66.179.123:from]; ASN(0.00)[asn:198930, ipnet:185.66.176.0/22, country:DE]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[91.35.154.45:received]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[smo.de:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; DMARC_NA(0.00)[smo.de]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[185.66.179.123:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; MAILMAN_DEST(0.00)[ports] Hi everyone, I'm currently working on a port (my first ;-)) which has a (optional) build time dependency on the sources of math/nauty. Currently, I've hardwired '/usr/ports/math/nauty/work/nauty27r1' as argument to the configure script, but that's clearly not the way to do it. The Porter's Handbook mentions using WRKDIRPREFIXPORTSDIR [0], but that does not work. A search for WRKDIRPREFIXPORTSDIR in /usr/ports/Mk comes up empty. Do I explicitly have to define this variable? I've set NAUTY_BUILD_DEPENDS=nauty>0:math/nauty:extract. How do I correctly reference nauty's WRKSRC? It would be nice if anyone could point me in the right direction. Thanks in advance! Philipp [0] https://docs.freebsd.org/en/books/porters-handbook/porting-dads/#porting-wrkdirprefix