diff options
author | sibel <sibel@free.fr> | 2010-02-18 16:19:52 +0100 |
---|---|---|
committer | sibel <sibel@free.fr> | 2010-02-18 16:19:52 +0100 |
commit | 51d369ab0cc7131571f0880c813a6bd90d33c016 (patch) | |
tree | 2056b6e519a2706d9280d2f768c0ae5df08426cf /extra/lpsolve/Pkgfile | |
parent | 0601fc038226c97ed3f9395842a82fd329e9d468 (diff) | |
download | nutyx-extra-51d369ab0cc7131571f0880c813a6bd90d33c016.tar.gz nutyx-extra-51d369ab0cc7131571f0880c813a6bd90d33c016.tar.bz2 nutyx-extra-51d369ab0cc7131571f0880c813a6bd90d33c016.tar.xz nutyx-extra-51d369ab0cc7131571f0880c813a6bd90d33c016.zip |
Ajout de lpsolve 5.5.0.15-1
Diffstat (limited to 'extra/lpsolve/Pkgfile')
-rw-r--r-- | extra/lpsolve/Pkgfile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/extra/lpsolve/Pkgfile b/extra/lpsolve/Pkgfile new file mode 100644 index 000000000..a7115c6d7 --- /dev/null +++ b/extra/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 +# Depends on: glibc + +name=lpsolve +_origname=lp_solve +version=5.5.0.15 +release=1 +_mainver=5.5 + +source=(http://downloads.sourceforge.net/project/lpsolve/lpsolve/5.5.0.15/lp_solve_5.5.0.15_source.tar.gz \ + 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/ +} + |