|
|||||||||
Saturday the 7th of November, 2009 |
|||||||||
glpk most recent diffversion 4.39
Scroll down toward the bottom of the page to get installation instructions for glpk. The raw portfile for glpk 4.39 is located here: http://glpk.darwinports.com/dports/math/glpk/Portfile Find related portfiles with the unique DarwinPorts.com search feature. Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/glpk The glpk Portfile 58230 2009-09-24 16:45:22Z ryandesign PortSystem 1.0 PortGroup muniversal 1.0 Name: glpk Version: 4.39 Category: math lang Platform: darwin Maintainers: fastmail.fm:lutz.horn Description: GNU Linear Programming Kit Long Description: The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library. Homepage: http://www.gnu.org/software/${name}/ Master Sites: gnu Checksums: md5 95f276ef6c94c6de1eb689f161f525f3 sha1 99d8d0e576fee63fa0d411d92c7c70a7be090ec6 rmd160 ffb8b7214bba04c387ce67837ca05664ee7a53f8 depends_lib port:gmp port:zlib configure.args --with-gmp --with-zlib if { [variant_isset odbc] || [variant_isset mysql] } { depends_lib-append port:libtool configure.args-append --enable-dl } use_parallel_build yes test.run yes test.target check post-patch { # glpk uses nmedit to make certain symbols local. # octave 3.0.3 relies on the obsolete __glp_lib_print_hook and __glp_lib_fault_hook symbols, so they must be kept global. # See http://www.nabble.com/octave-3.0.3-build-problem-due-to-glpk-td19945239.html for a discussion. reinplace "s|export-symbols-regex '^(glp_\\|_glp_lpx_).*'|export-symbols-regex '^(glp_\\|_glp_lpx_\\|_glp_lib_fault_hook\\|_glp_lib_print_hook).*'|g" ${worksrcpath}/src/Makefile.in } Variant: examples description {install examples} { post-destroot { set examplesdir ${destroot}${prefix}/share/doc/${name}/examples xinstall -m 755 -d ${examplesdir} foreach fl [glob -tails -directory ${worksrcpath}/examples *.{c,mod,lp,mps,dat}] { xinstall -m 644 -W ${worksrcpath}/examples $fl ${examplesdir} } xinstall -m 755 -d ${examplesdir}/sql foreach fl [glob -tails -directory ${worksrcpath}/examples/sql *.{mod,sql}] { xinstall -m 644 -W ${worksrcpath}/examples/sql $fl ${examplesdir}/sql } } } Variant: doc description {build and install documentation} { depends_build-append path:${prefix}/bin/pdflatex:texlive path:${prefix}/bin/texi2pdf:texinfo post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -m 755 -d ${docdir} system "cd ${worksrcpath}/doc && ${prefix}/bin/pdflatex glpk.tex && ${prefix}/bin/pdflatex glpk.tex" system "cd ${worksrcpath}/doc && ${prefix}/bin/texi2pdf gmpl.texi" xinstall -m 644 -W ${worksrcpath}/doc glpk.pdf gmpl.pdf glpk_faq.txt ${docdir} xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${docdir} } } Variant: odbc description {enable MathProg ODBC support} { depends_lib-append port:unixODBC configure.args-append --enable-odbc=unix post-patch { reinplace "s|libodbc.so|${prefix}/lib/libodbc.dylib|g" ${worksrcpath}/configure } } Variant: mysql description {enable MathProg MySQL support} { depends_lib-append path:bin/mysql_config5:mysql5 configure.args-append --enable-mysql post-patch { reinplace "s|/usr/include/mysql|${prefix}/include/mysql5/mysql|g" ${worksrcpath}/configure reinplace "s|libmysqlclient.so|${prefix}/lib/mysql5/mysql/libmysqlclient.dylib|g" ${worksrcpath}/configure } } livecheck.type regex livecheck.url http://ftp.gnu.org/gnu/${name}/?C=M&O=D livecheck.regex ${name}-(\\d+\\.\\d+) If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page. Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:
% cd /opt/local/bin/portslocation/dports/glpkYou will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to: Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using glpk with these commands: % man glpk Where to find more information:
|
![]() |
![]()
Order Snow Leopard MacOSX 10.6 for only $29!
Other Helpful SitesMacOSForgeDebian Packages MacPorts - SVN Freshports - FreeBSD Fink Package List RPM for MacOSX Port Categories
accounting
amusements aqua archivers audio benchmarks biology blinkenlights cad chat chinese comms compression cross crypto databases devel editors education electronics emacs emulators erlang finance fonts framework fuse games genealogy gis gnome gnustep graphics gtk haskell iphone irc japanese java kde kde4 lang macports math mercurial ml mono multimedia net network news ocaml office palm parallel perl php pim project python reporting rox ruby russian scheme science security shells spelling squeak sysutils tcl tex textproc tk unicode vnc win32 wsn www x11 x11-font x11-wm xfce zope
Current SVN DownloadsDarwin Ports Current :nightly SVN snapshot SSH Key Gen See also: GNU-Darwin Ports for GNU-only software |
|||||||
| |




