Changeset 102680


Ignore:
Timestamp:
Feb 6, 2013, 7:26:32 PM (6 years ago)
Author:
mmoll@…
Message:

science/triangle: install library and header file, don't install not-so-useful 'showme' program that depends on xorg-libX11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/triangle/Portfile

    r100879 r102680  
    55name                    triangle
    66version                 1.6
    7 revision                3
     7revision                4
    88categories              science
    99license                 Noncommercial Copyleft
     
    3535    reinplace "s|CC = cc|CC = ${configure.cc}|g" ${worksrcpath}/makefile
    3636    reinplace "s|CSWITCHES = -O|CSWITCHES = ${configure.cflags} ${configure.cc_archflags}|" ${worksrcpath}/makefile
     37    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
    3738}
    3839
    39 depends_lib             port:xorg-libX11
     40build.target trilibrary triangle
    4041
    4142use_configure           no
     
    4344destroot        {
    4445    xinstall -d ${destroot}${prefix}/share/doc/${name}
    45     xinstall -m 644 -W ${worksrcpath} A.poly README ${destroot}${prefix}/share/doc/${name}
    46     xinstall -W ${worksrcpath} triangle showme ${destroot}${prefix}/bin
     46    xinstall -W ${worksrcpath} triangle ${destroot}${prefix}/bin
    4747    xinstall -d ${destroot}${prefix}/share/${name}
     48    # The port ncarg needs the triangle source files; see http://trac.macports.org/ticket/34706
    4849    xinstall -m 644 -W ${worksrcpath} triangle.h triangle.c ${destroot}${prefix}/share/${name}
     50    xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/${name}
     51    xinstall -m 644 -W ${worksrcpath} triangle.h ${destroot}${prefix}/include
     52    xinstall -m 755 -W ${worksrcpath} libtriangle.dylib ${destroot}${prefix}/lib
    4953}
    5054
Note: See TracChangeset for help on using the changeset viewer.