diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-03-08 21:50:28 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-03-08 21:50:28 +0100 |
commit | 20a9c5894527e3a7d03ee91437aef1cadab9457e (patch) | |
tree | 33274ed302be3c607af349b0f54d88aa6298579b /base/lpsolve/Pkgfile | |
parent | 84bb82251cfd9c760652adb751f163baa921640e (diff) | |
download | nutyx-extra-20a9c5894527e3a7d03ee91437aef1cadab9457e.tar.gz nutyx-extra-20a9c5894527e3a7d03ee91437aef1cadab9457e.tar.bz2 nutyx-extra-20a9c5894527e3a7d03ee91437aef1cadab9457e.tar.xz nutyx-extra-20a9c5894527e3a7d03ee91437aef1cadab9457e.zip |
lpsolve, maj 5.5.2.0-1 et déplacé dans bas
Diffstat (limited to 'base/lpsolve/Pkgfile')
-rw-r--r-- | base/lpsolve/Pkgfile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/base/lpsolve/Pkgfile b/base/lpsolve/Pkgfile new file mode 100644 index 000000000..68096b76e --- /dev/null +++ b/base/lpsolve/Pkgfile @@ -0,0 +1,34 @@ +# Description: a Mixed Integer Linear Programming (MILP) solver +# URL: http://lpsolve.sourceforge.net/ +# Maintainer: NuTyX core team +# Packager: lesibel at free dot fr + +name=lpsolve +_origname=lp_solve +version=5.5.2.0 +release=1 +_mainver=5.5 + +source=(http://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.0/lp_solve_5.5.2.0_source.tar.gz \ + http://nutyx.meticul.eu/files/patchs/$name/cflags.patch) + +build() { + cd ${_origname}_${_mainver} + patch -Np1 -i ../cflags.patch + + # taken from Fedora spec + cd lpsolve55 + sh -x ccc + rm bin/ux*/liblpsolve55.a + cd ../lp_solve + sh -x ccc + cd .. + + # install + install -d $PKG/usr/{bin,lib,include/lpsolve} + install -m 755 lp_solve/bin/ux*/lp_solve $PKG/usr/bin/ + install -m 755 lpsolve55/bin/ux*/liblpsolve55.so $PKG/usr/lib/ + install -m 644 lp*.h $PKG/usr/include/lpsolve/ +} + + |