mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
- Update x264 to 20100624 (build 98)
This commit is contained in:
parent
a9a479c415
commit
165386783b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=258146
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= avidemux2
|
||||
PORTVERSION= 2.4.4
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_BERLIOS} \
|
||||
SF/avidemux/avidemux/${PORTVERSION}
|
||||
@ -155,7 +155,7 @@ LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad
|
||||
.if defined(WITHOUT_X264)
|
||||
CMAKE_ARGS+= -DNO_x264=1
|
||||
.else
|
||||
LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_XVID)
|
||||
|
@ -270,7 +270,7 @@ CONFIGURE_ARGS+= --disable-libvorbis
|
||||
|
||||
# x264
|
||||
.ifdef(WITH_X264)
|
||||
LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
CONFIGURE_ARGS+= --enable-libx264
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-libx264
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ffmpeg
|
||||
PORTVERSION= 0.5.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= multimedia audio ipv6 net
|
||||
MASTER_SITES= http://ffmpeg.org/releases/
|
||||
@ -293,7 +293,7 @@ CONFIGURE_ARGS+= --disable-x11grab
|
||||
|
||||
# x264
|
||||
.ifndef(WITHOUT_X264)
|
||||
LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
CONFIGURE_ARGS+= --enable-libx264
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-libx264
|
||||
|
@ -6,7 +6,7 @@
|
||||
# $MCom: ports/multimedia/gstreamer-plugins-x264/Makefile,v 1.3 2008/03/19 14:05:37 ahze Exp $
|
||||
#
|
||||
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia
|
||||
|
||||
COMMENT= Gstreamer x264 plugin
|
||||
|
@ -476,11 +476,7 @@ gst_vorbis_PLIST_FILES= ${GST_LIB_DIR}/libgstvorbis.la \
|
||||
gst_vorbis_DIST= base
|
||||
|
||||
# x264
|
||||
.if exists(${LOCALBASE}/lib/libx264.so.93)
|
||||
gst_x264_LIB_DEPENDS+= x264.93:${PORTSDIR}/multimedia/x264-devel
|
||||
.else
|
||||
gst_x264_LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
.endif
|
||||
gst_x264_LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
gst_x264_PLIST_FILES= ${GST_LIB_DIR}/libgstx264.la \
|
||||
${GST_LIB_DIR}/libgstx264.so \
|
||||
share/gstreamer-${VERSION}/presets/GstX264Enc.prs
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= libquicktime
|
||||
PORTVERSION= 1.1.5
|
||||
PORTREVISION?= 5
|
||||
PORTREVISION?= 6
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= SF
|
||||
|
||||
@ -42,7 +42,6 @@ OPTIONS= OPENGL "Enable OpenGL support" On \
|
||||
FAAC "Enable FAAC support" Off \
|
||||
FAAD "Enable FAAD support" On \
|
||||
X264 "Enable X264 codec support" On \
|
||||
X264_DEV "Require X264 from multimedia/x264-devel" Off \
|
||||
SCHROEDINGER "Enable dirac support" On \
|
||||
GTK2 "Enable Gtk+2 Frontend" Off \
|
||||
OPTIMIZED_CFLAGS "Enable Optimized CFLAGS" Off
|
||||
@ -135,25 +134,9 @@ CONFIGURE_ARGS+= --without-faad2
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_X264)
|
||||
LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
PLIST_SUB+= X264=""
|
||||
CONFIGURE_ARGS+= --with-x264
|
||||
|
||||
# Automatically choose the multimedia/x264-devel port if installed
|
||||
. if !defined(WITH_X264_DEV)
|
||||
. if exists(${LOCALBASE}/include/x264.h)
|
||||
X264_BUILD!= ${GREP} "define X264_BUILD .." ${LOCALBASE}/include/x264.h | ${AWK} '{ print $$3 }'
|
||||
. if ${X264_BUILD} == "93"
|
||||
_WANT_X264_DEVEL= yes
|
||||
. endif
|
||||
. endif
|
||||
. else
|
||||
_WANT_X264_DEVEL=yes
|
||||
. endif
|
||||
. if defined(_WANT_X264_DEVEL)
|
||||
LIB_DEPENDS+= x264.93:${PORTSDIR}/multimedia/x264-devel
|
||||
. else
|
||||
LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
. endif
|
||||
.else
|
||||
PLIST_SUB+= X264="@comment "
|
||||
CONFIGURE_ARGS+= --without-x264
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= mpeg4ip
|
||||
PORTVERSION= 1.6.1
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
CATEGORIES= multimedia audio ipv6 net
|
||||
MASTER_SITES= LOCAL/ahze
|
||||
# http://sourceforge.net/forum/forum.php?thread_id=1839453&forum_id=59136
|
||||
@ -27,7 +27,7 @@ LIB_DEPENDS= faac.0:${PORTSDIR}/audio/faac \
|
||||
a52.0:${PORTSDIR}/audio/liba52 \
|
||||
mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \
|
||||
avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
|
||||
x264.85:${PORTSDIR}/multimedia/x264
|
||||
x264.98:${PORTSDIR}/multimedia/x264
|
||||
RUN_DEPENDS= mpeg4ip-libmp4v2>=1.6.1:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
|
||||
|
||||
USE_GNOME= gtk20
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= transcode
|
||||
PORTVERSION= 1.1.5
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_BERLIOS} \
|
||||
http://fromani.exit1.org/
|
||||
@ -117,7 +117,7 @@ CONFIGURE_ARGS+= --disable-xvid
|
||||
.endif
|
||||
|
||||
.if defined(WITH_X264)
|
||||
LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
CONFIGURE_ARGS+= --with-x264-prefix=${LOCALBASE} --enable-x264
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-x264
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= vlc
|
||||
DISTVERSION= 1.1.0
|
||||
PORTEPOCH= 3
|
||||
PORTEPOCH= 4
|
||||
CATEGORIES= multimedia audio ipv6 net www
|
||||
MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION}/ \
|
||||
http://ftp.snt.utwente.nl/pub/software/videolan/${PORTNAME}/${DISTVERSION}/ \
|
||||
@ -598,7 +598,7 @@ CONFIGURE_ARGS+=--with-x
|
||||
|
||||
.if defined(WITH_X264)
|
||||
CONFIGURE_ARGS+=--enable-x264
|
||||
LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-x264
|
||||
.endif
|
||||
|
@ -5,8 +5,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= x264
|
||||
PORTVERSION= 0.0.20100222
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 0.0.20100624
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= http://downloads.videolan.org/pub/videolan/x264/snapshots/ \
|
||||
http://samples.mplayerhq.hu/yuv4mpeg2/:pgo
|
||||
@ -88,9 +87,9 @@ RESTRICTED_FILES= ${Y4M_VIDEO_DISTFILE}
|
||||
.if !defined(WITHOUT_GPAC)
|
||||
BUILD_DEPENDS+= gpac-libgpac>=0.4.5,1:${PORTSDIR}/multimedia/gpac-libgpac
|
||||
LIB_DEPENDS+= gpac.1:${PORTSDIR}/multimedia/gpac-libgpac
|
||||
CONFIGURE_ARGS+= --enable-mp4-output
|
||||
CONFIGURE_ARGS+= --enable-gpac
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-mp4-output
|
||||
CONFIGURE_ARGS+= --disable-gpac
|
||||
.endif
|
||||
|
||||
.if defined(WITH_X11_OUTPUT)
|
||||
|
@ -1,6 +1,6 @@
|
||||
MD5 (x264/x264-snapshot-20100222-2245.tar.bz2) = a68827d2e47920ee3ae655f8b8c51013
|
||||
SHA256 (x264/x264-snapshot-20100222-2245.tar.bz2) = 6f197d825315f077fabaf6340c324462cdceaf0417500dadea3511b1ad26ac2f
|
||||
SIZE (x264/x264-snapshot-20100222-2245.tar.bz2) = 400392
|
||||
MD5 (x264/x264-snapshot-20100624-2245.tar.bz2) = c510db9f178396d9de2926729a071d40
|
||||
SHA256 (x264/x264-snapshot-20100624-2245.tar.bz2) = 58e3093bbdd84c1e7a4797def1e654aae832ae91418971031d14a6048f1c6a43
|
||||
SIZE (x264/x264-snapshot-20100624-2245.tar.bz2) = 422940
|
||||
MD5 (x264/example.y4m.bz2) = e0948016cd4a52e75d6a74d998bd6ae6
|
||||
SHA256 (x264/example.y4m.bz2) = a5bec9d37362bd9d7773fbd0644643f9ec096d654d20823004e88d5df32bbff7
|
||||
SIZE (x264/example.y4m.bz2) = 4910029
|
||||
|
@ -1,7 +1,7 @@
|
||||
--- Makefile.orig 2010-02-22 22:45:05.000000000 +0100
|
||||
+++ Makefile 2010-04-18 10:43:06.325179277 +0200
|
||||
@@ -53,12 +53,12 @@
|
||||
cpu-a.asm dct-32.asm
|
||||
--- Makefile.orig 2010-07-07 22:45:06.000000000 +0200
|
||||
+++ Makefile 2010-07-08 17:08:43.434178535 +0200
|
||||
@@ -56,12 +56,12 @@
|
||||
cpu-a.asm dct-32.asm bitstream-a.asm
|
||||
X86SRC = $(X86SRC0:%=common/x86/%)
|
||||
|
||||
-ifeq ($(ARCH),X86)
|
||||
@ -15,12 +15,12 @@
|
||||
ARCH_X86 = yes
|
||||
ASMSRC = $(X86SRC:-32.asm=-64.asm)
|
||||
ASFLAGS += -DARCH_X86_64
|
||||
@@ -74,7 +74,7 @@
|
||||
@@ -77,7 +77,7 @@
|
||||
endif
|
||||
|
||||
# AltiVec optims
|
||||
-ifeq ($(ARCH),PPC)
|
||||
+ifeq ($(ARCH),powerpc)
|
||||
ifneq ($(AS),)
|
||||
SRCS += common/ppc/mc.c common/ppc/pixel.c common/ppc/dct.c \
|
||||
common/ppc/quant.c common/ppc/deblock.c \
|
||||
common/ppc/predict.c
|
||||
|
@ -1,30 +1,29 @@
|
||||
--- common/cpu.c.orig 2010-02-28 10:49:54.000000000 -0800
|
||||
+++ common/cpu.c 2010-02-28 10:56:06.000000000 -0800
|
||||
@@ -211,6 +211,27 @@
|
||||
return cpu;
|
||||
}
|
||||
--- common/cpu.c.orig 2010-06-24 22:45:07.000000000 +0200
|
||||
+++ common/cpu.c 2010-07-18 22:55:49.324572565 +0200
|
||||
@@ -234,7 +234,7 @@
|
||||
|
||||
+#elif defined(SYS_FREEBSD)
|
||||
+#include <sys/sysctl.h>
|
||||
+uint32_t x264_cpu_detect( void )
|
||||
+{
|
||||
+ uint32_t cpu;
|
||||
+ int has_altivec, error;
|
||||
+ size_t length;
|
||||
+
|
||||
+ cpu = 0;
|
||||
+ has_altivec = 0;
|
||||
+ length = sizeof( has_altivec );
|
||||
+ error = sysctlbyname("hw.altivec", &has_altivec, &length, NULL, 0 );
|
||||
+
|
||||
+ if( error == 0 && has_altivec != 0 )
|
||||
+ {
|
||||
+ cpu |= X264_CPU_ALTIVEC;
|
||||
+ }
|
||||
+
|
||||
+ return cpu;
|
||||
+}
|
||||
+
|
||||
#elif defined( SYS_LINUX )
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#elif ARCH_PPC
|
||||
|
||||
-#if SYS_MACOSX || SYS_OPENBSD
|
||||
+#if SYS_MACOSX || SYS_OPENBSD || SYS_FREEBSD
|
||||
#include <sys/sysctl.h>
|
||||
uint32_t x264_cpu_detect( void )
|
||||
{
|
||||
@@ -242,12 +242,16 @@
|
||||
uint32_t cpu = 0;
|
||||
#if SYS_OPENBSD
|
||||
int selectors[2] = { CTL_MACHDEP, CPU_ALTIVEC };
|
||||
-#else
|
||||
+#elif SYS_MACOSX
|
||||
int selectors[2] = { CTL_HW, HW_VECTORUNIT };
|
||||
#endif
|
||||
int has_altivec = 0;
|
||||
size_t length = sizeof( has_altivec );
|
||||
+#if SYS_MACOSX || SYS_OPENBSD
|
||||
int error = sysctl( selectors, 2, &has_altivec, &length, NULL, 0 );
|
||||
+#else
|
||||
+ int error = sysctlbyname("hw.altivec", &has_altivec, &length, NULL, 0 );
|
||||
+#endif
|
||||
|
||||
if( error == 0 && has_altivec != 0 )
|
||||
cpu |= X264_CPU_ALTIVEC;
|
||||
|
@ -1,38 +1,38 @@
|
||||
--- configure.orig 2010-02-22 22:45:05.000000000 +0100
|
||||
+++ configure 2010-04-23 12:56:49.647782200 +0200
|
||||
--- configure.orig 2010-06-24 22:45:07.000000000 +0200
|
||||
+++ configure 2010-07-18 22:56:20.252020411 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
|
||||
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
|
||||
|
||||
@@ -317,11 +317,15 @@
|
||||
@@ -297,11 +297,15 @@
|
||||
ARCH="X86"
|
||||
AS="yasm"
|
||||
ASFLAGS="$ASFLAGS -O2"
|
||||
- if [[ "$asm" == yes && "$CFLAGS" != *-march* ]]; then
|
||||
- if [[ "$asm" == auto && "$CFLAGS" != *-march* ]]; then
|
||||
- CFLAGS="$CFLAGS -march=i686"
|
||||
- fi
|
||||
- if [[ "$asm" == yes && "$CFLAGS" != *-mfpmath* ]]; then
|
||||
- if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then
|
||||
- CFLAGS="$CFLAGS -mfpmath=sse -msse"
|
||||
+ if [ "$asm" = yes ]; then
|
||||
+ case "$CFLAGS" in
|
||||
+ *-march*) ;;
|
||||
+ *) CFLAGS="$CFLAGS -march=i686" ;;
|
||||
+ esac
|
||||
+ case "$CFLAGS" in
|
||||
+ *-mfpmath*) ;;
|
||||
+ *) CFLAGS="$CFLAGS -mfpmath=sse -msse" ;;
|
||||
+ esac
|
||||
+ case "$CFLAGS" in
|
||||
+ *-march*) ;;
|
||||
+ *) CFLAGS="$CFLAGS -march=i686" ;;
|
||||
+ esac
|
||||
+ case "$CFLAGS" in
|
||||
+ *-mfpmath*) ;;
|
||||
+ *) CFLAGS="$CFLAGS -mfpmath=sse -msse" ;;
|
||||
+ esac
|
||||
fi
|
||||
if [ "$SYS" = MACOSX ]; then
|
||||
ASFLAGS="$ASFLAGS -f macho -DPREFIX"
|
||||
@@ -578,7 +582,7 @@
|
||||
@@ -572,7 +576,7 @@
|
||||
[ -n "$LAVF_CFLAGS" ] && CFLAGS="$CFLAGS $LAVF_CFLAGS"
|
||||
fi
|
||||
|
||||
-MP4_LDFLAGS="-lgpac_static"
|
||||
+MP4_LDFLAGS="-lgpac"
|
||||
-GPAC_LIBS="-lgpac_static"
|
||||
+GPAC_LIBS="-lgpac"
|
||||
if [ $SYS = MINGW ]; then
|
||||
MP4_LDFLAGS="$MP4_LDFLAGS -lwinmm"
|
||||
GPAC_LIBS="$GPAC_LIBS -lwinmm"
|
||||
fi
|
||||
|
@ -2,5 +2,5 @@ bin/x264
|
||||
include/x264.h
|
||||
lib/libx264.a
|
||||
lib/libx264.so
|
||||
lib/libx264.so.85
|
||||
lib/libx264.so.98
|
||||
libdata/pkgconfig/x264.pc
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= opal3
|
||||
PORTVERSION= 3.6.6
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= SF/opalvoip/v3.6%20Lalande/Stable%205
|
||||
DISTNAME= opal-${PORTVERSION}
|
||||
@ -124,7 +124,7 @@ PLIST_SUB+= THEORA="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_X264)
|
||||
LIB_DEPENDS+= x264.85:${PORTSDIR}/multimedia/x264
|
||||
LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264
|
||||
CONFIGURE_ARGS+= --enable-h264
|
||||
PLIST_SUB+= X264=""
|
||||
WITH_VIDEO= yes
|
||||
|
Loading…
Reference in New Issue
Block a user