[59473] trunk/dports/games/moria/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Oct 15 08:55:36 PDT 2009


On Oct 15, 2009, at 10:32, aschenke at macports.org wrote:

> Revision: 59473
>          http://trac.macports.org/changeset/59473
> Author:   aschenke at macports.org
> Date:     2009-10-15 08:32:21 -0700 (Thu, 15 Oct 2009)
> Log Message:
> -----------
> require and link to MacPort's ncurses library


> -                    reinplace "s|CFLAGS = -O|CFLAGS = -O - 
> DNCURSES_OPAQUE=0|" ${build.dir}/Makefile
> +                    reinplace "s|CFLAGS = -O|CFLAGS = -O -I$ 
> {prefix}/include -I${prefix}/include/ncurses|" ${build.dir}/Makefile
> +                    reinplace "s|LFLAGS =|LFLAGS = -L/opt/local/ 
> lib|" ${build.dir}/Makefile
> +                    reinplace "s|CURSES = -lcurses -ltermcap|CURSES  
> = -lncurses|" ${build.dir}/Makefile

You must not hardcode "/opt/local" in portfiles; please use "$ 
{prefix}" instead.




More information about the macports-dev mailing list