[47635] trunk/dports/python/py-biggles/Portfile

Ryan Schmidt ryandesign at macports.org
Mon Mar 2 21:01:12 PST 2009


On Mar 2, 2009, at 10:24, deric at macports.org wrote:


> +build.target       build_ext
> +build.args         -I/opt/local/include

You must not hard-code /opt/local into portfiles because MacPorts may  
be in a different prefix. Use ${prefix} instead.

Also note -I${prefix}/include is really more of a C pre-processor  
directive than a build argument. So you may want to instead:

build.env-append CPPFLAGS=-I${prefix}/include

assuming the software supports CPPFLAGS. If not, try CFLAGS instead.


The same feedback applies to py25-biggles from r47636.




More information about the macports-dev mailing list