Lakka-LibreELEC/packages/multimedia/libbluray/package.mk
2022-12-22 21:50:02 +00:00

46 lines
1.8 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libbluray"
PKG_VERSION="1.3.4"
PKG_SHA256="478ffd68a0f5dde8ef6ca989b7f035b5a0a22c599142e5cd3ff7b03bbebe5f2b"
PKG_LICENSE="LGPL"
PKG_SITE="https://www.videolan.org/developers/libbluray.html"
PKG_URL="http://download.videolan.org/pub/videolan/libbluray/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_TARGET="toolchain fontconfig freetype libxml2 libudfread"
PKG_LONGDESC="libbluray is an open-source library designed for Blu-Ray Discs playback for media players."
PKG_TOOLCHAIN="autotools"
if [ "${BLURAY_AACS_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" libaacs"
fi
if [ "${BLURAY_BDPLUS_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" libbdplus"
fi
PKG_CONFIGURE_OPTS_TARGET="--disable-werror \
--disable-extra-warnings \
--disable-optimizations \
--disable-examples \
--disable-bdjava-jar \
--disable-doxygen-doc \
--disable-doxygen-dot \
--disable-doxygen-man \
--disable-doxygen-rtf \
--disable-doxygen-xml \
--disable-doxygen-chm \
--disable-doxygen-chi \
--disable-doxygen-html \
--disable-doxygen-ps \
--disable-doxygen-pdf \
--with-freetype \
--with-fontconfig \
--with-libxml2 \
--with-gnu-ld"
post_configure_target() {
libtool_remove_rpath libtool
}