> On 2018-03-06, at 16:07, Ken Cunningham <ken.cunningham.web...@gmail.com> 
> wrote:
> 
> 
> On 2018-03-06, at 7:01 AM, macpo...@parvis.nl wrote:
> 
>> I'm trying to local install jdupes with my own test fixes, but i cannot 
>> destroot/activate due to more violation.
> 
>> Warning: violation by /usr
> 
> 
>> fragment of original Makefile:
>> ------------------------------
>> # PREFIX determines where files will be installed. Common examples
>> # include "/usr" or "/usr/local".
>> PREFIX = /usr
> 
> 
> This Makefile hardcodes the install prefix, and expects you to hand edit it 
> prior to installation.
> 
> You need to patch it to something like this:
> 
> 
> PREFIX=@@PREFIX@@
> 
> 
> and then in the portfile, before building, do a reinplace on @@PREFIX@@ to 
> set it to ${prefix}
> 
> Ken

this worked fine:

post-patch {
    reinplace       "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/Makefile
}

thanks!
pdv.

Reply via email to