From 51d369ab0cc7131571f0880c813a6bd90d33c016 Mon Sep 17 00:00:00 2001 From: sibel Date: Thu, 18 Feb 2010 16:19:52 +0100 Subject: Ajout de lpsolve 5.5.0.15-1 --- extra/lpsolve/Pkgfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 extra/lpsolve/Pkgfile (limited to 'extra/lpsolve/Pkgfile') 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/ +} + -- cgit v1.2.3-70-g09d2