[23011] trunk/dports/net/mudix/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 21 15:33:00 PDT 2007


Revision: 23011
          http://trac.macosforge.org/projects/macports/changeset/23011
Author:   pmq at macports.org
Date:     2007-03-21 15:32:59 -0700 (Wed, 21 Mar 2007)

Log Message:
-----------
Link with MacPorts' ncurses.

Modified Paths:
--------------
    trunk/dports/net/mudix/Portfile

Modified: trunk/dports/net/mudix/Portfile
===================================================================
--- trunk/dports/net/mudix/Portfile	2007-03-21 22:27:18 UTC (rev 23010)
+++ trunk/dports/net/mudix/Portfile	2007-03-21 22:32:59 UTC (rev 23011)
@@ -4,7 +4,7 @@
 
 name		        mudix
 version		        4.3
-revision	        3
+revision	        4
 categories	        net
 platforms	        darwin
 maintainers	        pmq at macports.org openmaintainer at macports.org
@@ -20,6 +20,18 @@
 checksums	        sha1 bb69638c034e18825016ff37d1b32b974ade14ae \
 			rmd160 db7f157e54765bcbfdd44628d8df218b3f7830a4
 
+pre-configure {
+    foreach cfile [glob ${worksrcpath}/src/*.c] {
+        reinplace "s|<ncurses.h>|<ncurses/ncurses.h>|" ${cfile}
+    }
+    # modify the Makefile.in for ncurses
+    reinplace "s|-I../include|-I../include -I${prefix}/include|" \
+        ${worksrcpath}/src/Makefile.in
+    reinplace "s| -lpanel|-L${prefix}/lib -lpanel|" \
+        ${worksrcpath}/src/Makefile.in
+}
+configure.env		CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
+
 destroot {
     xinstall -m 555 -W ${worksrcpath} mudix ${destroot}${prefix}/bin
     xinstall -m 755 -d ${destroot}${prefix}/share/${name}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070321/80176151/attachment.html


More information about the macports-changes mailing list