Received: by mail.netbsd.org (Postfix, from userid 605) id E7B8F84ED8; Mon, 25 Jul 2022 05:42:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2CD5E84EB6 for ; Mon, 25 Jul 2022 05:42:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 0S81IADJaMYO for ; Mon, 25 Jul 2022 05:42:22 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 974FC84CEC for ; Mon, 25 Jul 2022 05:42:22 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8B354FB1A; Mon, 25 Jul 2022 05:42:22 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1658727742190440" MIME-Version: 1.0 Date: Mon, 25 Jul 2022 05:42:22 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/doc/guide/files To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20220725054222.8B354FB1A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1658727742190440 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: rillig Date: Mon Jul 25 05:42:22 UTC 2022 Modified Files: pkgsrc/doc/guide/files: build.xml Log Message: doc/guide: document how PKGPATH is typically used To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 pkgsrc/doc/guide/files/build.xml Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1658727742190440 Content-Disposition: inline Content-Length: 2447 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/doc/guide/files/build.xml diff -u pkgsrc/doc/guide/files/build.xml:1.87 pkgsrc/doc/guide/files/build.xml:1.88 --- pkgsrc/doc/guide/files/build.xml:1.87 Sat May 21 11:42:29 2022 +++ pkgsrc/doc/guide/files/build.xml Mon Jul 25 05:42:22 2022 @@ -1,4 +1,4 @@ - + The build process @@ -122,8 +122,19 @@ PKGPATH This is a pathname relative to - PKGSRCDIR that points to the current - package. + PKGSRCDIR that points to the current package. + It is defined after including bsd.prefs.mk + and can be used in makefile fragments that are used by several + packages to distinguish between these packages. Other variables + that would serve the same purpose are PKGBASE + and PKGNAME, but these are only defined after + including bsd.pkg.mk, which is too + late. + + In &mk.conf;, the pkgsrc user can use + PKGPATH to tweak variables like + MAKE_JOBS and + CFLAGS. WRKDIR This is an absolute pathname pointing to the directory @@ -155,10 +166,11 @@ Running a phase You can run a particular phase by typing make - phase, where phase is the name of the - phase. This will automatically run all phases that are required for this - phase. The default phase is build, that is, when you - run make without parameters in a package directory, + phase, where + phase is the name of the phase. This will + automatically run all phases that are required for this phase. The + default phase is build, that is, when you run + make without parameters in a package directory, the package will be built, but not installed. --_----------=_1658727742190440--