Ticket #18275: shapelib.diff

File shapelib.diff, 1.4 KB (added by blb@…, 15 years ago)

diff to Portfile

  • Portfile

     
    1919
    2020destroot.destdir
    2121
    22 post-build      { cd ${worksrcpath}
    23                   system "cc -dynamiclib -all_load \
     22post-build      {
     23                  system "cd ${worksrcpath} && cc -dynamiclib -all_load \
    2424                  -install_name ${prefix}/lib/libshp.${version}.dylib \
    2525                  -compatibility_version ${version} \
    2626                  -o libshp.${version}.dylib shpopen.o shptree.o \
     
    3030
    3131destroot.target   {}
    3232
    33 post-destroot   { cd ${worksrcpath}
    34                   system "install -m 755 -d \
    35                     ${destroot}${prefix}/include"
    36                   system "install -m 755 -d \
    37                     ${destroot}${prefix}/lib"
    38                   system "install -m 644 -c \
    39                     shapefil.h ${destroot}${prefix}/include"
    40                   system "install -m 644 -c \
    41                     shapefil.h ${destroot}${prefix}/include"
    42                   system "install -m 644 -c \
    43                     libshp.${version}.dylib ${destroot}${prefix}/lib"
     33post-destroot   {
     34                  xinstall -m 755 -d \
     35                    ${destroot}${prefix}/include
     36                  xinstall -m 755 -d \
     37                    ${destroot}${prefix}/lib
     38                  xinstall -m 644 -c -W ${worksrcpath} \
     39                    shapefil.h ${destroot}${prefix}/include
     40                  xinstall -m 644 -c -W ${worksrcpath} \
     41                    libshp.${version}.dylib ${destroot}${prefix}/lib
    4442                  system "ln -sf libshp.${version}.dylib \
    4543                    ${destroot}/${prefix}/lib/libshp.${libver}.dylib"
    4644                  system "ln -sf libshp.${version}.dylib \