From 4c835a707c7609443fb0cef339181de8c22227b3 Mon Sep 17 00:00:00 2001 From: ryoon Date: Mon, 12 May 2014 11:41:46 +0000 Subject: Fix build under OpenBSD/amd64 5.5 --- math/lp_solve/Makefile | 5 +++-- math/lp_solve/distinfo | 3 ++- math/lp_solve/patches/patch-lp__utils.c | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 math/lp_solve/patches/patch-lp__utils.c (limited to 'math/lp_solve') 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 ++#if !defined(__OpenBSD__) + #include ++#endif + #include "lp_bit.h" + + #ifdef FORTIFY -- cgit v1.2.3