pkgsrc/multimedia/libvpx/Makefile

131 lines
3.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.48 2014/05/29 23:37:01 wiz Exp $
Update to 1.3.0 * tarball is not distributed by Google, use Debian's one Changelog: 2013-11-15 v1.3.0 "Forest" This release introduces the VP9 codec in a backward-compatible way. All existing users of VP8 can continue to use the library without modification. However, some VP8 options do not map to VP9 in the same manner. The VP9 encoder in this release is not feature complete. Users interested in the encoder are advised to use the git master branch and discuss issues on libvpx mailing lists. - Upgrading: This release is ABI and API compatible with Duclair (v1.0.0). Users of older releases should refer to the Upgrading notes in this document for that release. - Enhancements: Get rid of bashisms in the main build scripts Added usage info on command line options Add lossless compression mode Dll build of libvpx Add additional Mac OS X targets: 10.7, 10.8 and 10.9 (darwin11-13) Add option to disable documentation configure: add --enable-external-build support make: support V=1 as short form of verbose=yes configure: support mingw-w64 configure: support hardfloat armv7 CHOSTS configure: add support for android x86 Add estimated completion time to vpxenc Don't exit on decode errors in vpxenc vpxenc: support scaling prior to encoding vpxdec: support scaling output vpxenc: improve progress indicators with --skip msvs: Don't link to winmm.lib Add a new script for producing vcxproj files Produce Visual Studio 10 and 11 project files Produce Windows Phone project files msvs-build: use msbuild for vs >= 2005 configure: default configure log to config.log Add encoding option --static-thresh - Speed: Miscellaneous speed optimizations for VP8 and VP9. - Quality: In general, quality is consistent with the Eider release. - Bug Fixes: This release represents approximately a year of engineering effort, and contains multiple bug fixes. Please refer to git history for details.
2014-01-02 16:18:01 +01:00
DISTNAME= libvpx_1.3.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
PKGREVISION= 2
CATEGORIES= multimedia
Update to 1.3.0 * tarball is not distributed by Google, use Debian's one Changelog: 2013-11-15 v1.3.0 "Forest" This release introduces the VP9 codec in a backward-compatible way. All existing users of VP8 can continue to use the library without modification. However, some VP8 options do not map to VP9 in the same manner. The VP9 encoder in this release is not feature complete. Users interested in the encoder are advised to use the git master branch and discuss issues on libvpx mailing lists. - Upgrading: This release is ABI and API compatible with Duclair (v1.0.0). Users of older releases should refer to the Upgrading notes in this document for that release. - Enhancements: Get rid of bashisms in the main build scripts Added usage info on command line options Add lossless compression mode Dll build of libvpx Add additional Mac OS X targets: 10.7, 10.8 and 10.9 (darwin11-13) Add option to disable documentation configure: add --enable-external-build support make: support V=1 as short form of verbose=yes configure: support mingw-w64 configure: support hardfloat armv7 CHOSTS configure: add support for android x86 Add estimated completion time to vpxenc Don't exit on decode errors in vpxenc vpxenc: support scaling prior to encoding vpxdec: support scaling output vpxenc: improve progress indicators with --skip msvs: Don't link to winmm.lib Add a new script for producing vcxproj files Produce Visual Studio 10 and 11 project files Produce Windows Phone project files msvs-build: use msbuild for vs >= 2005 configure: default configure log to config.log Add encoding option --static-thresh - Speed: Miscellaneous speed optimizations for VP8 and VP9. - Quality: In general, quality is consistent with the Eider release. - Bug Fixes: This release represents approximately a year of engineering effort, and contains multiple bug fixes. Please refer to git history for details.
2014-01-02 16:18:01 +01:00
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/libv/libvpx/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://code.google.com/p/webm/
COMMENT= On2 VP8 library from Google
LICENSE= modified-bsd
Update to 1.3.0 * tarball is not distributed by Google, use Debian's one Changelog: 2013-11-15 v1.3.0 "Forest" This release introduces the VP9 codec in a backward-compatible way. All existing users of VP8 can continue to use the library without modification. However, some VP8 options do not map to VP9 in the same manner. The VP9 encoder in this release is not feature complete. Users interested in the encoder are advised to use the git master branch and discuss issues on libvpx mailing lists. - Upgrading: This release is ABI and API compatible with Duclair (v1.0.0). Users of older releases should refer to the Upgrading notes in this document for that release. - Enhancements: Get rid of bashisms in the main build scripts Added usage info on command line options Add lossless compression mode Dll build of libvpx Add additional Mac OS X targets: 10.7, 10.8 and 10.9 (darwin11-13) Add option to disable documentation configure: add --enable-external-build support make: support V=1 as short form of verbose=yes configure: support mingw-w64 configure: support hardfloat armv7 CHOSTS configure: add support for android x86 Add estimated completion time to vpxenc Don't exit on decode errors in vpxenc vpxenc: support scaling prior to encoding vpxdec: support scaling output vpxenc: improve progress indicators with --skip msvs: Don't link to winmm.lib Add a new script for producing vcxproj files Produce Visual Studio 10 and 11 project files Produce Windows Phone project files msvs-build: use msbuild for vs >= 2005 configure: default configure log to config.log Add encoding option --static-thresh - Speed: Miscellaneous speed optimizations for VP8 and VP9. - Quality: In general, quality is consistent with the Eider release. - Bug Fixes: This release represents approximately a year of engineering effort, and contains multiple bug fixes. Please refer to git history for details.
2014-01-02 16:18:01 +01:00
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake bash:build perl:build
HAS_CONFIGURE= yes
Update to 1.0.0 * Bump BUILDLINK_ABI_DEPENDS to 1.0.0 Changelog: 2012-01-27 v1.0.0 "Duclair" Our fourth named release, focused on performance and features related to real-time encoding. It also fixes a decoder crash bug introduced in v0.9.7, so all users of that release are encouraged to upgrade. - Upgrading: This release is ABI incompatible with prior releases of libvpx, so the "major" version number has been bumped to 1. You must recompile your applications against the latest version of the libvpx headers. The API remains compatible, and this should not require code changes in most applications. - Enhancements: This release introduces several substantial new features to the encoder, of particular interest to real time streaming applications. Temporal scalability allows the encoder to produce a stream that can be decimated to different frame rates, with independent rate targetting for each substream. Multiframe quality enhancement postprocessing can make visual quality more consistent in the presence of frames that are substantially different quality than the surrounding frames, as in the temporal scalability case and in some forced keyframe scenarios. Multiple-resolution encoding support allows the encoding of the same content at different resolutions faster than encoding them separately. - Speed: Optimization targets for this release included the decoder and the real- time modes of the encoder. Decoder speed on x86 has improved 10.5% with this release. Encoder improvements followed a curve where speeds 1-3 improved 4.0%-1.5%, speeds 4-8 improved <1%, and speeds 9-16 improved 1.5% to 10.5%, respectively. "Best" mode speed is consistent with the Cayuga release. - Quality: Encoder quality in the single stream case is consistent with the Cayuga release. - Bug Fixes: This release fixes an OOB read decoder crash bug present in v0.9.7 related to the clamping of motion vectors in SPLITMV blocks. This behavior could be triggered by corrupt input or by starting decoding from a P-frame.
2012-01-31 12:53:51 +01:00
CONFIG_SHELL= ${BASH}
CONFIGURE_ARGS+= --disable-postproc
CONFIGURE_ARGS+= --enable-pic
CONFIGURE_ARGS+= --enable-runtime-cpu-detect
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --disable-unit-tests
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
${MACHINE_ARCH} == "amd64"
. if ${PKGSRC_COMPILER} == "gcc" && (${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS")
# PR pkg/48508: GCC 4.4 or later is required to compile ssse3 code on NetBSD & Solaris.
GCC_REQD+= 4.4
. endif
BUILD_DEPENDS+= yasm-[0-9]*:../../devel/yasm
.endif
REPLACE_BASH= configure \
Update to 1.0.0 * Bump BUILDLINK_ABI_DEPENDS to 1.0.0 Changelog: 2012-01-27 v1.0.0 "Duclair" Our fourth named release, focused on performance and features related to real-time encoding. It also fixes a decoder crash bug introduced in v0.9.7, so all users of that release are encouraged to upgrade. - Upgrading: This release is ABI incompatible with prior releases of libvpx, so the "major" version number has been bumped to 1. You must recompile your applications against the latest version of the libvpx headers. The API remains compatible, and this should not require code changes in most applications. - Enhancements: This release introduces several substantial new features to the encoder, of particular interest to real time streaming applications. Temporal scalability allows the encoder to produce a stream that can be decimated to different frame rates, with independent rate targetting for each substream. Multiframe quality enhancement postprocessing can make visual quality more consistent in the presence of frames that are substantially different quality than the surrounding frames, as in the temporal scalability case and in some forced keyframe scenarios. Multiple-resolution encoding support allows the encoding of the same content at different resolutions faster than encoding them separately. - Speed: Optimization targets for this release included the decoder and the real- time modes of the encoder. Decoder speed on x86 has improved 10.5% with this release. Encoder improvements followed a curve where speeds 1-3 improved 4.0%-1.5%, speeds 4-8 improved <1%, and speeds 9-16 improved 1.5% to 10.5%, respectively. "Best" mode speed is consistent with the Cayuga release. - Quality: Encoder quality in the single stream case is consistent with the Cayuga release. - Bug Fixes: This release fixes an OOB read decoder crash bug present in v0.9.7 related to the clamping of motion vectors in SPLITMV blocks. This behavior could be triggered by corrupt input or by starting decoding from a P-frame.
2012-01-31 12:53:51 +01:00
build/make/configure.sh \
build/make/version.sh \
build/make/gen_asm_deps.sh \
build/make/rtcd.sh \
examples/gen_example_text.sh \
examples/gen_example_code.sh
REPLACE_PERL= build/make/ads2gas.pl
.if ${OPSYS} == "Darwin"
BUILDLINK_TRANSFORM+= rm:-Wl,-Bsymbolic
. if ${MACHINE_ARCH} == "i386"
2013-10-23 20:24:02 +02:00
. if !empty(OS_VERSION:M12.*) || !empty(OS_VERSION:M13.*)
2012-11-08 01:07:02 +01:00
CONFIGURE_ARGS+= --target=x86-darwin12-gcc
. elif !empty(OS_VERSION:M11.*)
CONFIGURE_ARGS+= --target=x86-darwin11-gcc
. elif !empty(OS_VERSION:M10.*)
CONFIGURE_ARGS+= --target=x86-darwin10-gcc
. elif !empty(OS_VERSION:M9.*)
2012-11-08 01:07:02 +01:00
CONFIGURE_ARGS+= --target=x86-darwin9-gcc
. else
CONFIGURE_ARGS+= --target=x86-darwin8-gcc
. endif
2012-02-09 18:12:40 +01:00
. elif ${MACHINE_ARCH} == "x86_64"
2013-10-23 20:24:02 +02:00
. if !empty(OS_VERSION:M12.*) || !empty(OS_VERSION:M13.*)
2012-11-08 01:07:02 +01:00
CONFIGURE_ARGS+= --target=x86_64-darwin12-gcc
. elif !empty(OS_VERSION:M11.*)
CONFIGURE_ARGS+= --target=x86_64-darwin11-gcc
2012-02-09 18:12:40 +01:00
. elif !empty(OS_VERSION:M10.*)
CONFIGURE_ARGS+= --target=x86_64-darwin10-gcc
. else
2013-10-23 20:24:02 +02:00
CONFIGURE_ARGS+= --target=x86_64-darwin9-gcc
2012-02-09 18:12:40 +01:00
. endif
2014-01-10 09:43:42 +01:00
. elif ${MACHINE_ARCH} == "powerpc"
. if !empty(OS_VERSION:M9.*)
CONFIGURE_ARGS+= --target=ppc32-darwin9-gcc
. else
CONFIGURE_ARGS+= --target=ppc32-darwin8-gcc
. endif
. endif
.endif
2013-09-13 17:00:43 +02:00
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -std=c++11
.if ${OPSYS} == "NetBSD"
# https://bugzilla.mozilla.org/show_bug.cgi?id=982693
CFLAGS+= -fno-integrated-as
.endif
2013-09-13 17:00:43 +02:00
.endif
2013-11-07 15:26:38 +01:00
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipsel"
CONFIGURE_ARGS+= --target=mips32-linux-gcc
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*)
CONFIGURE_ARGS+= --disable-runtime-cpu-detect
.endif
.if ${OPSYS} == "MirBSD"
BUILDLINK_TRANSFORM+= rm:-lrt
# Compiler is too old for these newfangled features
CONFIGURE_ENV+= sse2=no sse3=no ssse3=no sse4_1=no
# runtime_cpu_detect=no
CONFIGURE_ENV+= RTCD_OPTIONS='--disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4_1'
CONFIGURE_ARGS+= --disable-runtime-cpu-detect
.endif
# Under Solaris 10 its /usr/xpg4/bin/tr is not sufficient. PR pkg/48508
.if !empty(MACHINE_PLATFORM:MSunOS-5.10*)
BUILD_DEPENDS= coreutils-[0-9]*:../../sysutils/coreutils
FIND_PREFIX:= GTRDIR=coreutils
.include "../../mk/find-prefix.mk"
TOOLS_PLATFORM.tr= ${GTRDIR}/bin/gtr
.endif
BUILD_TARGET= # none
post-extract:
${CP} ${FILESDIR}/strip_fPIC.sh ${WRKSRC}
# PR pkg/48508: newer gas from binutils is required to compile ssse3 code.
.if !empty(MACHINE_PLATFORM:MNetBSD-5.*) || \
!empty(MACHINE_PLATFORM:MSunOS-5.10*) || \
!empty(MACHINE_PLATFORM:MOpenBSD-5*)
.include "../../devel/binutils/buildlink3.mk"
.include "../../devel/binutils/override-as.mk"
.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"