Ticket #33559: Portfile.lmdemo.patch
File Portfile.lmdemo.patch, 1.3 KB (added by lockhart (Thomas Lockhart), 13 years ago) |
---|
-
Portfile
old new 70 70 file mkdir ${worksrcpath}/sobj 71 71 } 72 72 73 build.args-append -f Makefile.so \ 74 CC="${configure.cc} [get_canonical_archflags cc]" \ 75 LDFLAGS=-Wl,-rpath,${prefix}/lib 73 build.args-append -f Makefile.so 74 build.args-append CC="${configure.cc} [get_canonical_archflags cc]" 75 build.args-append LDFLAGS+=-Wl,-rpath,${prefix}/lib 76 # Add this local rpath to allow port test to run successfully 77 build.args-append LDFLAGS+=-Wl,-rpath,${worksrcpath}/sobj 76 78 77 79 test.run yes 78 test.cmd ./lmdemo80 test.cmd ${worksrcpath}/lmdemo 79 81 test.target {} 80 test.env DYLD_LIBRARY_PATH=${worksrcpath}/sobj81 82 82 83 destroot { 83 84 # library … … 85 86 86 87 # test program 87 88 xinstall -m 755 ${worksrcpath}/lmdemo ${destroot}${prefix}/bin/lmdemo 89 # Remove the local rpath which was present to allow port test to run successfully 90 system "install_name_tool -delete_rpath ${worksrcpath}/sobj ${destroot}${prefix}/bin/lmdemo" 88 91 89 92 # header files 90 93 xinstall -m 755 ${worksrcpath}/levmar.h ${destroot}${prefix}/include