pre-patch / gmake question

Ion-Mihai Tetcu itetcu at apropo.ro
Wed Oct 29 12:39:53 PST 2003



On 29 Oct 2003 15:15:06 -0500
Adam Weinberger <adamw at FreeBSD.org> wrote:

> >> (10.29.2003 @ 1454 PST): Ion-Mihai Tetcu said, in 0.7K: <<
> > If for some reason I need to do something like:
> > 
> > pre-patch:
> >         (cd ${WRKDIR}/ && @${GMAKE} -f Makefile.dist)
> > 
> > is the above  ok or are better way to do it ?
> > If I set USE_GMAKE=YES it seems it doesn't get set for the
> > pre-patch target.
> >> end of "pre-patch / gmake question" from Ion-Mihai Tetcu <<
> 
> In general, use post-patch. bsd.gnome.mk takes over pre-patch in
> many circumstances. 

Thanks Adam.

So:

post-patch:
        (cd ${WRKDIR}/ && ${GMAKE} -f Makefile.dist)
        @${REINPLACE_CMD} -e 's/-O2//g; s/-pedantic //g' \
                ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}

is OK ?

> There are other problems with your example,
> especially the misplaced @-sign.

Just a typo in the email. What are the others ?


-- 
IOnut
FreeBSD unregistered ;) user


More information about the freebsd-ports mailing list