Here is an update to x264 20140525.

Tested on amd64 with FFmpeg.

Comments/OK?


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/multimedia/x264/Makefile,v
retrieving revision 1.27
diff -u -p -u -p -r1.27 Makefile
--- Makefile    10 Jan 2014 19:31:51 -0000      1.27
+++ Makefile    26 May 2014 19:23:57 -0000
@@ -2,15 +2,14 @@
 
 COMMENT=       free H.264/MPEG-4 AVC encoder
 
-V=             20131002
+V=             20140525
 DISTNAME=      x264-snapshot-${V}-2245
 PKGNAME=       x264-${V}
-REVISION=      0
 CATEGORIES=    multimedia
 MASTER_SITES=  http://downloads.videolan.org/pub/videolan/x264/snapshots/
 EXTRACT_SUFX=  .tar.bz2
 
-SHARED_LIBS=   x264    12.0
+SHARED_LIBS=   x264    13.0
 
 HOMEPAGE=      http://www.videolan.org/developers/x264.html
 
@@ -24,7 +23,7 @@ WANTLIB=      c m pthread
 
 MODULES=       lang/clang
 
-MODCLANG_ARCHS=        amd64
+MODCLANG_ARCHS=        amd64 i386
 MODCLANG_LANGS=        c
 
 .if ${MACHINE_ARCH} == "amd64"
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/multimedia/x264/distinfo,v
retrieving revision 1.13
diff -u -p -u -p -r1.13 distinfo
--- distinfo    6 Oct 2013 20:38:52 -0000       1.13
+++ distinfo    26 May 2014 19:13:53 -0000
@@ -1,2 +1,2 @@
-SHA256 (x264-snapshot-20131002-2245.tar.bz2) = 
/KmHJgk72lkY21NZ4tCVf/pEAl7yCPdKeodWYMNBmok=
-SIZE (x264-snapshot-20131002-2245.tar.bz2) = 629291
+SHA256 (x264-snapshot-20140525-2245.tar.bz2) = 
H+Fu1WzqUH4fOoQfft6HVE0nT0mmxlrovdd6ptVHp3M=
+SIZE (x264-snapshot-20140525-2245.tar.bz2) = 628913
Index: patches/patch-Makefile
===================================================================
RCS file: /home/cvs/ports/multimedia/x264/patches/patch-Makefile,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 patch-Makefile
--- patches/patch-Makefile      6 Oct 2013 20:38:52 -0000       1.11
+++ patches/patch-Makefile      26 May 2014 19:17:04 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-Makefile,v 1.11 2013/10/06 20:38:52 brad Exp $
---- Makefile.orig      Wed Oct  2 16:45:04 2013
-+++ Makefile   Wed Oct  2 22:00:35 2013
-@@ -102,7 +102,9 @@ ifdef ARCH_X86
+--- Makefile.orig      Sun May 25 16:45:05 2014
++++ Makefile   Mon May 26 15:16:54 2014
+@@ -101,7 +101,9 @@ ifdef ARCH_X86
  ASFLAGS += -I$(SRCPATH)/common/x86/
  SRCS   += common/x86/mc-c.c common/x86/predict-c.c
  OBJASM  = $(ASMSRC:%.asm=%.o)
@@ -11,7 +11,7 @@ $OpenBSD: patch-Makefile,v 1.11 2013/10/
  OBJCHK += tools/checkasm-a.o
  endif
  endif
-@@ -155,8 +157,10 @@ SRCS += common/opencl.c encoder/slicetype-cl.c
+@@ -154,8 +156,10 @@ SRCS += common/opencl.c encoder/slicetype-cl.c
  endif
  
  OBJS   += $(SRCS:%.c=%.o)
@@ -22,7 +22,7 @@ $OpenBSD: patch-Makefile,v 1.11 2013/10/
  
  .PHONY: all default fprofiled clean distclean install uninstall lib-static 
