pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/lilv lilv: Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/36b200f4851f
branches:  trunk
changeset: 383460:36b200f4851f
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jul 31 15:35:38 2018 +0000

description:
lilv: Fix build on SunOS.

diffstat:

 audio/lilv/Makefile                 |   4 ++--
 audio/lilv/distinfo                 |   3 ++-
 audio/lilv/patches/patch-src_util.c |  16 ++++++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 368cd60fb69c -r 36b200f4851f audio/lilv/Makefile
--- a/audio/lilv/Makefile       Tue Jul 31 14:27:35 2018 +0000
+++ b/audio/lilv/Makefile       Tue Jul 31 15:35:38 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2018/04/16 14:34:07 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2018/07/31 15:35:38 jperkin Exp $
 
 DISTNAME=      lilv-0.20.0
 PKGREVISION=   7
@@ -26,7 +26,7 @@
 .include "../../mk/bsd.prefs.mk"
 
 PLIST_VARS+= lv2bench
-.if ${OPSYS} != "Darwin"
+.if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS"
 # Darwin doesn't have CLOCK_GETTIME so it doesn't compile this
 PLIST.lv2bench=        yes
 .endif
diff -r 368cd60fb69c -r 36b200f4851f audio/lilv/distinfo
--- a/audio/lilv/distinfo       Tue Jul 31 14:27:35 2018 +0000
+++ b/audio/lilv/distinfo       Tue Jul 31 15:35:38 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 01:12:39 agc Exp $
+$NetBSD: distinfo,v 1.3 2018/07/31 15:35:38 jperkin Exp $
 
 SHA1 (lilv-0.20.0.tar.bz2) = b3a7d0089b16b04114895d47a898b8d494774927
 RMD160 (lilv-0.20.0.tar.bz2) = 7830520d983fa8effa7c3e18fda545bc55253642
 SHA512 (lilv-0.20.0.tar.bz2) = bbc8b9154339cd145a61c5e4613fd31a2e457df8242c55371f3245564d3b23d028a0bc0ffafac393119bb47171b7c735f0c3a55cf5bffc6920ae89aa877240e5
 Size (lilv-0.20.0.tar.bz2) = 207948 bytes
+SHA1 (patch-src_util.c) = e64d73bb0217c4fe6d70479ef8c395895152a603
diff -r 368cd60fb69c -r 36b200f4851f audio/lilv/patches/patch-src_util.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/lilv/patches/patch-src_util.c       Tue Jul 31 15:35:38 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_util.c,v 1.1 2018/07/31 15:35:38 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- src/util.c.orig    2014-08-08 14:40:03.000000000 +0000
++++ src/util.c
+@@ -14,7 +14,9 @@
+   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+ 
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 1  /* for fileno */
++#endif
+ #define _BSD_SOURCE     1  /* for realpath, symlink */
+ 
+ #ifdef __APPLE__



Home | Main Index | Thread Index | Old Index