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

aschenke at macports.org aschenke at macports.org
Wed Oct 14 12:20:00 PDT 2009


Revision: 59407
          http://trac.macports.org/changeset/59407
Author:   aschenke at macports.org
Date:     2009-10-14 12:19:57 -0700 (Wed, 14 Oct 2009)
Log Message:
-----------
fix for ncurses on Snow Leopard (see #21277)

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

Modified: trunk/dports/games/moria/Portfile
===================================================================
--- trunk/dports/games/moria/Portfile	2009-10-14 18:57:25 UTC (rev 59406)
+++ trunk/dports/games/moria/Portfile	2009-10-14 19:19:57 UTC (rev 59407)
@@ -20,11 +20,12 @@
 build.dir        ${worksrcpath}/source
 build.target
 
-use_parallel_build yes
+use_parallel_build 	yes
+use_configure 		no
 
 variant singleuser description {Disables system-wide scoreboards and allows local user installation without root privileges} {}
 
-configure        {
+pre-build        {
                     if {![variant_isset singleuser]} {
 						 addgroup games
 					}
@@ -33,10 +34,12 @@
                     
                     reinplace "s|^CC = cc|CC = ${configure.cc}|" ${build.dir}/Makefile
                     
+                    reinplace "s|CFLAGS = -O|CFLAGS = -O -DNCURSES_OPAQUE=0|" ${build.dir}/Makefile
+                    
                     reinplace "s|/home/math/grabiner/moria/files|${prefix}/var/games/moria|" \
                         ${worksrcpath}/source/config.h
                  }
-
+                 
 destroot         {
 					if {![variant_isset singleuser]} {
 						xinstall -m 775 -g games -d ${destroot}${prefix}/var/games/moria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091014/7b219bde/attachment.html>


More information about the macports-changes mailing list