lib-shared cli install-lib-dev install-lib-static install-lib-shared install-cli
  
-@@ -169,8 +173,8 @@ $(LIBX264): $(GENERATED) .depend $(OBJS) $(OBJASM)
+@@ -168,8 +172,8 @@ $(LIBX264): $(GENERATED) .depend $(OBJS) $(OBJASM)
        $(AR)$@ $(OBJS) $(OBJASM)
        $(if $(RANLIB), $(RANLIB) $@)
  
@@ -33,7 +33,7 @@ $OpenBSD: patch-Makefile,v 1.11 2013/10/
  
  ifneq ($(EXE),)
  .PHONY: x264 checkasm
-@@ -179,7 +183,7 @@ checkasm: checkasm$(EXE)
+@@ -178,7 +182,7 @@ checkasm: checkasm$(EXE)
  endif
  
  x264$(EXE): $(GENERATED) .depend $(OBJCLI) $(CLI_LIBX264)
@@ -42,7 +42,7 @@ $OpenBSD: patch-Makefile,v 1.11 2013/10/
  
  checkasm$(EXE): $(GENERATED) .depend $(OBJCHK) $(LIBX264)
        $(LD)$@ $(OBJCHK) $(LIBX264) $(LDFLAGS)
-@@ -190,10 +194,21 @@ $(OBJS) $(OBJASM) $(OBJSO) $(OBJCLI) $(OBJCHK): .depen
+@@ -189,10 +193,21 @@ $(OBJS) $(OBJASM) $(OBJSO) $(OBJCLI) $(OBJCHK): .depen
        $(AS) $(ASFLAGS) -o $@ $<
        -@ $(if $(STRIP), $(STRIP) -x $@) # delete local/anonymous symbols, so 
they don't show up in oprofile
  
@@ -64,7 +64,7 @@ $OpenBSD: patch-Makefile,v 1.11 2013/10/
  %.dll.o: %.rc x264.h
        $(RC) $(RCFLAGS)$@ -DDLL $<
  
-@@ -239,7 +254,7 @@ fprofiled:
+@@ -238,7 +253,7 @@ fprofiled:
  endif
  
  clean:
@@ -73,11 +73,11 @@ $OpenBSD: patch-Makefile,v 1.11 2013/10/
        rm -f checkasm checkasm.exe $(OBJCHK) $(GENERATED) x264_lookahead.clbin
        rm -f $(SRC2:%.c=%.gcda) $(SRC2:%.c=%.gcno) *.dyn pgopti.dpi 
pgopti.dpi.lock
  
-@@ -268,7 +283,6 @@ ifneq ($(IMPLIBNAME),)
-       install -m 755 $(SONAME) $(DESTDIR)$(bindir)
-       install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir)
+@@ -267,7 +282,6 @@ ifneq ($(IMPLIBNAME),)
+       $(INSTALL) -m 755 $(SONAME) $(DESTDIR)$(bindir)
+       $(INSTALL) -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir)
  else ifneq ($(SONAME),)
 -      ln -f -s $(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX)
-       install -m 755 $(SONAME) $(DESTDIR)$(libdir)
+       $(INSTALL) -m 755 $(SONAME) $(DESTDIR)$(libdir)
  endif
  
Index: patches/patch-configure
===================================================================
RCS file: /home/cvs/ports/multimedia/x264/patches/patch-configure,v
retrieving revision 1.15
diff -u -p -u -p -r1.15 patch-configure
--- patches/patch-configure     6 Oct 2013 20:38:52 -0000       1.15
+++ patches/patch-configure     26 May 2014 19:17:01 -0000
@@ -1,13 +1,13 @@
 $OpenBSD: patch-configure,v 1.15 2013/10/06 20:38:52 brad Exp $
---- configure.orig     Wed Oct  2 16:45:04 2013
-+++ configure  Wed Oct  2 21:54:21 2013
+--- configure.orig     Sun May 25 16:45:05 2014
++++ configure  Mon May 26 15:16:07 2014
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh
  
  if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
  cat <<EOF
