Ryan, > On Mar 27, 2018, at 8:44 AM, Ryan Schmidt <[email protected]> wrote: > > > On Mar 27, 2018, at 08:39, Marius Schamschula wrote: > >> Marius Schamschula (Schamschula) pushed a commit to branch master >> in repository macports-ports. >> >> >> https://github.com/macports/macports-ports/commit/94a0268cc3d8b7a46705b71c7f94a72255249587 >> >> The following commit(s) were added to refs/heads/master by this push: >> >> new 94a0268 octave-octproj: fix build against proj4 >> >> 94a0268 is described below >> >> >> commit 94a0268cc3d8b7a46705b71c7f94a72255249587 >> >> Author: Marius Schamschula >> AuthorDate: Tue Mar 27 08:39:24 2018 -0500 >> >> >> octave-octproj: fix build against proj4 >> >> --- >> math/octave-octproj/Portfile | 13 +++++++--- >> math/octave-octproj/files/patch-flags.diff | 2 +- >> math/octave-octproj/files/patch-proj_api.h.diff | 33 >> +++++++++++++++++++++++++ >> 3 files changed, 43 insertions(+), 5 deletions(-) > > >> +post-patch { >> + reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/src/Makefile >> + copy ${prefix}/lib/proj49/include/proj_api.h ${worksrcpath}/src/ >> +} > >> +-#include<proj_api.h> >> ++#include "proj_api.h" > > Yow. Isn't there a cleaner way to accomplish this? Isn't the problem just > because of -I/opt/local/include in CPPFLAGS, and if so, can't it be solved by > prepending -I/opt/local/lib/proj49/include to CPPFLAGS? >
My bad: l tried patching the Makefile, but modified CFLAGS rather than CPFLAGS. https://github.com/macports/macports-ports/commit/77ea2fb4cfe60ff0add1be3fbbb320052a75dd02 Marius -- Marius Schamschula
