aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libbluray
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2014-04-27 22:14:26 +0800
committerriggs <riggs@FreeBSD.org>2014-04-27 22:14:26 +0800
commit59ba7bdaa32261e5485d5d971833c1216e25c08f (patch)
tree5aa8a7f3b50297d4a6beca08d9a833a2da6ca541 /multimedia/libbluray
parent88771b0080a6cc836e312a84b19306209c2db67e (diff)
downloadfreebsd-ports-gnome-59ba7bdaa32261e5485d5d971833c1216e25c08f.tar.gz
freebsd-ports-gnome-59ba7bdaa32261e5485d5d971833c1216e25c08f.tar.zst
freebsd-ports-gnome-59ba7bdaa32261e5485d5d971833c1216e25c08f.zip
- Update libaacs to 0.7.0
- Add LICENSE - USES tar:bzip2 - Update libbluray 0.5.0 - Unbreak JAVA option - USES tar:bzip2 - Bump PORTREVISION in depdendent ports due to shared lib version bump PR: ports/188573 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de> (maintainer) Approved by: thierry (mentor)
Diffstat (limited to 'multimedia/libbluray')
-rw-r--r--multimedia/libbluray/Makefile51
-rw-r--r--multimedia/libbluray/distinfo4
-rw-r--r--multimedia/libbluray/files/patch-src-Makefile.am7
-rw-r--r--multimedia/libbluray/files/patch-util-refcnt.h11
-rw-r--r--multimedia/libbluray/pkg-plist4
5 files changed, 55 insertions, 22 deletions
diff --git a/multimedia/libbluray/Makefile b/multimedia/libbluray/Makefile
index 0d2d5ae71246..b49ec02f4d46 100644
--- a/multimedia/libbluray/Makefile
+++ b/multimedia/libbluray/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= libbluray
-PORTVERSION= 0.3.0
-PORTREVISION= 1
+PORTVERSION= 0.5.0
PORTEPOCH= 1
CATEGORIES= multimedia
MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/${PORTNAME}/${PORTVERSION}/ \
@@ -14,14 +13,14 @@ COMMENT= Blu-Ray discs playback library for media players
LICENSE= LGPL21
-LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2
+LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
# dlopen dependencies, libbdplus not yet available
LIB_DEPENDS+= libaacs.so:${PORTSDIR}/multimedia/libaacs
-USES= iconv pkgconfig
+USES= iconv pkgconfig tar:bzip2
USE_LDCONFIG= yes
-USE_BZIP2= yes
USE_AUTOTOOLS= autoconf aclocal automake libtool
+USE_GNOME= libxml2
HAS_CONFIGURE= yes
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
@@ -34,32 +33,46 @@ JAVA_DESC= Enable Blu-Ray Java support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MJAVA}
-BROKEN= Does not build with JAVA
BUILD_DEPENDS+= ant:${PORTSDIR}/devel/apache-ant
CATEGORIES+= java
USE_JAVA= yes
-JAVA_VERSION= 1.4+
+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
+# 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
+
run-autotools:
@cd ${WRKSRC} && ${SH} bootstrap
-plist: build
+plist:
@${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"
+.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} -ne '/share\/licenses/b dirs' \
+ -e '/ dir /{s/ .*//;s/^/@dirrm /;H;};t dirs' \
+ -e 's/ .*//p;:dirs' -e '$${g;s/^\n//p;}' \
+ > "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./} > ${PLIST}
+ @${RM} plist. ${OPTIONS_DEFINE:C/^/plist.add./}
.include <bsd.port.mk>
diff --git a/multimedia/libbluray/distinfo b/multimedia/libbluray/distinfo
index 84249e2f9c98..8eb5a1550463 100644
--- a/multimedia/libbluray/distinfo
+++ b/multimedia/libbluray/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libbluray-0.3.0.tar.bz2) = dc73ad618052ddd2d72bb847c8e5b9a1c9175db7b18d0456b21f484836c30038
-SIZE (libbluray-0.3.0.tar.bz2) = 510993
+SHA256 (libbluray-0.5.0.tar.bz2) = 19213e193e1abc5ed2de65edfb539deda1dbf6cc64dfef03e405524c9c6f7216
+SIZE (libbluray-0.5.0.tar.bz2) = 559639
diff --git a/multimedia/libbluray/files/patch-src-Makefile.am b/multimedia/libbluray/files/patch-src-Makefile.am
new file mode 100644
index 000000000000..d4594c071ad1
--- /dev/null
+++ b/multimedia/libbluray/files/patch-src-Makefile.am
@@ -0,0 +1,7 @@
+--- src/Makefile.am.orig 2014-04-13 18:08:03.000000000 +0200
++++ src/Makefile.am 2014-04-13 18:08:10.000000000 +0200
+@@ -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
+
+ AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES) $(LIBXML2_CFLAGS) $(FT2_CFLAGS)
diff --git a/multimedia/libbluray/files/patch-util-refcnt.h b/multimedia/libbluray/files/patch-util-refcnt.h
new file mode 100644
index 000000000000..a99e7295ec6d
--- /dev/null
+++ b/multimedia/libbluray/files/patch-util-refcnt.h
@@ -0,0 +1,11 @@
+--- 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"
+
diff --git a/multimedia/libbluray/pkg-plist b/multimedia/libbluray/pkg-plist
index e6ec48315c4f..8f37e5b4dfc6 100644
--- a/multimedia/libbluray/pkg-plist
+++ b/multimedia/libbluray/pkg-plist
@@ -10,6 +10,8 @@ include/libbluray/overlay.h
lib/libbluray.a
lib/libbluray.la
lib/libbluray.so
-lib/libbluray.so.4
+lib/libbluray.so.6
libdata/pkgconfig/libbluray.pc
@dirrm include/libbluray
+%%JAVA%%lib/libbluray/libbluray.jar
+%%JAVA%%@dirrm lib/libbluray