Thanks for pointing this out, Patrick.

Here's a tentative diff.  Stuart, could you please try it?

Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/liblo/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile    3 Jun 2015 07:00:29 -0000       1.7
+++ Makefile    9 Jun 2015 11:22:25 -0000
@@ -1,9 +1,14 @@
 # $OpenBSD: Makefile,v 1.7 2015/06/03 07:00:29 jasper Exp $
 
 COMMENT =              leightweight open sound control (OSC) implementation
+
 DISTNAME =             liblo-0.28
+REVISION =             0
+
 SHARED_LIBS +=  lo                   0.1      # 9.0
+
 CATEGORIES =           audio
+
 HOMEPAGE =             http://liblo.sourceforge.net/
 
 # LGPLv2+
Index: patches/patch-lo_lo_macros_h
===================================================================
RCS file: patches/patch-lo_lo_macros_h
diff -N patches/patch-lo_lo_macros_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-lo_lo_macros_h        9 Jun 2015 11:22:25 -0000
@@ -0,0 +1,20 @@
+$OpenBSD$
+
+Fix for 32 bits platforms.
+
+--- lo/lo_macros.h.orig        Tue Jun  9 13:14:07 2015
++++ lo/lo_macros.h     Tue Jun  9 13:15:21 2015
+@@ -36,8 +36,13 @@ extern "C" {
+ 
+ /* an internal value, ignored in transmission but check against LO_MARKER in 
the
+  * argument list. Used to do primitive bounds checking */
++#ifdef _LP64
+ #     define LO_MARKER_A (void *)0xdeadbeefdeadbeefL
+ #     define LO_MARKER_B (void *)0xf00baa23f00baa23L
++#else
++#     define LO_MARKER_A (void *)0xdeadbeefL
++#     define LO_MARKER_B (void *)0xf00baa23L
++#endif
+ 
+ #define LO_ARGS_END LO_MARKER_A, LO_MARKER_B
+ 


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to