[macports-ports] branch master updated: octave-octproj: fix build against proj4

Ryan Schmidt ryandesign at macports.org
Tue Mar 27 13:44:50 UTC 2018


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?




More information about the macports-dev mailing list