1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

Add libbluray 0.2.20110219, blu-Ray discs playback library for media

players.

Submitted by:	kamikaze at bsdforen.de
This commit is contained in:
Emanuel Haupt 2011-02-21 10:39:47 +00:00
parent 0f55dec6cb
commit b9dc5827f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=269429
6 changed files with 114 additions and 0 deletions

View File

@ -144,6 +144,7 @@
SUBDIR += ksubeditor
SUBDIR += ldvd
SUBDIR += libaacs
SUBDIR += libbluray
SUBDIR += libdc1394
SUBDIR += libdca
SUBDIR += libdv

View File

@ -0,0 +1,64 @@
# New ports collection makefile for: libbluray
# Date created: 19 February 2011
# Whom: kamikaze@bsdforen.de
#
# $FreeBSD$
#
PORTNAME= libbluray
PORTVERSION= 0.2.20110219
CATEGORIES= multimedia
MASTER_SITES= CRITICAL
MAINTAINER= kamikaze@bsdforen.de
COMMENT= Blu-Ray discs playback library for media players
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
# dlopen dependencies, libbdplus not yet available
LIB_DEPENDS+= aacs.0:${PORTSDIR}/multimedia/libaacs
# libiconv.so.3
USE_ICONV= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= autoconf aclocal automake libtool
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix="${PREFIX}" \
--disable-debug \
--disable-optimizations
MAKE_JOBS_SAFE= yes
MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
CFLAGS=${CFLAGS:Q}
OPTIONS= JAVA "Enable Blu-Ray Java support" off
.include <bsd.port.options.mk>
.if defined(WITH_JAVA)
BUILD_DEPENDS+= ant:${PORTSDIR}/devel/apache-ant
CATEGORIES+= java
USE_JAVA= 1.6+
JAVA_BUILD= yes
JAVA_RUN= yes
CONFIGURE_ARGS+= --enable-bdjava \
--with-jdk="${JAVA_HOME}"
.endif
run-autotools:
@cd ${WRKSRC} && ${SH} bootstrap
plist: build
@${ECHO} "===> Rebuilding PLIST."
@${MKDIR} "${WRKDIR}/plist"
@cd ${WRKSRC} && ( \
${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS} --prefix="${WRKDIR}/plist" && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} pkgconfigdir="${WRKDIR}/plist/libdata/pkgconfig" ${INSTALL_TARGET} ; \
${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS} \
)
@${FIND} -ds "${WRKDIR}/plist/" -not -type d \
| ${SED} "s|${WRKDIR}/plist/||1" > ${PLIST}
@${FIND} -ds "${WRKDIR}/plist/" -type d -mindepth 2 \
| ${SED} -e "/pkgconfig/d" -e "s|${WRKDIR}/plist/|@dirrm |1" >> ${PLIST}
@${RM} -rf "${WRKDIR}/plist"
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (libbluray-0.2.20110219.tar.gz) = f14c83886d82b1ba36e97aa5912e44775b72396c73bb7da6e8ef879615d31f9d
SIZE (libbluray-0.2.20110219.tar.gz) = 237648

View File

@ -0,0 +1,28 @@
--- configure.ac.orig 2011-02-13 16:21:47.000000000 +0100
+++ configure.ac 2011-02-20 03:32:38.000000000 +0100
@@ -35,7 +35,7 @@
pkg_config_missing="Could not find pkg-config. Assuming..."
# configure options
-AC_ARG_ENABLE([dlopen-crypto-libs],
+AC_ARG_WITH([dlopen-crypto-libs],
[AS_HELP_STRING([--with-dlopen-crypto-libs],
[use libaacs and libbdplus via dlopen (default is auto)])],
[use_dlopen_crypto_libs=$withval],
@@ -120,7 +120,7 @@
# dlopen check
if [[ $use_dlopen_crypto_libs = "auto" ]]; then
- if test "${SYS}" != "mingw32" ; then
+ if test "${SYS}" != "mingw32" -a "${SYS}" == "${SYS#freebsd}" ; then
AC_CHECK_LIB([dl], [dlopen],
[DLOPEN_LDFLAGS="-ldl"; AC_MSG_NOTICE($using_dlopen_crypto_libs)
AC_DEFINE([DLOPEN_CRYPTO_LIBS], [1], ["Define to 1 if dlopening crypto libs"])],
@@ -236,6 +236,7 @@
case $target_os in
linux*) java_os=linux ;;
win*) java_os=win32 ;;
+ freebsd*) java_os=freebsd ;;
*) java_os=$target_os ;;
esac

View File

@ -0,0 +1,7 @@
libbluray is an open-source library designed for Blu-Ray discs playback for
media players, like VLC or MPlayer.
This research project is developed by an international team of developers from
Doom9.
WWW: http://www.videolan.org/developers/libbluray.html

View File

@ -0,0 +1,12 @@
include/libbluray/bluray.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.a
lib/libbluray.la
lib/libbluray.so
lib/libbluray.so.0
libdata/pkgconfig/libbluray.pc
@dirrm include/libbluray