ports/contrib (3.5): lpsolve: initial commit, version 5.5.2.5
commit c31bc2261ae8c3b0ccf23b3cc4ffafd31ab8f3c1 Author: Tim Biermann <tbier@posteo.de> Date: Sun Aug 11 11:14:10 2019 +0200 lpsolve: initial commit, version 5.5.2.5 diff --git a/lpsolve/.footprint b/lpsolve/.footprint new file mode 100644 index 00000000..596cad04 --- /dev/null +++ b/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/lpsolve/.signature b/lpsolve/.signature new file mode 100644 index 00000000..e5a135a6 --- /dev/null +++ b/lpsolve/.signature @@ -0,0 +1,7 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF35MEmgCfurocwv5qyh9Zctmq0zMuuNp1GvwOoL7m838QsNXYiHz4j/oqaBalK5icIAlx/jgW9ofNjpBKo4yQ1AM= +SHA256 (Pkgfile) = c1c5263917c1b69505175b61754f1d39f1d941f0f6c687edcdef597cc6763849 +SHA256 (.footprint) = b8cd5cff2918f0486c1bca11e7de996153b71a9452c465d604eed5c40281c1ae +SHA256 (lp_solve_5.5.2.5_source.tar.gz) = 201a7c62b8b3360c884ee2a73ed7667e5716fc1e809755053b398c2f5b0cf28a +SHA256 (cflags.patch) = f9edf2f2cd43304045dc6969cf81937aeb6fc877229f4fc03a7463cccfa4ce91 +SHA256 (lpsolve-5.5.2.0.defines.patch) = 196e25f92d4b4fae67a1c86351aca1863caf44f30d6a7d838a3b953b20008055 diff --git a/lpsolve/Pkgfile b/lpsolve/Pkgfile new file mode 100644 index 00000000..62c8a9a6 --- /dev/null +++ b/lpsolve/Pkgfile @@ -0,0 +1,24 @@ +# Description: a Mixed Integer Linear Programming (MILP) solver +# URL: http://lpsolve.sourceforge.net/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: + +name=lpsolve +version=5.5.2.5 +release=1 +source=(http://downloads.sourceforge.net/project/lpsolve/lpsolve/$version/lp_solve_"$version"_source.tar.gz cflags.patch lpsolve-5.5.2.0.defines.patch) + +build() { + cd lp_solve_${version:0:3} + patch -Np1 -i $SRC/cflags.patch + patch -Np1 -i $SRC/lpsolve-5.5.2.0.defines.patch + cd lpsolve55 + sh -x ccc + cd ../lp_solve + sh -x ccc + cd .. + install -dm755 $PKG/usr/{bin,lib,include/lpsolve} + install -m755 lp_solve/bin/ux*/lp_solve $PKG/usr/bin/ + install -m755 lpsolve55/bin/ux*/liblpsolve55.so $PKG/usr/lib/ + install -m644 lp*.h $PKG/usr/include/lpsolve/ +} diff --git a/lpsolve/cflags.patch b/lpsolve/cflags.patch new file mode 100644 index 00000000..8e8804cb --- /dev/null +++ b/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'` + diff --git a/lpsolve/lpsolve-5.5.2.0.defines.patch b/lpsolve/lpsolve-5.5.2.0.defines.patch new file mode 100644 index 00000000..a325c137 --- /dev/null +++ b/lpsolve/lpsolve-5.5.2.0.defines.patch @@ -0,0 +1,22 @@ +--- lp_solve_5.5/lpsolve55/ccc ++++ lp_solve_5.5/lpsolve55/ccc +@@ -18,7 +18,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN= +--- lp_solve_5.5/lp_solve/ccc ++++ lp_solve_5.5/lp_solve/ccc +@@ -20,7 +20,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN=
participants (1)
-
crux@crux.nu