Date: Thu, 12 Sep 2002 03:15:08 -0400 From: Alan E <alane@geeksrus.net> To: Edwin Groothuis <edwin@mavetju.org> Cc: Marcus vA <mva121@gmx.net>, freebsd-ports@FreeBSD.ORG Subject: Re: creation of a dynamic pkg-plist Message-ID: <20020912071508.GD87610@wwweasel.geeksrus.net> In-Reply-To: <20020912052714.GC69776@k7.mavetju> References: <20020912071354.23986b26.mva121@gmx.net> <20020912052714.GC69776@k7.mavetju>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 12, 2002 at 03:27:14PM +1000, Edwin Groothuis wrote: >On Thu, Sep 12, 2002 at 07:13:54AM +0200, Marcus vA wrote: >> I would like to know how I can create a kind of dynamic pkg-plist, which >> depends on some values the user will give to the make target. > >The variable PLIST normally points to ${PKGDIR}/pkg-plist, but if >you let it point to ${WRKDIR}/pkg-plist, it will be >${PKGDIR}/work/pkg-plist. However, bsd.port.mk checks for the existence at the time the makefile is evaluated using a .if exists(${PLIST}), so that alone doesn't work. You have to: PLIST=whatever .include <bsd.port.pre.mk> pre-install: # create plist here .include <bsd.port.post.mk> -- Alan Eldridge Unix/C(++) IT Pro, 20 yrs, seeking new employment. (http://wwweasel.geeksrus.net/~alane/resume.txt) KDE, KDE-FreeBSD Teams (http://www.kde.org, http://freebsd.kde.org/) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020912071508.GD87610>