pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/libbluray Fix compilation error for gettime...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3dac916aeb96
branches:  trunk
changeset: 376447:3dac916aeb96
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Fri Mar 02 11:59:26 2018 +0000

description:
Fix compilation error for gettimeofday() on FreeBSD.

Use of gettimeofday() needs __XSI_VISIBLE (that implies _XOPEN_SOURCE
defined) on FreeBSD.

diffstat:

 multimedia/libbluray/distinfo                |   3 ++-
 multimedia/libbluray/patches/patch-configure |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 38a440d5eaa8 -r 3dac916aeb96 multimedia/libbluray/distinfo
--- a/multimedia/libbluray/distinfo     Fri Mar 02 11:45:45 2018 +0000
+++ b/multimedia/libbluray/distinfo     Fri Mar 02 11:59:26 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.10 2017/12/30 08:45:54 adam Exp $
+$NetBSD: distinfo,v 1.11 2018/03/02 11:59:26 triaxx Exp $
 
 SHA1 (libbluray-1.0.2.tar.bz2) = 025ef1c0a25b42f4a13a9fb2df09fc9cef1a821b
 RMD160 (libbluray-1.0.2.tar.bz2) = 37ac4f42277f7feb79ee9b99c5d4870b1e4bfddf
 SHA512 (libbluray-1.0.2.tar.bz2) = e1360ad08aa6cc67a80efa81a09004faebbe31105f1961494f82f655e3e7378b198ee3bc534b0d0c2bfec726939b11b545cc8bbfa30794fc647432dadf71089b
 Size (libbluray-1.0.2.tar.bz2) = 733058 bytes
+SHA1 (patch-configure) = 0f3c97ef54b780cd5227851b00a132e0ecb9a412
diff -r 38a440d5eaa8 -r 3dac916aeb96 multimedia/libbluray/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libbluray/patches/patch-configure      Fri Mar 02 11:59:26 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-configure,v 1.1 2018/03/02 11:59:26 triaxx Exp $
+
+Fix compilation error for gettimeofday() on FreeBSD.
+
+--- configure.orig     2018-03-02 11:46:19.719512000 +0000
++++ configure
+@@ -3298,6 +3298,10 @@ $as_echo "#define _WIN32_IE 0x0501" >>co
+     SYS=netbsd
+     CFLAGS="${CFLAGS} -D_NETBSD_SOURCE"
+     ;;
++  freebsd*)
++    SYS=freebsd
++    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=700"
++    ;;
+   *)
+     SYS="${host_os}"
+     ;;



Home | Main Index | Thread Index | Old Index