[59482] trunk/dports/games/larn/Portfile
aschenke at macports.org
aschenke at macports.org
Thu Oct 15 09:07:05 PDT 2009
Revision: 59482
http://trac.macports.org/changeset/59482
Author: aschenke at macports.org
Date: 2009-10-15 09:07:02 -0700 (Thu, 15 Oct 2009)
Log Message:
-----------
require and link to MacPort's ncurses (#22079); change compiler to use configure.cc (#22080)
Modified Paths:
--------------
trunk/dports/games/larn/Portfile
Modified: trunk/dports/games/larn/Portfile
===================================================================
--- trunk/dports/games/larn/Portfile 2009-10-15 15:59:56 UTC (rev 59481)
+++ trunk/dports/games/larn/Portfile 2009-10-15 16:07:02 UTC (rev 59482)
@@ -3,7 +3,7 @@
PortSystem 1.0
name larn
version 12
-revision 0
+revision 1
categories games
maintainers aschenke
description Text-based cavern exploring game
@@ -16,8 +16,10 @@
distname ${name}-4.6.2-RELEASE
checksums md5 cea96f48caa057793f6bcaf3394ca388
build.type bsd
-build.args LDADD+=-L${prefix}/lib\\ -lcurses\\
-build.env-append CFLAGS=-DNCURSES_OPAQUE=0
+build.args CC=${configure.cc}
+build.env CFLAGS=-I${prefix}/include -I${prefix}/include/ncurses
+
+depends_lib-append port:ncurses
worksrcdir ${name}
patchfiles patch-diag.c \
@@ -41,6 +43,8 @@
}
reinplace "s|MAN|MAN6|" ${worksrcpath}/Makefile
+ reinplace "s|LDADD= -ltermcap -lcompat|LDADD= -lncurses -L${prefix}/lib|" ${worksrcpath}/Makefile
+
reinplace "s|/usr/share/games|${prefix}/share|g" ${worksrcpath}/pathnames.h
reinplace "s|/var/games|${prefix}/var/games|g" ${worksrcpath}/pathnames.h
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091015/02c905e5/attachment.html>
More information about the macports-changes
mailing list