Ticket #16958: Portfile.diff
File Portfile.diff, 3.3 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name glpk 6 version 4.3 16 version 4.32 7 7 categories math lang 8 8 platforms darwin 9 maintainers lutz.horn@fastmail.fm9 maintainers fastmail.fm:lutz.horn 10 10 description GNU Linear Programming Kit 11 11 12 12 long_description \ … … 19 19 homepage http://www.gnu.org/software/${name}/ 20 20 master_sites gnu 21 21 22 checksums md5 3f927e94d88151b1330da360d20d4caf\23 sha1 880c66d6d586e92970bfbaf7a57a9d04e7f67fd5\24 rmd160 59a6ae7bdbb1cd9bc999b57ac6dd950685c48fe522 checksums md5 b66129c3f1e43dda7e8b91ad474e9fa2 \ 23 sha1 3574d86b6779f6a20c8b6abf6798f4cf68d0f313 \ 24 rmd160 77f08ec4166901b3e8542067fa5e25d0298b29c4 25 25 26 depends_lib port:gmp 26 depends_lib port:gmp port:zlib 27 27 28 configure.args --enable-iodbc=no \ 29 --enable-mysql=no 28 configure.args --with-gmp --with-zlib 29 30 if { [variant_isset odbc] || [variant_isset mysql] } { 31 depends_lib-append port:libtool 32 configure.args-append --enable-dl 33 } 30 34 31 35 use_parallel_build yes 32 36 33 37 test.run yes 34 38 test.target check 35 39 40 post-patch { 41 # glpk uses nmedit to make certain symbols local. 42 # octave relies on the obsolete __glp_lib_print_hook and __glp_lib_fault_hook symbols, so they must be kept global. 43 # See http://www.nabble.com/octave-3.0.3-build-problem-due-to-glpk-td19945239.html for a discussion. 44 reinplace \ 45 "s|export-symbols-regex '^(glp_\\|_glp_lpx_).*'|export-symbols-regex '^(glp_\\|_glp_lpx_\\|_glp_lib_fault_hook\\|_glp_lib_print_hook).*'|g" \ 46 ${worksrcpath}/src/Makefile.in 47 } 48 36 49 variant examples { 37 50 post-destroot { 38 51 set examplesdir ${destroot}${prefix}/share/doc/${name}/examples … … 53 66 post-destroot { 54 67 set docdir ${destroot}${prefix}/share/doc/${name} 55 68 xinstall -m 755 -d ${docdir} 56 system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk. latex && ${prefix}/bin/pdflatex glpk.latex"69 system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk.tex && ${prefix}/bin/pdflatex glpk.tex" 57 70 system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi" 58 xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf ${docdir}71 xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf glpk_faq.txt ${docdir} 59 72 xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${docdir} 60 73 } 61 74 } 62 75 76 variant odbc { 77 depends_lib-append port:unixODBC 78 configure.args-append --enable-odbc=unix 79 post-patch { 80 reinplace \ 81 "s|libodbc.so|${prefix}/lib/libodbc.dylib|g" \ 82 ${worksrcpath}/configure 83 } 84 } 85 86 variant mysql { 87 depends_lib-append port:mysql5 88 configure.args-append --enable-mysql 89 post-patch { 90 reinplace \ 91 "s|/usr/include/mysql|${prefix}/include/mysql5/mysql|g" \ 92 ${worksrcpath}/configure 93 reinplace \ 94 "s|libmysqlclient.so|${prefix}/lib/mysql5/mysql/libmysqlclient.dylib|g" \ 95 ${worksrcpath}/configure 96 } 97 } 98 63 99 livecheck.check regex 64 100 livecheck.url http://ftp.gnu.org/gnu/${name}/?C=M&O=D 65 101 livecheck.regex ${name}-(\\d+\\.\\d+)