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

aschenke at macports.org aschenke at macports.org
Thu Oct 15 08:32:22 PDT 2009


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

Modified Paths:
--------------
    trunk/dports/games/moria/Portfile

Modified: trunk/dports/games/moria/Portfile
===================================================================
--- trunk/dports/games/moria/Portfile	2009-10-15 15:30:00 UTC (rev 59472)
+++ trunk/dports/games/moria/Portfile	2009-10-15 15:32:21 UTC (rev 59473)
@@ -23,6 +23,8 @@
 use_parallel_build 	yes
 use_configure 		no
 
+depends_lib-append	port:ncurses
+
 variant singleuser description {Disables system-wide scoreboards and allows local user installation without root privileges} {}
 
 pre-build        {
@@ -34,7 +36,9 @@
                     
                     reinplace "s|^CC = cc|CC = ${configure.cc}|" ${build.dir}/Makefile
                     
-                    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
                     
                     reinplace "s|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" \
                         ${worksrcpath}/source/config.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091015/1ad78ebf/attachment.html>


More information about the macports-changes mailing list