diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-05-12 11:41:46 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-05-12 11:41:46 +0000 |
commit | 567868d6586f3f66841a73a0864ed2c9f036fff7 (patch) | |
tree | 87e5730f330005f438aa7fbb42c83d2e7b9de47f /math/lp_solve | |
parent | 3b4353c46af4608ff6a67189dea60c31ca90e90d (diff) | |
download | pkgsrc-567868d6586f3f66841a73a0864ed2c9f036fff7.tar.gz |
Fix build under OpenBSD/amd64 5.5
Diffstat (limited to 'math/lp_solve')
-rw-r--r-- | math/lp_solve/Makefile | 5 | ||||
-rw-r--r-- | math/lp_solve/distinfo | 3 | ||||
-rw-r--r-- | math/lp_solve/patches/patch-lp__utils.c | 16 |
3 files changed, 21 insertions, 3 deletions
diff --git a/math/lp_solve/Makefile b/math/lp_solve/Makefile index 1cc1ef2d053..347db6b29ab 100644 --- a/math/lp_solve/Makefile +++ b/math/lp_solve/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2012/09/11 23:04:23 asau Exp $ +# $NetBSD: Makefile,v 1.5 2014/05/12 11:41:46 ryoon Exp $ # DISTNAME= lp_solve_5.5.2.0_source @@ -24,7 +24,8 @@ SUBST_FILES.dl+= demo/ccc .include "../../mk/bsd.fast.prefs.mk" -.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64" +.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" || \ + ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "amd64" LPSOLVE_ARCH= ux64 .else LPSOLVE_ARCH= ux32 diff --git a/math/lp_solve/distinfo b/math/lp_solve/distinfo index b1871b93f62..1e160fdfa37 100644 --- a/math/lp_solve/distinfo +++ b/math/lp_solve/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2010/10/16 15:35:08 wiz Exp $ +$NetBSD: distinfo,v 1.2 2014/05/12 11:41:46 ryoon Exp $ SHA1 (lp_solve_5.5.2.0_source.tar.gz) = e2830053cf079839b9ce21662cbc886ac6d31c80 RMD160 (lp_solve_5.5.2.0_source.tar.gz) = 23a69c71062747ddf4cbc57120cd7db5f9378ac2 Size (lp_solve_5.5.2.0_source.tar.gz) = 799623 bytes SHA1 (patch-aa) = 17fbc9c80e5a8c34064d426adf2fdae2ce4a7db1 +SHA1 (patch-lp__utils.c) = c0ec019feeac7016f83c63454fa92b137f30675c diff --git a/math/lp_solve/patches/patch-lp__utils.c b/math/lp_solve/patches/patch-lp__utils.c new file mode 100644 index 00000000000..abbf14ee9c9 --- /dev/null +++ b/math/lp_solve/patches/patch-lp__utils.c @@ -0,0 +1,16 @@ +$NetBSD: patch-lp__utils.c,v 1.1 2014/05/12 11:41:46 ryoon Exp $ + +OpenBSD 5.5 has no sys/timeb.h. + +--- lp_utils.c.orig 2009-08-27 19:52:00.000000000 +0000 ++++ lp_utils.c +@@ -5,7 +5,9 @@ + #include "lp_lib.h" + #include "lp_utils.h" + #include <time.h> ++#if !defined(__OpenBSD__) + #include <sys/timeb.h> ++#endif + #include "lp_bit.h" + + #ifdef FORTIFY |