[102680] trunk/dports/science/triangle/Portfile
mmoll at macports.org
mmoll at macports.org
Wed Feb 6 11:26:32 PST 2013
Revision: 102680
https://trac.macports.org/changeset/102680
Author: mmoll at macports.org
Date: 2013-02-06 11:26:32 -0800 (Wed, 06 Feb 2013)
Log Message:
-----------
science/triangle: install library and header file, don't install not-so-useful 'showme' program that depends on xorg-libX11
Modified Paths:
--------------
trunk/dports/science/triangle/Portfile
Modified: trunk/dports/science/triangle/Portfile
===================================================================
--- trunk/dports/science/triangle/Portfile 2013-02-06 19:19:32 UTC (rev 102679)
+++ trunk/dports/science/triangle/Portfile 2013-02-06 19:26:32 UTC (rev 102680)
@@ -4,7 +4,7 @@
name triangle
version 1.6
-revision 3
+revision 4
categories science
license Noncommercial Copyleft
maintainers nomaintainer
@@ -34,18 +34,22 @@
reinplace "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/makefile
reinplace "s|CC = cc|CC = ${configure.cc}|g" ${worksrcpath}/makefile
reinplace "s|CSWITCHES = -O|CSWITCHES = ${configure.cflags} ${configure.cc_archflags}|" ${worksrcpath}/makefile
+ reinplace "s|trilibrary: \$(BIN)triangle.o \$(BIN)tricall|trilibrary: \$(BIN)triangle.o\\\n\\\t${configure.cc} -dynamiclib -install_name ${prefix}/lib/libtriangle.dylib -o libtriangle.dylib triangle.o|" ${worksrcpath}/makefile
}
-depends_lib port:xorg-libX11
+build.target trilibrary triangle
use_configure no
destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} A.poly README ${destroot}${prefix}/share/doc/${name}
- xinstall -W ${worksrcpath} triangle showme ${destroot}${prefix}/bin
+ xinstall -W ${worksrcpath} triangle ${destroot}${prefix}/bin
xinstall -d ${destroot}${prefix}/share/${name}
+ # The port ncarg needs the triangle source files; see http://trac.macports.org/ticket/34706
xinstall -m 644 -W ${worksrcpath} triangle.h triangle.c ${destroot}${prefix}/share/${name}
+ xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} triangle.h ${destroot}${prefix}/include
+ xinstall -m 755 -W ${worksrcpath} libtriangle.dylib ${destroot}${prefix}/lib
}
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130206/5fde2a7a/attachment-0001.html>
More information about the macports-changes
mailing list