Files
haikuports/sci-mathematics/lpsolve/lpsolve-5.5.2.3.recipe
Kacper Kasper f0dc79fee7 lpsolve: put headers in their own directory.
* LibreOffice expects to find them there.
2017-01-06 00:44:09 +01:00

66 lines
1.7 KiB
Bash

SUMMARY="A Mixed Integer Linear Programming (MILP) solver library"
DESCRIPTION="It is a free (see LGPL for the GNU lesser general public license)\
linear (integer) programming solver based on the revised simplex method \
and the Branch-and-bound method for the integers.
lp_solve solves pure linear, (mixed) integer/binary, semi-continuous and \
special ordered sets (SOS) models."
HOMEPAGE="http://sourceforge.net/projects/lpsolve/"
COPYRIGHT="2006-2016 Michael Berkelaar, Kjell Eikland, Peter Notebaert"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="http://downloads.sourceforge.net/lpsolve/lpsolve/$portVersion/lp_solve_${portVersion}_source.tar.gz"
CHECKSUM_SHA256="fb43ae8ad3bb4cee617863f7fc03b26ccc0ff7946a9cc4665cb9afa04c0a1cab"
SOURCE_DIR="lp_solve_5.5"
PATCHES="lpsolve-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
lpsolve$secondaryArchSuffix = $portVersion
cmd:lp_solve$secondaryArchSuffix
lib:liblpsolve55$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
lpsolve${secondaryArchSuffix}_devel = $portVersion
devel:liblpsolve55$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
lpsolve$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:sed
"
BUILD()
{
cd lpsolve55
sh -x ccc
cd ../lp_solve
sh -x ccc
}
INSTALL()
{
mkdir -p $binDir $libDir $includeDir/lpsolve
install lp_solve/bin/ux*/lp_solve $binDir/
install lpsolve55/bin/ux*/liblpsolve55.so $libDir/
install lp*.h $includeDir/lpsolve/
prepareInstalledDevelLibs liblpsolve55
# devel package
packageEntries devel \
$developDir
}