mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Update to 20100724 (build 104)
This commit is contained in:
parent
a60787c69e
commit
ae939f08d6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=258241
4 changed files with 36 additions and 40 deletions
|
@ -6,7 +6,7 @@
|
||||||
# $Id: Makefile 30 2006-10-30 22:15:26Z buhnux $
|
# $Id: Makefile 30 2006-10-30 22:15:26Z buhnux $
|
||||||
|
|
||||||
PORTNAME= x264
|
PORTNAME= x264
|
||||||
PORTVERSION= 0.0.20100420
|
PORTVERSION= 0.0.20100724
|
||||||
CATEGORIES= multimedia
|
CATEGORIES= multimedia
|
||||||
MASTER_SITES= http://downloads.videolan.org/pub/videolan/x264/snapshots/ \
|
MASTER_SITES= http://downloads.videolan.org/pub/videolan/x264/snapshots/ \
|
||||||
http://samples.mplayerhq.hu/yuv4mpeg2/:pgo
|
http://samples.mplayerhq.hu/yuv4mpeg2/:pgo
|
||||||
|
@ -16,13 +16,13 @@ DIST_SUBDIR= x264
|
||||||
EXTRACT_ONLY= ${PORTNAME}-snapshot-${PORTVERSION:S/0.0.//}-2245${EXTRACT_SUFX}
|
EXTRACT_ONLY= ${PORTNAME}-snapshot-${PORTVERSION:S/0.0.//}-2245${EXTRACT_SUFX}
|
||||||
|
|
||||||
MAINTAINER= mm@FreeBSD.org
|
MAINTAINER= mm@FreeBSD.org
|
||||||
COMMENT?= Library and tool for encoding H.264/AVC video streams
|
COMMENT= Library and tool for encoding H.264/AVC video streams
|
||||||
|
|
||||||
CONFLICTS= x264-0.0.2009* x264-0.0.20100[1-2]*
|
|
||||||
|
|
||||||
BUILD_DEPENDS= yasm>=0.6.0:${PORTSDIR}/devel/yasm \
|
BUILD_DEPENDS= yasm>=0.6.0:${PORTSDIR}/devel/yasm \
|
||||||
${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
|
${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
|
||||||
|
|
||||||
|
CONFLICTS= x264-0.0.2009* x264-0.0.20100[1-6]*
|
||||||
|
|
||||||
LATEST_LINK= x264-devel
|
LATEST_LINK= x264-devel
|
||||||
|
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
MD5 (x264/x264-snapshot-20100420-2245.tar.bz2) = ea874a8ce8b359f148e5e5a59de2a8de
|
MD5 (x264/x264-snapshot-20100724-2245.tar.bz2) = 87e34688b444ec735416a7d55574e6b3
|
||||||
SHA256 (x264/x264-snapshot-20100420-2245.tar.bz2) = 0abd59e3079c43f6be45b11b0cb4b016731d8b2813db95116a4ee665fd3e8af0
|
SHA256 (x264/x264-snapshot-20100724-2245.tar.bz2) = bdf943fc5e268afe175097636afd3295d849b43af40d5fa9e81cc5d54a143c24
|
||||||
SIZE (x264/x264-snapshot-20100420-2245.tar.bz2) = 415956
|
SIZE (x264/x264-snapshot-20100724-2245.tar.bz2) = 445640
|
||||||
MD5 (x264/example.y4m.bz2) = e0948016cd4a52e75d6a74d998bd6ae6
|
|
||||||
SHA256 (x264/example.y4m.bz2) = a5bec9d37362bd9d7773fbd0644643f9ec096d654d20823004e88d5df32bbff7
|
|
||||||
SIZE (x264/example.y4m.bz2) = 4910029
|
|
||||||
|
|
|
@ -1,30 +1,29 @@
|
||||||
--- common/cpu.c.orig 2010-02-28 10:49:54.000000000 -0800
|
--- common/cpu.c.orig 2010-06-24 22:45:07.000000000 +0200
|
||||||
+++ common/cpu.c 2010-02-28 10:56:06.000000000 -0800
|
+++ common/cpu.c 2010-07-18 22:55:49.324572565 +0200
|
||||||
@@ -211,6 +211,27 @@
|
@@ -234,7 +234,7 @@
|
||||||
return cpu;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#elif defined(SYS_FREEBSD)
|
#elif ARCH_PPC
|
||||||
+#include <sys/sysctl.h>
|
|
||||||
+uint32_t x264_cpu_detect( void )
|
-#if SYS_MACOSX || SYS_OPENBSD
|
||||||
+{
|
+#if SYS_MACOSX || SYS_OPENBSD || SYS_FREEBSD
|
||||||
+ uint32_t cpu;
|
#include <sys/sysctl.h>
|
||||||
+ int has_altivec, error;
|
uint32_t x264_cpu_detect( void )
|
||||||
+ size_t length;
|
{
|
||||||
+
|
@@ -242,12 +242,16 @@
|
||||||
+ cpu = 0;
|
uint32_t cpu = 0;
|
||||||
+ has_altivec = 0;
|
#if SYS_OPENBSD
|
||||||
+ length = sizeof( has_altivec );
|
int selectors[2] = { CTL_MACHDEP, CPU_ALTIVEC };
|
||||||
+ error = sysctlbyname("hw.altivec", &has_altivec, &length, NULL, 0 );
|
-#else
|
||||||
+
|
+#elif SYS_MACOSX
|
||||||
+ if( error == 0 && has_altivec != 0 )
|
int selectors[2] = { CTL_HW, HW_VECTORUNIT };
|
||||||
+ {
|
#endif
|
||||||
+ cpu |= X264_CPU_ALTIVEC;
|
int has_altivec = 0;
|
||||||
+ }
|
size_t length = sizeof( has_altivec );
|
||||||
+
|
+#if SYS_MACOSX || SYS_OPENBSD
|
||||||
+ return cpu;
|
int error = sysctl( selectors, 2, &has_altivec, &length, NULL, 0 );
|
||||||
+}
|
+#else
|
||||||
+
|
+ int error = sysctlbyname("hw.altivec", &has_altivec, &length, NULL, 0 );
|
||||||
#elif defined( SYS_LINUX )
|
+#endif
|
||||||
#include <signal.h>
|
|
||||||
#include <setjmp.h>
|
if( error == 0 && has_altivec != 0 )
|
||||||
|
cpu |= X264_CPU_ALTIVEC;
|
||||||
|
|
|
@ -2,5 +2,5 @@ bin/x264
|
||||||
include/x264.h
|
include/x264.h
|
||||||
lib/libx264.a
|
lib/libx264.a
|
||||||
lib/libx264.so
|
lib/libx264.so
|
||||||
lib/libx264.so.93
|
lib/libx264.so.104
|
||||||
libdata/pkgconfig/x264.pc
|
libdata/pkgconfig/x264.pc
|
||||||
|
|
Loading…
Add table
Reference in a new issue