Changeset View
Standalone View
multimedia/handbrake/Makefile
# Created by: Andrew Thompson <andy@fud.org.nz> | # Created by: Andrew Thompson <andy@fud.org.nz> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= handbrake | PORTNAME= handbrake | ||||
PORTVERSION= 1.0.7 | PORTVERSION= 1.1.0 | ||||
tcberner: ^ as the line already changes, you can switch it to DISTVERSION. | |||||
PORTREVISION= 5 | |||||
CATEGORIES= multimedia | CATEGORIES= multimedia | ||||
DIST_SUBDIR= ${PORTNAME} | DIST_SUBDIR= ${PORTNAME} | ||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= naito.yuichiro@gmail.com | ||||
COMMENT= Versatile DVD ripper and video transcoder | COMMENT= Versatile DVD ripper and video transcoder | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
tcbernerUnsubmitted Not Done Inline ActionsONLY_FOR_ARCH=i386 amd64 seems more idiomatic to express that. tcberner: `ONLY_FOR_ARCH=i386 amd64` seems more idiomatic to express that.
[[https://www.freebsd. | |||||
BROKEN_aarch64= invokes x86 assembler | |||||
BROKEN_armv6= invokes x86 assembler | |||||
BROKEN_armv7= invokes x86 assembler | |||||
BROKEN_mips= invokes x86 assembler | |||||
BROKEN_mips64= invokes x86 assembler | |||||
BROKEN_sparc64= invokes x86 assembler | |||||
BROKEN_powerpc64= invokes x86 assembler | |||||
BUILD_DEPENDS= bash:shells/bash \ | BUILD_DEPENDS= bash:shells/bash \ | ||||
yasm:devel/yasm \ | yasm:devel/yasm \ | ||||
cmake:devel/cmake | cmake:devel/cmake | ||||
LIB_DEPENDS= libdbus-1.so:devel/dbus \ | LIB_DEPENDS= libdbus-1.so:devel/dbus \ | ||||
libharfbuzz.so:print/harfbuzz \ | libharfbuzz.so:print/harfbuzz \ | ||||
libfontconfig.so:x11-fonts/fontconfig \ | libfontconfig.so:x11-fonts/fontconfig \ | ||||
libfreetype.so:print/freetype2 \ | libfreetype.so:print/freetype2 \ | ||||
libfribidi.so:converters/fribidi \ | libfribidi.so:converters/fribidi \ | ||||
libxml2.so:textproc/libxml2 \ | libxml2.so:textproc/libxml2 \ | ||||
libass.so:multimedia/libass \ | libass.so:multimedia/libass \ | ||||
libogg.so:audio/libogg \ | libogg.so:audio/libogg \ | ||||
libvorbis.so:audio/libvorbis \ | libvorbis.so:audio/libvorbis \ | ||||
libvorbisenc.so:audio/libvorbis \ | libvorbisenc.so:audio/libvorbis \ | ||||
libtheoradec.so:multimedia/libtheora \ | libtheoradec.so:multimedia/libtheora \ | ||||
libtheoraenc.so:multimedia/libtheora \ | libtheoraenc.so:multimedia/libtheora \ | ||||
libsamplerate.so:audio/libsamplerate \ | libsamplerate.so:audio/libsamplerate \ | ||||
libx264.so:multimedia/libx264 \ | libx264.so:multimedia/libx264 \ | ||||
libmp3lame.so:audio/lame \ | libmp3lame.so:audio/lame \ | ||||
libopus.so:audio/opus \ | libopus.so:audio/opus \ | ||||
libjansson.so:devel/jansson | libjansson.so:devel/jansson | ||||
BROKEN_aarch64= invokes x86 assembler | CONTRIB_FILES= fdk-aac-0.1.5.tar.gz \ | ||||
BROKEN_armv6= invokes x86 assembler | libav-12.3.tar.gz \ | ||||
BROKEN_armv7= invokes x86 assembler | libbluray-1.0.2.tar.bz2 \ | ||||
BROKEN_mips= invokes x86 assembler | libdvdnav-5.0.3.tar.bz2 \ | ||||
BROKEN_mips64= invokes x86 assembler | libdvdread-5.0.3.tar.bz2 \ | ||||
BROKEN_sparc64= invokes x86 assembler | libvpx-1.6.1.tar.bz2 \ | ||||
BROKEN_powerpc64= invokes x86 assembler | x265_2.6.tar.gz | ||||
MASTER_SITES+= https://download.handbrake.fr/contrib/:contrib | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= HandBrake | |||||
GH_PROJECT= HandBrake | |||||
CONTRIB_FILES= fdk-aac-0.1.4.tar.gz \ | |||||
libav-12.tar.gz \ | |||||
libbluray-0.9.3.tar.bz2 \ | |||||
libdvdnav-5.0.1.tar.bz2 \ | |||||
libdvdread-5.0.0-6-gcb1ae87.tar.gz \ | |||||
libvpx-1.5.0.tar.bz2 \ | |||||
x265_2.1-1.tar.gz | |||||
MASTER_SITES+= http://download.handbrake.fr/contrib/:contrib | |||||
DISTFILES+= ${CONTRIB_FILES:S/$/:contrib/} | DISTFILES+= ${CONTRIB_FILES:S/$/:contrib/} | ||||
.if !defined(PACKAGE_BUILDING) | .if !defined(PACKAGE_BUILDING) | ||||
# DVDCSS version hardcoded in contrib/libdvdread/libdvdread-5.0.0-6-gcb1ae87/src/dvd_input.c (dlopen'ed) | # DVDCSS version hardcoded in contrib/libdvdread/libdvdread-5.0.0-6-gcb1ae87/src/dvd_input.c (dlopen'ed) | ||||
LIB_DEPENDS+= libdvdcss.so:multimedia/libdvdcss | LIB_DEPENDS+= libdvdcss.so:multimedia/libdvdcss | ||||
.endif | .endif | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USE_GCC= yes | |||||
USES= autoreconf:build compiler:features gmake iconv \ | USES= autoreconf:build compiler:features gmake iconv \ | ||||
libtool:build localbase:ldflags pkgconfig python:2.7,build | libtool:build localbase:ldflags pkgconfig python:2.7,build | ||||
MAKE_ENV= V=1 ACLOCAL=${LOCALBASE}/bin/aclocal | MAKE_ENV= V=1 ACLOCAL=${LOCALBASE}/bin/aclocal | ||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= HandBrake | |||||
GH_PROJECT= HandBrake | |||||
USE_GCC= yes | |||||
CONFIGURE_ARGS= --force --enable-x265 | CONFIGURE_ARGS= --force --enable-x265 | ||||
CONFIGURE_TARGET= build | CONFIGURE_TARGET= build | ||||
BUILD_WRKSRC= ${WRKSRC}/build | BUILD_WRKSRC= ${WRKSRC}/build | ||||
INSTALL_WRKSRC= ${WRKSRC}/build | INSTALL_WRKSRC= ${WRKSRC}/build | ||||
MAKEFILE= GNUmakefile | MAKEFILE= GNUmakefile | ||||
ALL_TARGET= # | ALL_TARGET= # | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
Show All 15 Lines | |||||
X11_DESC= Build GTK+3 based GUI program | X11_DESC= Build GTK+3 based GUI program | ||||
FDK_AAC_CONFIGURE_ENABLE= fdk-aac | FDK_AAC_CONFIGURE_ENABLE= fdk-aac | ||||
FDK_AAC_VARS= LICENSE+=FDK_AAC LICENSE_COMB=multi | FDK_AAC_VARS= LICENSE+=FDK_AAC LICENSE_COMB=multi | ||||
LICENSE_NAME_FDK_AAC= Software License for The Fraunhofer FDK AAC Codec Library for Android | LICENSE_NAME_FDK_AAC= Software License for The Fraunhofer FDK AAC Codec Library for Android | ||||
LICENSE_FILE_FDK_AAC= ${WRKDIR}/${DISTFILES:Mfdk*:R:R}/NOTICE | LICENSE_FILE_FDK_AAC= ${WRKDIR}/${DISTFILES:Mfdk*:R:R}/NOTICE | ||||
LICENSE_PERMS_FDK_AAC= dist-mirror pkg-mirror auto-accept | LICENSE_PERMS_FDK_AAC= dist-mirror pkg-mirror auto-accept | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
tcbernerUnsubmitted Not Done Inline ActionsThis whole option block should be changed to use the options helpers tcberner: This whole option block should be changed to use the [[https://www.freebsd. | |||||
# Recent GNU binutils are required to handle inline SSSE3 asm (in x264), and | # Recent GNU binutils are required to handle inline SSSE3 asm (in x264), and | ||||
# to support --exclude-libs option for ld(1) when building GUI program | # to support --exclude-libs option for ld(1) when building GUI program | ||||
.if ${PORT_OPTIONS:MX11} | .if ${PORT_OPTIONS:MX11} | ||||
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | ||||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | ||||
CONFIGURE_ARGS+= --disable-gtk-update-checks --disable-gst | CONFIGURE_ARGS+= --disable-gtk-update-checks | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:devel/binutils | BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:devel/binutils | ||||
LIB_DEPENDS+= libvpx.so:multimedia/libvpx \ | LIB_DEPENDS+= libvpx.so:multimedia/libvpx \ | ||||
libdbus-glib-1.so:devel/dbus-glib \ | |||||
libnotify.so:devel/libnotify | libnotify.so:devel/libnotify | ||||
USES+= gettext desktop-file-utils | USES+= gettext desktop-file-utils | ||||
USE_GNOME+= gtk30 intltool cairo gdkpixbuf2 | USE_GNOME+= gtk30 intltool cairo gdkpixbuf2 | ||||
USE_GSTREAMER1= gdkpixbuf | |||||
.else | .else | ||||
CONFIGURE_ARGS+= --disable-gtk | CONFIGURE_ARGS+= --disable-gtk | ||||
.endif | .endif | ||||
# HandBrake tries to fetch its dependencies during build phase, which is not | # HandBrake tries to fetch its dependencies during build phase, which is not | ||||
# considered good in FreeBSD. Instead, we will provided the downloaded files. | # considered good in FreeBSD. Instead, we will provided the downloaded files. | ||||
Not Done Inline ActionsExcuse me. naito.yuichiro_gmail.com: Excuse me.
I'm Yuichiro NAITO, submitter of this patch.
Why did you add --disable-gst ?
It… | |||||
Not Done Inline ActionsIt seems to be already there in the current version in the ports tree: tcberner: It seems to be already there in the current version in the ports tree:
`CONFIGURE_ARGS+=… | |||||
Not Done Inline ActionsHi, I compiled on 11.1 with and without --disable-gst. In both cases, the preview of the main window show a frame of the video. Clicking on "show preview" plays that only frame for the length of the video (mp4). It also warns about some gstreamer missing plugins. Can you confirm this behavior? fernape: Hi,
I compiled on 11.1 with and without --disable-gst. In both cases, the preview of the main… | |||||
Not Done Inline ActionsNo, I can't see any warnings on my HandBrake except of 'inhibited 0'. naito.yuichiro_gmail.com: No, I can't see any warnings on my HandBrake except of 'inhibited 0'.
'inhibited 0' is a debug… | |||||
Not Done Inline ActionsThis is the first msg: Then, a second one shows up: In this system I have the following gstreamer packages: $ pkg info -x 'gstreamer.*' In the console I see only this message: fernape: This is the first msg:
https://www.dropbox.com/s/nadocvs1cwoiof1/msg.png?dl=0
Then, a second… | |||||
Not Done Inline ActionsThank you so much. "X11_USE= gstreamer1=gdkpixbuf,libav" If someone claims the redundancy, naito.yuichiro_gmail.com: Thank you so much.
I found gstreamer1-libav plugin is needed for preview.
Gstreamer1-libav… | |||||
Not Done Inline ActionsIt works for me now. Thanks! fernape: It works for me now.
Thanks! | |||||
post-extract: .SILENT | post-extract: .SILENT | ||||
${MKDIR} ${WRKSRC}/download | ${MKDIR} ${WRKSRC}/download | ||||
.for f in ${CONTRIB_FILES} | .for f in ${CONTRIB_FILES} | ||||
${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSRC}/download | ${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSRC}/download | ||||
.endfor | .endfor | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} 's@python2 @${PYTHON_CMD} @' \ | @${REINPLACE_CMD} 's@python2 @${PYTHON_CMD} @' \ | ||||
${WRKSRC}/gtk/src/Makefile.am | ${WRKSRC}/gtk/src/Makefile.am | ||||
post-install-X11-on: | post-install-X11-on: | ||||
${LN} -sf ghb ${STAGEDIR}${PREFIX}/bin/HandBrake | ${LN} -sf ghb ${STAGEDIR}${PREFIX}/bin/HandBrake | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
^ as the line already changes, you can switch it to DISTVERSION.