summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libbluray/DESCR3
-rw-r--r--multimedia/libbluray/Makefile21
-rw-r--r--multimedia/libbluray/PLIST12
-rw-r--r--multimedia/libbluray/distinfo6
-rw-r--r--multimedia/libbluray/patches/patch-src_file_file__posix.c21
5 files changed, 63 insertions, 0 deletions
diff --git a/multimedia/libbluray/DESCR b/multimedia/libbluray/DESCR
new file mode 100644
index 00000000000..fbc8b941657
--- /dev/null
+++ b/multimedia/libbluray/DESCR
@@ -0,0 +1,3 @@
+This library is written for the purpose of playing Blu-ray movies.
+It is intended for software that want to support Blu-ray playback
+(such as VLC and MPlayer).
diff --git a/multimedia/libbluray/Makefile b/multimedia/libbluray/Makefile
new file mode 100644
index 00000000000..60e8b2c99f3
--- /dev/null
+++ b/multimedia/libbluray/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2014/08/09 20:19:35 wiz Exp $
+
+DISTNAME= libbluray-0.6.0
+CATEGORIES= multimedia
+MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/libbluray/0.6.0/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.videolan.org/developers/libbluray.html
+COMMENT= Library for Blu-Ray Discs playback for media players
+LICENSE= gnu-lgpl-v2.1
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= src/libbluray.pc.in
+
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/libbluray/PLIST b/multimedia/libbluray/PLIST
new file mode 100644
index 00000000000..e51aa829754
--- /dev/null
+++ b/multimedia/libbluray/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2014/08/09 20:19:35 wiz Exp $
+bin/bd_info
+include/libbluray/bluray-version.h
+include/libbluray/bluray.h
+include/libbluray/clpi_data.h
+include/libbluray/filesystem.h
+include/libbluray/keys.h
+include/libbluray/log_control.h
+include/libbluray/meta_data.h
+include/libbluray/overlay.h
+lib/libbluray.la
+lib/pkgconfig/libbluray.pc
diff --git a/multimedia/libbluray/distinfo b/multimedia/libbluray/distinfo
new file mode 100644
index 00000000000..e173c2c195c
--- /dev/null
+++ b/multimedia/libbluray/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2014/08/09 20:19:35 wiz Exp $
+
+SHA1 (libbluray-0.6.0.tar.bz2) = 2249e72ea50f43a1864c7f9658e13403ca3270f7
+RMD160 (libbluray-0.6.0.tar.bz2) = 9c22690a473904b5d2957c809393b7376c4ca21e
+Size (libbluray-0.6.0.tar.bz2) = 645412 bytes
+SHA1 (patch-src_file_file__posix.c) = f9f0bb9f9174f93a69259bea16217d686e4079bc
diff --git a/multimedia/libbluray/patches/patch-src_file_file__posix.c b/multimedia/libbluray/patches/patch-src_file_file__posix.c
new file mode 100644
index 00000000000..b5ed366601f
--- /dev/null
+++ b/multimedia/libbluray/patches/patch-src_file_file__posix.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_file_file__posix.c,v 1.1 2014/08/09 20:19:35 wiz Exp $
+
+Use ftell/fseek if ftello/fseeko are not defined.
+
+--- src/file/file_posix.c.orig 2014-05-27 10:34:15.000000000 +0000
++++ src/file/file_posix.c
+@@ -30,6 +30,14 @@
+ #include <stdlib.h>
+ #include <inttypes.h>
+
++#ifndef ftello
++#define ftello ftell
++#endif
++
++#ifndef fseeko
++#define fseeko fseek
++#endif
++
+ static void file_close_linux(BD_FILE_H *file)
+ {
+ if (file) {