[27932] trunk/dports/net/dnstop/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 16 03:12:48 PDT 2007
Revision: 27932
http://trac.macosforge.org/projects/macports/changeset/27932
Author: pmq at macports.org
Date: 2007-08-16 03:12:48 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
Declare dependency on ncurses.
Change the lib: dependency on libpcap to port: style.
Make sure it links against MP-provided libs.
Drop the build.target as 'all' is now valid.
Rewrite the destroot.
Modified Paths:
--------------
trunk/dports/net/dnstop/Portfile
Modified: trunk/dports/net/dnstop/Portfile
===================================================================
--- trunk/dports/net/dnstop/Portfile 2007-08-16 09:35:57 UTC (rev 27931)
+++ trunk/dports/net/dnstop/Portfile 2007-08-16 10:12:48 UTC (rev 27932)
@@ -10,15 +10,19 @@
description dnstop is a libpcap application that displays tables of DNS traffic
long_description ${description}
-homepage http://dnstop.measurement-factory.com/
-master_sites http://dnstop.measurement-factory.com/src/
+homepage http://dnstop.measurement-factory.com
+master_sites ${homepage}/src/
checksums md5 a68f764a10c7ad7bf16a19223df865af
-depends_lib lib:libpcap:libpcap
+depends_lib port:libpcap port:ncurses
-use_configure no
-build.target
-destroot {
- system "install ${worksrcpath}/${name} ${destroot}${prefix}/bin/"
- system "install ${worksrcpath}/${name}.8 ${destroot}${prefix}/share/man/man8/"
+configure {
+ # using the short form it'll pick up the /usr/lib one
+ reinplace "s|-lcurses|-lncurses|" ${worksrcpath}/Makefile
+ reinplace "s|/man/man8|/share/man/man8|" ${worksrcpath}/Makefile
}
+
+build.env LDFLAGS=${configure.ldflags} \
+ CPPFLAGS="${configure.cppflags} -I${prefix}/include/ncurses"
+
+destroot.args PREFIX=${destroot}${prefix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070816/5da89cba/attachment.html
More information about the macports-changes
mailing list