summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorsibel <sibel@free.fr>2010-02-18 16:19:52 +0100
committersibel <sibel@free.fr>2010-02-18 16:19:52 +0100
commit51d369ab0cc7131571f0880c813a6bd90d33c016 (patch)
tree2056b6e519a2706d9280d2f768c0ae5df08426cf /extra
parent0601fc038226c97ed3f9395842a82fd329e9d468 (diff)
downloadnutyx-pakxe-51d369ab0cc7131571f0880c813a6bd90d33c016.tar.gz
nutyx-pakxe-51d369ab0cc7131571f0880c813a6bd90d33c016.tar.bz2
nutyx-pakxe-51d369ab0cc7131571f0880c813a6bd90d33c016.tar.xz
nutyx-pakxe-51d369ab0cc7131571f0880c813a6bd90d33c016.zip
Ajout de lpsolve 5.5.0.15-1
Diffstat (limited to 'extra')
-rw-r--r--extra/lpsolve/.footprint31
-rw-r--r--extra/lpsolve/.md5sum2
-rw-r--r--extra/lpsolve/Pkgfile34
-rw-r--r--extra/lpsolve/cflags.patch25
4 files changed, 92 insertions, 0 deletions
diff --git a/extra/lpsolve/.footprint b/extra/lpsolve/.footprint
new file mode 100644
index 000000000..596cad04c
--- /dev/null
+++ b/extra/lpsolve/.footprint
@@ -0,0 +1,31 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/lp_solve
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/lpsolve/
+-rw-r--r-- root/root usr/include/lpsolve/lp_Hash.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_MDO.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_MPS.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_SOS.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_bit.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_crash.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_explicit.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_fortify.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_lib.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_matrix.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_mipbb.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_presolve.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_price.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_pricePSE.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_report.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_rlp.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_scale.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_simplex.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_solveDLL.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_types.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_utils.h
+-rw-r--r-- root/root usr/include/lpsolve/lp_wlp.h
+-rw-r--r-- root/root usr/include/lpsolve/lpkit.h
+-rw-r--r-- root/root usr/include/lpsolve/lpsolve.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/liblpsolve55.so
diff --git a/extra/lpsolve/.md5sum b/extra/lpsolve/.md5sum
new file mode 100644
index 000000000..53feead0e
--- /dev/null
+++ b/extra/lpsolve/.md5sum
@@ -0,0 +1,2 @@
+7403f745d06619f59f52800b655d8751 cflags.patch
+2408c94893394f832469661c16b9f0d0 lp_solve_5.5.0.15_source.tar.gz
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/
+}
+
diff --git a/extra/lpsolve/cflags.patch b/extra/lpsolve/cflags.patch
new file mode 100644
index 000000000..8e8804cb8
--- /dev/null
+++ b/extra/lpsolve/cflags.patch
@@ -0,0 +1,25 @@
+diff -ru lp_solve_5.5.orig/lp_solve/ccc lp_solve_5.5/lp_solve/ccc
+--- lp_solve_5.5.orig/lp_solve/ccc 2009-02-23 16:31:18.000000000 +0000
++++ lp_solve_5.5/lp_solve/ccc 2009-02-23 16:31:29.000000000 +0000
+@@ -28,7 +28,7 @@
+ fi
+ rm /tmp/isnan.c /tmp/isnan >/dev/null 2>&1
+
+-opts='-O3'
++opts=$CFLAGS
+
+ def=
+ if [ "$PLATFORM" = "SCO_UNIX" ]
+diff -ru lp_solve_5.5.orig/lpsolve55/ccc lp_solve_5.5/lpsolve55/ccc
+--- lp_solve_5.5.orig/lpsolve55/ccc 2009-02-23 16:31:18.000000000 +0000
++++ lp_solve_5.5/lpsolve55/ccc 2009-02-23 16:31:29.000000000 +0000
+@@ -35,7 +35,7 @@
+ so=y
+ fi
+
+-opts='-O3'
++opts=$CFLAGS
+
+ $c -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd $opts $def $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
+ ar rv bin/$PLATFORM/liblpsolve55.a `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'`
+