Changeset View
Changeset View
Standalone View
Standalone View
head/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 | DISTVERSION= 1.1.0 | ||||
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 | ||||
ONLY_FOR_ARCHS= amd64 i386 | |||||
mat: Add ONLY_FOR_ARCHS_REASON with what was in all the BROKEN_arch before. | |||||
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> | |||||
# 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} | X11_CONFIGURE_ENV= COMPILER_PATH=${LOCALBASE}/bin | ||||
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | X11_MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin | ||||
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin | X11_CONFIGURE_ON= --disable-gtk-update-checks | ||||
CONFIGURE_ARGS+= --disable-gtk-update-checks --disable-gst | X11_CONFIGURE_OFF= --disable-gtk | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:devel/binutils | X11_BUILD_DEPENDS= ${LOCALBASE}/bin/ld:devel/binutils | ||||
LIB_DEPENDS+= libvpx.so:multimedia/libvpx \ | X11_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 | X11_USES= gettext desktop-file-utils | ||||
USE_GNOME+= gtk30 intltool cairo gdkpixbuf2 | X11_USE= gstreamer1=gdkpixbuf,libav \ | ||||
.else | gnome=gtk30,intltool,cairo,gdkpixbuf2 | ||||
CONFIGURE_ARGS+= --disable-gtk | |||||
.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. | ||||
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 | ||||
Show All 9 Lines |
Add ONLY_FOR_ARCHS_REASON with what was in all the BROKEN_arch before.