Changeset View
Changeset View
Standalone View
Standalone View
multimedia/libbluray/Makefile
Context not available. | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libbluray | PORTNAME= libbluray | ||||
PORTVERSION= 0.5.0 | PORTVERSION= 0.7.0 | ||||
PORTREVISION= 1 | |||||
PORTEPOCH= 1 | PORTEPOCH= 1 | ||||
CATEGORIES= multimedia | CATEGORIES= multimedia | ||||
MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/${PORTNAME}/${PORTVERSION}/ \ | MASTER_SITES= ftp://ftp.videolan.org/pub/videolan/${PORTNAME}/${PORTVERSION}/ \ | ||||
http://blu.opsec.eu/ | http://blu.opsec.eu/ | ||||
MAINTAINER= kamikaze@bsdforen.de | MAINTAINER= kami@freebsd.org | ||||
COMMENT= Blu-Ray discs playback library for media players | COMMENT= Blu-Ray discs playback library for media players | ||||
LICENSE= LGPL21 | LICENSE= LGPL21 | ||||
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 | LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ | ||||
# dlopen dependencies, libbdplus not yet available | libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig | ||||
LIB_DEPENDS+= libaacs.so:${PORTSDIR}/multimedia/libaacs | # 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 | INSTALL_TARGET= install-strip | ||||
USE_AUTOTOOLS= autoconf aclocal automake | |||||
USES= iconv libtool pathfix pkgconfig tar:bzip2 | USES= iconv libtool pathfix pkgconfig tar:bzip2 | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
.include "Makefile.include" | |||||
OPTIONS_DEFINE= JAVA | OPTIONS_DEFINE= JAVA | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
JAVA_DESC= Enable Blu-Ray Java support | JAVA_DESC= Enable Blu-Ray Java support | ||||
Context not available. | |||||
CONFIGURE_ENV+= JDK_HOME="${JAVA_HOME}" | CONFIGURE_ENV+= JDK_HOME="${JAVA_HOME}" | ||||
.endif | .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 <bsd.port.mk> | .include <bsd.port.mk> | ||||
Context not available. |