-@@ -963,18 +963,6 @@ fi
+@@ -991,18 +991,6 @@ fi
  
  cc_check "stdint.h" "" "uint32_t test_vec __attribute__ ((vector_size (16))) 
= {0,1,2,3};" && define HAVE_VECTOREXT
  
@@ -24,9 +24,9 @@ $OpenBSD: patch-configure,v 1.15 2013/10
 -fi
 -
  if [ "$strip" = "yes" ]; then
-     CFLAGS="$CFLAGS -s"
      LDFLAGS="$LDFLAGS -s"
-@@ -985,9 +973,9 @@ if [ "$debug" = "yes" ]; then
+ fi
+@@ -1012,9 +1000,9 @@ if [ "$debug" = "yes" ]; then
  elif [ $ARCH = ARM ]; then
      # arm-gcc-4.2 produces incorrect output with -ffast-math
      # and it doesn't save any speed anyway on 4.4, so disable it
@@ -38,7 +38,7 @@ $OpenBSD: patch-configure,v 1.15 2013/10
  fi
  
  if cc_check '' -fno-tree-vectorize ; then
-@@ -1161,7 +1149,6 @@ if [ "$cli" = "yes" ]; then
+@@ -1189,7 +1177,6 @@ if [ "$cli" = "yes" ]; then
  fi
  
  if [ "$shared" = "yes" ]; then
@@ -46,7 +46,7 @@ $OpenBSD: patch-configure,v 1.15 2013/10
      if [ "$SYS" = "WINDOWS" -o "$SYS" = "CYGWIN" ]; then
          echo "SONAME=libx264-$API.dll" >> config.mak
          if [ $compiler = ICL ]; then
-@@ -1189,7 +1176,7 @@ if [ "$shared" = "yes" ]; then
+@@ -1217,7 +1204,7 @@ if [ "$shared" = "yes" ]; then
      else
          echo "SOSUFFIX=so" >> config.mak
          echo "SONAME=libx264.so.$API" >> config.mak
Index: patches/patch-version_sh
===================================================================
RCS file: patches/patch-version_sh
diff -N patches/patch-version_sh
--- patches/patch-version_sh    25 May 2012 07:45:33 -0000      1.4
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,31 +0,0 @@
-$OpenBSD: patch-version_sh,v 1.4 2012/05/25 07:45:33 ajacoutot Exp $
---- version.sh.orig    Sun May 20 16:45:03 2012
-+++ version.sh Sun May 20 20:08:39 2012
-@@ -1,24 +1,6 @@
--#!/bin/bash
--[ -n "$1" ] && cd $1
--git rev-list HEAD | sort > config.git-hash
--LOCALVER=`wc -l config.git-hash | awk '{print $1}'`
--if [ $LOCALVER \> 1 ] ; then
--    VER=`git rev-list origin/master | sort | join config.git-hash - | wc -l | 
awk '{print $1}'`
--    VER_DIFF=$(($LOCALVER-$VER))
--    echo "#define X264_REV $VER"
--    echo "#define X264_REV_DIFF $VER_DIFF"
--    if [ $VER_DIFF != 0 ] ; then
--        VER="$VER+$VER_DIFF"
--    fi
--    if git status | grep -q "modified:" ; then
--        VER="${VER}M"
--    fi
--    VER="$VER $(git rev-list HEAD -n 1 | cut -c 1-7)"
--    echo "#define X264_VERSION \" r$VER\""
--else
--    echo "#define X264_VERSION \"\""
--    VER="x"
--fi
-+#!/bin/sh
-+echo "#define X264_VERSION \"\""
-+VER="x"
- rm -f config.git-hash
- API=`grep '#define X264_BUILD' < x264.h | sed -e 's/.* \([1-9][0-9]*\).*/\1/'`
- echo "#define X264_POINTVER \"0.$API.$VER\""

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to