Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 1.142 kb
from gub import misc
from gub import target
class Liblpsolve (target.AutoBuild):
source = 'http://surfnet.dl.sourceforge.net/lpsolve/lp_solve_5.5.0.13_source.tar.gz'
parallel_build_broken = True
srcdir_build_broken = True
dependencies = ['tools::automake']
make_flags = misc.join_lines ('''
AR=%(toolchain_prefix)sar
LIBS=
RANLIB=%(toolchain_prefix)sranlib
''')
destdir_install_broken = True
install_flags_destdir_broken = (target.AutoBuild.install_flags_destdir_broken
.replace ('includedir=%(install_prefix)s/include', 'includedir=%(install_prefix)s/include/lpsolve'))
def autoupdate (self):
# install install-sh
self.system ('cd %(srcdir)s && automake --add-missing --copy --force --foreign || :')
class Liblpsolve__mingw (Liblpsolve):
patches = ['lpsolve-5.5.0.13-mingw.patch']
def install (self):
Liblpsolve.install (self)
self.system ('mkdir -p %(install_prefix)s/bin')
self.system ('mv %(install_prefix)s/lib/liblpsolve55.so %(install_prefix)s/bin/liblpsolve55.dll')
self.generate_dll_a_and_la ('lpsolve55')
Jump to Line
Something went wrong with that request. Please try again.