tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PLIST and dynamic filenames?
On Sun, 15 Feb 2015 17:12:19 +0100, Thomas Klausner wrote:
> On Sun, Feb 15, 2015 at 02:17:55PM +0100, Hauke Fath wrote:
>> On Sun, 15 Feb 2015 13:22:17 +0100, Tobias Nygren wrote:
>>> The functionality you seek is called GENERATE_PLIST. Surprisingly it's
>>> not mentioned in the guide, but if you grep -r the tree you will find
>>> plenty of examples of how to combine it with a regular PLIST.
>>
>> Thanks, I found the variable in the meantime, and it does the trick -
>> see editors/xemacs/Makefile. As you indicate, it's a well-kept secret...
>
> Please describe what you found out in the guide for the next person
> needing it.
You can augment or replace a static PLIST file with the make variable
GENERATE_PLIST. It takes shell code, terminated with a semicolon. This
code is executed at packaging time, and any resulting output is then
appended to the effective PLIST.
In the editors/xemacs example, the freshly-built xemacs binary is used
to produce a build ID, which goes into the filename of the dump file:
GENERATE_PLIST+= ${ECHO} bin/${DISTNAME}-`${WRKSRC}/src/xemacs
-sd`.dmp ;
resulting in
% tail -2 editors/xemacs/work/.PLIST
@pkgdir lib/xemacs/site-lisp
bin/xemacs-21.4.23-54e8ea71.dmp
%
HTH,
hauke
--
Hauke Fath <hauke%Espresso.Rhein-Neckar.DE@localhost>
Ernst-Ludwig-Straße 15
64625 Bensheim
Germany
Home |
Main Index |
Thread Index |
Old Index