Index: head/multimedia/libbluray/Makefile =================================================================== --- head/multimedia/libbluray/Makefile (revision 379551) +++ head/multimedia/libbluray/Makefile (revision 379552) @@ -1,48 +1,80 @@ # Created by: kamikaze@bsdforen.de # $FreeBSD$ PORTNAME= libbluray -PORTVERSION= 0.5.0 -PORTREVISION= 1 +PORTVERSION= 0.7.0 PORTEPOCH= 1 CATEGORIES= multimedia MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/${PORTNAME}/${PORTVERSION}/ \ http://blu.opsec.eu/ -MAINTAINER= kamikaze@bsdforen.de +MAINTAINER= kami@freebsd.org COMMENT= Blu-Ray discs playback library for media players LICENSE= LGPL21 -LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 -# dlopen dependencies, libbdplus not yet available -LIB_DEPENDS+= libaacs.so:${PORTSDIR}/multimedia/libaacs +LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ + libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig +# dlopen dependencies +LIB_DEPENDS+= libaacs.so:${PORTSDIR}/multimedia/libaacs \ + libbdplus.so:${PORTSDIR}/multimedia/libbdplus -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-debug INSTALL_TARGET= install-strip +USE_AUTOTOOLS= autoconf aclocal automake USES= iconv libtool pathfix pkgconfig tar:bzip2 USE_LDCONFIG= yes USE_GNOME= libxml2 +.include "Makefile.include" + OPTIONS_DEFINE= JAVA OPTIONS_SUB= yes JAVA_DESC= Enable Blu-Ray Java support .include .if ${PORT_OPTIONS:MJAVA} BUILD_DEPENDS+= ant:${PORTSDIR}/devel/apache-ant CATEGORIES+= java USE_JAVA= yes JAVA_VERSION= 1.6+ JAVA_BUILD= yes JAVA_RUN= yes CONFIGURE_ARGS+= --enable-bdjava --with-bdj-type=j2se CONFIGURE_ENV+= JDK_HOME="${JAVA_HOME}" .endif -post-patch: - @${REINPLACE_CMD} '/^SET_FEATURES =/d' ${WRKSRC}/src/Makefile.in +# +# NOTE: +# makeplist has no support for options, leave this in place +# + +# Create PLIST_SUB definitions for options +.for _option in ${OPTIONS_DEFINE} +.if ${PORT_OPTIONS:M${_option}} +PLIST_SUB+= ${_option}="" +.else +PLIST_SUB+= ${_option}="@comment " +.endif +.endfor + +plist: + @${ECHO} "===> Rebuilding PLIST." +.for _option in "" ${OPTIONS_DEFINE} + @${MAKE} clean stage OPTIONS_EXCLUDE="${OPTIONS_DEFINE:N${_option}}" \ + WITH=${_option} + @${MTREE_CMD} -cp "${STAGEDIR}${PREFIX}/" > "${WRKDIR}/mtree.${_option}" + @${MTREE_CMD} -Sf "${WRKDIR}/mtree.${_option}" -f "${MTREE_FILE}" \ + | ${SED} -e '/share\/licenses/d' -e '/ dir /d' -e 's/ .*//' \ + > "plist.${_option}" +.endfor +.for _option in ${OPTIONS_DEFINE} + @${GREP} -vFx "$$(${CAT} "plist.")" "plist.${_option}" \ + | ${SED} 's/^/%%${_option}%%/' > "plist.add.${_option}" + @${RM} "plist.${_option}" +.endfor + @${CAT} plist. ${OPTIONS_DEFINE:C/^/plist.add./} \ + | ${SED} "${PLIST_SUB_SED}" > ${PLIST} + @${RM} plist. ${OPTIONS_DEFINE:C/^/plist.add./} .include Index: head/multimedia/libbluray/distinfo =================================================================== --- head/multimedia/libbluray/distinfo (revision 379551) +++ head/multimedia/libbluray/distinfo (revision 379552) @@ -1,2 +1,2 @@ -SHA256 (libbluray-0.5.0.tar.bz2) = 19213e193e1abc5ed2de65edfb539deda1dbf6cc64dfef03e405524c9c6f7216 -SIZE (libbluray-0.5.0.tar.bz2) = 559639 +SHA256 (libbluray-0.7.0.tar.bz2) = f79beb9fbb24117cbb1264c919e686ae9e6349c0ad08b48c4b6233b2887eb68d +SIZE (libbluray-0.7.0.tar.bz2) = 597266 Index: head/multimedia/libbluray/files/patch-util-refcnt.h =================================================================== --- head/multimedia/libbluray/files/patch-util-refcnt.h (revision 379551) +++ head/multimedia/libbluray/files/patch-util-refcnt.h (nonexistent) @@ -1,11 +0,0 @@ ---- src/util/refcnt.h.orig 2014-04-13 17:52:33.000000000 +0200 -+++ src/util/refcnt.h 2014-04-13 17:52:43.000000000 +0200 -@@ -18,7 +18,7 @@ - */ - - #ifndef BD_REFCNT_H_ --#define BD_FEFCNT_H_ -+#define BD_REFCNT_H_ - - #include "attributes.h" - Property changes on: head/multimedia/libbluray/files/patch-util-refcnt.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/multimedia/libbluray/files/patch-src-Makefile.am =================================================================== --- head/multimedia/libbluray/files/patch-src-Makefile.am (nonexistent) +++ head/multimedia/libbluray/files/patch-src-Makefile.am (revision 379552) @@ -0,0 +1,7 @@ +--- src/Makefile.am.orig 2015-01-26 10:44:55.000000000 +0100 ++++ src/Makefile.am 2015-01-29 13:10:02.000000000 +0100 +@@ -1,4 +1,3 @@ +-SET_FEATURES = -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT + SET_INCLUDES = -I$(top_srcdir) -Ifile -Ilibbluray -Ilibbluray/bdnav $(BDJAVA_CFLAGS) + + AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES) $(LIBXML2_CFLAGS) $(FT2_CFLAGS) $(FONTCONFIG_CFLAGS) Property changes on: head/multimedia/libbluray/files/patch-src-Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libbluray/pkg-plist =================================================================== --- head/multimedia/libbluray/pkg-plist (revision 379551) +++ head/multimedia/libbluray/pkg-plist (revision 379552) @@ -1,15 +1,16 @@ 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 +include/libbluray/player_settings.h lib/libbluray.a lib/libbluray.so lib/libbluray.so.1 -lib/libbluray.so.1.5.0 +lib/libbluray.so.1.7.0 libdata/pkgconfig/libbluray.pc -%%JAVA%%lib/libbluray/libbluray.jar +%%JAVA%%%%JAVASHAREDIR%%/libbluray-j2se-0.7.0.jar