aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libbluray/Makefile
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2021-01-01 16:14:02 +0000
committerKurt Jaeger <pi@FreeBSD.org>2021-01-01 16:14:02 +0000
commit47c29befe958c78fdf5e93bb8a6eddcac5dc317b (patch)
treebba216cccce4f48f0eee3792ceb2385a84f90e8c /multimedia/libbluray/Makefile
parent2ebea84c2409d67b11d51dc1243aed313e9dbe05 (diff)
Notes
Diffstat (limited to 'multimedia/libbluray/Makefile')
-rw-r--r--multimedia/libbluray/Makefile32
1 files changed, 17 insertions, 15 deletions
diff --git a/multimedia/libbluray/Makefile b/multimedia/libbluray/Makefile
index adfee079ff52..0649ff548525 100644
--- a/multimedia/libbluray/Makefile
+++ b/multimedia/libbluray/Makefile
@@ -2,12 +2,10 @@
# $FreeBSD$
PORTNAME= libbluray
-DISTVERSION= 1.1.1
-PORTREVISION= 2
+DISTVERSION= 1.2.1
PORTEPOCH= 1
CATEGORIES= multimedia
-MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/${PORTNAME}/${PORTVERSION}/ \
- http://blu.opsec.eu/
+MASTER_SITES= https://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Blu-Ray discs playback library for media players
@@ -16,34 +14,38 @@ LICENSE= LGPL21
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
-# dlopen dependencies
-LIB_DEPENDS+= libaacs.so:multimedia/libaacs \
- libbdplus.so:multimedia/libbdplus
-USES= gnome iconv libtool pathfix pkgconfig tar:bzip2
+USES= gnome libtool pathfix pkgconfig tar:bzip2
USE_GNOME= libxml2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-static
+CONFIGURE_ARGS= --disable-doxygen-doc --disable-optimizations --disable-static
CONFIGURE_ENV= PACKAGES="" # Bug #226009
INSTALL_TARGET= install-strip
-.include "Makefile.include"
-
OPTIONS_DEFINE= JAVA
OPTIONS_SUB= yes
JAVA_DESC= Enable Blu-Ray Java support
-JAVA_BUILD_DEPENDS= ant:devel/apache-ant
JAVA_CATEGORIES= java
+JAVA_BUILD_DEPENDS= ant:devel/apache-ant
JAVA_CONFIGURE_ENABLE= bdjava-jar
-JAVA_CONFIGURE_ENV= JDK_HOME="${JAVA_HOME}"
-JAVA_USE= JAVA=yes
-JAVA_VARS= JAVA_BUILD=yes JAVA_RUN=yes
+JAVA_CONFIGURE_WITH= java9
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MJAVA}
+USE_JAVA= yes
+JAVA_VERSION= 8
+JAVA_BUILD= yes
+MAKE_ENV= JAVA_HOME=${JAVA_HOME} \
+ PATH=${JAVA_HOME}/bin:${PATH}
+
+.endif
post-patch:
@${RLN} ${WRKSRC}/jni/linux ${WRKSRC}/jni/freebsd