pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/x264-devel Changes 20170615:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b4cfb8529b5
branches:  trunk
changeset: 363790:1b4cfb8529b5
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Jun 16 05:39:23 2017 +0000

description:
Changes 20170615:
* x86: Avoid self-relative expressions on macho64
* configure: Don't try to detect clang by $CC
* checkasm: Use the right variable in a loop condition
* x86: Fix linking with 8-bit depth shared libx264
* x86: Only enable AVX-512 in 8-bit mode
* x86: AVX-512 cabac_block_residual
* x86: AVX-512 pixel_sad_x3 and pixel_sad_x4
* x86: AVX-512 pixel_sad
* x86: AVX-512 decimate_score
* x86: AVX-512 pixel_var2_8x8 and 8x16
* Rework pixel_var2
* x86: AVX-512 pixel_var_8x8, 8x16, and 16x16
* x86: AVX-512 pixel_sa8d_8x8
* x86: AVX-512 pixel_satd
* x86: AVX-512 deblock_strength
* x86: AVX-512 plane_copy_deinterleave_v210
* x86: AVX-512 memzero_aligned
* x86: AVX and AVX-512 memcpy_aligned
* x86: AVX-512 dequant_8x8_flat16
* x86: AVX-512 dequant_8x8
* x86: AVX-512 dequant_4x4
* x86: AVX-512 mbtree_propagate_cost
* x86: AVX-512 coeff_last
* x86: AVX-512 zigzag_interleave_8x8_cavlc
* x86: AVX-512 zigzag_scan_8x8_field
* x86: AVX-512 zigzag_scan_4x4_field
* x86: AVX-512 zigzag_scan_8x8_frame
* x86: AVX-512 zigzag_scan_4x4_frame
* checkasm: x86: More accurate ymm/zmm measurements
* x86: AVX-512 support
* x86: Change assembler from yasm to nasm
* x86: Add some additional cpuflag relations
* x86: Faster SSE2 pixel_sad_16x16 and 16x8
* msvs/icl: Improve target host detection
* ppc: Optimize add8x8_idct_dc

diffstat:

 multimedia/x264-devel/Makefile                        |    8 +-
 multimedia/x264-devel/buildlink3.mk                   |    4 +-
 multimedia/x264-devel/distinfo                        |   16 +-
 multimedia/x264-devel/patches/patch-Makefile          |  134 ++++++++++++++++++
 multimedia/x264-devel/patches/patch-ab                |  134 ------------------
 multimedia/x264-devel/patches/patch-ba                |   13 -
 multimedia/x264-devel/patches/patch-configure         |   28 +-
 multimedia/x264-devel/patches/patch-encoder_analyse.c |   15 ++
 8 files changed, 177 insertions(+), 175 deletions(-)

diffs (truncated from 493 to 300 lines):

diff -r a126d79e5479 -r 1b4cfb8529b5 multimedia/x264-devel/Makefile
--- a/multimedia/x264-devel/Makefile    Thu Jun 15 22:15:36 2017 +0000
+++ b/multimedia/x264-devel/Makefile    Fri Jun 16 05:39:23 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.61 2017/01/23 15:28:27 adam Exp $
+# $NetBSD: Makefile,v 1.62 2017/06/16 05:39:23 adam Exp $
 
-SNAPSHOT_DATE= 20170122
+SNAPSHOT_DATE= 20170615
 
 DISTNAME=      x264-snapshot-${SNAPSHOT_DATE}-2245
 PKGNAME=       x264-devel-${SNAPSHOT_DATE}
@@ -34,14 +34,14 @@
 CFLAGS+=               -march=i486
 .    endif
 .  else
-BUILD_DEPENDS+=                yasm>=0.4.0:../../devel/yasm
+BUILD_DEPENDS+=                nasm>=2.13.0:../../devel/nasm
 .  endif
 .elif ${MACHINE_ARCH} == "x86_64"
 .  if ${OPSYS} == "SunOS" || (${OPSYS} == "NetBSD" && \
        (!empty(OS_VERSION:M[1-5].*) && empty(OS_VERSION:M5.99.*)))
 CONFIGURE_ARGS+=       --disable-asm
 .  else
-BUILD_DEPENDS+=                yasm>=0.4.0:../../devel/yasm
+BUILD_DEPENDS+=                nasm>=2.13.0:../../devel/nasm
 .  endif
 .endif
 
diff -r a126d79e5479 -r 1b4cfb8529b5 multimedia/x264-devel/buildlink3.mk
--- a/multimedia/x264-devel/buildlink3.mk       Thu Jun 15 22:15:36 2017 +0000
+++ b/multimedia/x264-devel/buildlink3.mk       Fri Jun 16 05:39:23 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.12 2014/04/10 05:39:14 obache Exp $
+# $NetBSD: buildlink3.mk,v 1.13 2017/06/16 05:39:23 adam Exp $
 
 BUILDLINK_TREE+=       x264-devel
 
@@ -22,7 +22,7 @@
 BUILDLINK_API_DEPENDS.x264-devel?=     x264-devel>=20140303 # X264 BUILD 142
 BUILDLINK_PKGSRCDIR.x264-devel?=       ../../multimedia/x264-devel
 pkgbase:= x264-devel
-.  include "../../mk/pkg-build-options.mk"
+.include "../../mk/pkg-build-options.mk"
 
 .if !empty(PKG_BUILD_OPTIONS.x264-devel:Mthreads)
 .  include "../../mk/pthread.buildlink3.mk"
diff -r a126d79e5479 -r 1b4cfb8529b5 multimedia/x264-devel/distinfo
--- a/multimedia/x264-devel/distinfo    Thu Jun 15 22:15:36 2017 +0000
+++ b/multimedia/x264-devel/distinfo    Fri Jun 16 05:39:23 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.45 2017/01/23 15:28:27 adam Exp $
+$NetBSD: distinfo,v 1.46 2017/06/16 05:39:23 adam Exp $
 
-SHA1 (x264-snapshot-20170122-2245.tar.bz2) = eb4ea581ad05ad9bebb4113cbef555a267fd78d3
-RMD160 (x264-snapshot-20170122-2245.tar.bz2) = dd1e74ff0819acd735b07b17052d5e47c85f5aa7
-SHA512 (x264-snapshot-20170122-2245.tar.bz2) = 3d5035db41aca0636e68d8ca6e5fd31c4f837845aa04138c6529786f1e5d8dfdad842afc399823addb2f52d6372f5a1f423a9910896540bb57ae8db87198879b
-Size (x264-snapshot-20170122-2245.tar.bz2) = 733657 bytes
-SHA1 (patch-ab) = f4be6477f75b3f7a411729997712bcaf028f88b2
-SHA1 (patch-ba) = b16486f28ba5c34449e015906957062186e657af
-SHA1 (patch-configure) = 7bec098f853266d4156e59047128114a2d00ea4d
+SHA1 (x264-snapshot-20170615-2245.tar.bz2) = b2988d6b54208f8ce35993463750a1b6a191480c
+RMD160 (x264-snapshot-20170615-2245.tar.bz2) = eeac6a746658b36a96ddd32efff8c0bf4fded600
+SHA512 (x264-snapshot-20170615-2245.tar.bz2) = 54b2066747cdad0804ab27e730fe1218589b979567af1c930280f83eea5aed140f09b847c48ec1bd928ab106a6eec5fb8f8c3c40fb7c9e33df513594e7bc4e23
+Size (x264-snapshot-20170615-2245.tar.bz2) = 746854 bytes
+SHA1 (patch-Makefile) = 8637cc22e142081ad309b462fb30c654d3688cce
+SHA1 (patch-configure) = 0a69da50452159e0b12fb7ac294d1f15cd42bdca
+SHA1 (patch-encoder_analyse.c) = 1ef090172fd8a48d4e031525ac82433865d549e2
diff -r a126d79e5479 -r 1b4cfb8529b5 multimedia/x264-devel/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/x264-devel/patches/patch-Makefile      Fri Jun 16 05:39:23 2017 +0000
@@ -0,0 +1,134 @@
+$NetBSD: patch-Makefile,v 1.1 2017/06/16 05:39:23 adam Exp $
+
+Add rule for .lo:.S needed by aarch64
+
+--- Makefile.orig      2017-06-15 20:45:03.000000000 +0000
++++ Makefile
+@@ -34,7 +34,7 @@ OBJS =
+ OBJSO =
+ OBJCLI =
+ 
+-OBJCHK = tools/checkasm.o
++OBJCHK = tools/checkasm.lo
+ 
+ OBJEXAMPLE = example.o
+ 
+@@ -99,9 +99,9 @@ endif
+ 
+ ifdef ARCH_X86
+ SRCS   += common/x86/mc-c.c common/x86/predict-c.c
+-OBJASM  = $(ASMSRC:%.asm=%.o)
++OBJASM  = $(ASMSRC:%.asm=%.lo)
+ $(OBJASM): common/x86/x86inc.asm common/x86/x86util.asm
+-OBJCHK += tools/checkasm-a.o
++OBJCHK += tools/checkasm-a.lo
+ endif
+ endif
+ 
+@@ -121,8 +121,8 @@ ASMSRC += common/arm/cpu-a.S common/arm/
+           common/arm/dct-a.S common/arm/quant-a.S common/arm/deblock-a.S \
+           common/arm/predict-a.S common/arm/bitstream-a.S
+ SRCS   += common/arm/mc-c.c common/arm/predict-c.c
+-OBJASM  = $(ASMSRC:%.S=%.o)
+-OBJCHK += tools/checkasm-arm.o
++OBJASM  = $(ASMSRC:%.S=%.lo)
++OBJCHK += tools/checkasm-arm.lo
+ endif
+ endif
+ 
+@@ -140,8 +140,8 @@ ASMSRC += common/aarch64/bitstream-a.S \
+ SRCS   += common/aarch64/asm-offsets.c \
+           common/aarch64/mc-c.c        \
+           common/aarch64/predict-c.c
+-OBJASM  = $(ASMSRC:%.S=%.o)
+-OBJCHK += tools/checkasm-aarch64.o
++OBJASM  = $(ASMSRC:%.S=%.lo)
++OBJCHK += tools/checkasm-aarch64.lo
+ endif
+ endif
+ 
+@@ -173,20 +173,23 @@ GENERATED += common/oclobj.h
+ SRCS += common/opencl.c encoder/slicetype-cl.c
+ endif
+ 
+-OBJS   += $(SRCS:%.c=%.o)
+-OBJCLI += $(SRCCLI:%.c=%.o)
++OBJS   += $(SRCS:%.c=%.lo)
++OBJCLI += $(SRCCLI:%.c=%.lo)
+ OBJSO  += $(SRCSO:%.c=%.o)
+ 
+ .PHONY: all default fprofiled clean distclean install install-* uninstall cli lib-* etags
+ 
++%.lo: %.c
++      ${LIBTOOL} --mode=compile ${CC} -c ${CFLAGS} ${PICFLAG} -o $@ $<
++
+ cli: x264$(EXE)
+-lib-static: $(LIBX264)
++lib-static: libx264.la
+ lib-shared: $(SONAME)
+ 
+-$(LIBX264): $(GENERATED) .depend $(OBJS) $(OBJASM)
+-      rm -f $(LIBX264)
+-      $(AR)$@ $(OBJS) $(OBJASM)
+-      $(if $(RANLIB), $(RANLIB) $@)
++libx264.la: $(GENERATED) .depend $(OBJS) $(OBJASM)
++      ${LIBTOOL} --mode=link \
++      ${CC} -o libx264.la -rpath ${PREFIX}/lib -version-info 0 \
++      $(OBJS) $(OBJASM) ${LDFLAGS}
+ 
+ $(SONAME): $(GENERATED) .depend $(OBJS) $(OBJASM) $(OBJSO)
+       $(LD)$@ $(OBJS) $(OBJASM) $(OBJSO) $(SOFLAGS) $(LDFLAGS)
+@@ -198,24 +201,22 @@ checkasm: checkasm$(EXE)
+ example: example$(EXE)
+ endif
+ 
+-x264$(EXE): $(GENERATED) .depend $(OBJCLI) $(CLI_LIBX264)
+-      $(LD)$@ $(OBJCLI) $(CLI_LIBX264) $(LDFLAGSCLI) $(LDFLAGS)
++x264$(EXE): $(GENERATED) .depend $(OBJCLI) libx264.la
++      ${LIBTOOL} --mode=link $(LD)$@ $(OBJCLI) libx264.la $(LDFLAGSCLI) $(LDFLAGS)
+ 
+-checkasm$(EXE): $(GENERATED) .depend $(OBJCHK) $(LIBX264)
+-      $(LD)$@ $(OBJCHK) $(LIBX264) $(LDFLAGS)
++checkasm$(EXE): $(GENERATED) .depend $(OBJCHK) libx264.la
++      ${LIBTOOL} --mode=link $(LD)$@ $+ $(LDFLAGS)
+ 
+ example$(EXE): $(GENERATED) .depend $(OBJEXAMPLE) $(LIBX264)
+       $(LD)$@ $(OBJEXAMPLE) $(LIBX264) $(LDFLAGS)
+ 
+ $(OBJS) $(OBJASM) $(OBJSO) $(OBJCLI) $(OBJCHK) $(OBJEXAMPLE): .depend
+ 
+-%.o: %.asm common/x86/x86inc.asm common/x86/x86util.asm
+-      $(AS) $(ASFLAGS) -o $@ $<
+-      -@ $(if $(STRIP), $(STRIP) -x $@) # delete local/anonymous symbols, so they don't show up in oprofile
+-
+-%.o: %.S
+-      $(AS) $(ASFLAGS) -o $@ $<
+-      -@ $(if $(STRIP), $(STRIP) -x $@) # delete local/anonymous symbols, so they don't show up in oprofile
++%.lo: %.asm common/x86/x86inc.asm common/x86/x86util.asm
++      ${LIBTOOL} --mode=compile --tag=CC ./strip_fopt.sh $(AS) $(ASFLAGS) -o $@ $<
++
++%.lo: %.S
++      ${LIBTOOL} --mode=compile --tag=CC $(AS) $(ASFLAGS) -o $@ $<
+ 
+ %.dll.o: %.rc x264.h
+       $(RC) $(RCFLAGS)$@ -DDLL $<
+@@ -282,8 +283,7 @@ distclean: clean
+       rm -rf conftest*
+ 
+ install-cli: cli
+-      $(INSTALL) -d $(DESTDIR)$(bindir)
+-      $(INSTALL) x264$(EXE) $(DESTDIR)$(bindir)
++      ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} x264 $(DESTDIR)$(bindir)/x264
+ 
+ install-lib-dev:
+       $(INSTALL) -d $(DESTDIR)$(includedir)
+@@ -294,8 +294,7 @@ install-lib-dev:
+       $(INSTALL) -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
+ 
+ install-lib-static: lib-static install-lib-dev
+-      $(INSTALL) -m 644 $(LIBX264) $(DESTDIR)$(libdir)
+-      $(if $(RANLIB), $(RANLIB) $(DESTDIR)$(libdir)/$(LIBX264))
++      ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libx264.la $(DESTDIR)$(libdir)
+ 
+ install-lib-shared: lib-shared install-lib-dev
+ ifneq ($(IMPLIBNAME),)
diff -r a126d79e5479 -r 1b4cfb8529b5 multimedia/x264-devel/patches/patch-ab
--- a/multimedia/x264-devel/patches/patch-ab    Thu Jun 15 22:15:36 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,134 +0,0 @@
-$NetBSD: patch-ab,v 1.24 2016/08/28 06:42:27 richard Exp $
-
-add rule for .lo:.S needed by aarch64
-
---- Makefile.orig      2016-03-07 21:45:04.000000000 +0000
-+++ Makefile
-@@ -34,7 +34,7 @@ OBJS =
- OBJSO =
- OBJCLI =
- 
--OBJCHK = tools/checkasm.o
-+OBJCHK = tools/checkasm.lo
- 
- OBJEXAMPLE = example.o
- 
-@@ -99,9 +99,9 @@ endif
- 
- ifdef ARCH_X86
- SRCS   += common/x86/mc-c.c common/x86/predict-c.c
--OBJASM  = $(ASMSRC:%.asm=%.o)
-+OBJASM  = $(ASMSRC:%.asm=%.lo)
- $(OBJASM): common/x86/x86inc.asm common/x86/x86util.asm
--OBJCHK += tools/checkasm-a.o
-+OBJCHK += tools/checkasm-a.lo
- endif
- endif
- 
-@@ -121,8 +121,8 @@ ASMSRC += common/arm/cpu-a.S common/arm/
-           common/arm/dct-a.S common/arm/quant-a.S common/arm/deblock-a.S \
-           common/arm/predict-a.S common/arm/bitstream-a.S
- SRCS   += common/arm/mc-c.c common/arm/predict-c.c
--OBJASM  = $(ASMSRC:%.S=%.o)
--OBJCHK += tools/checkasm-arm.o
-+OBJASM  = $(ASMSRC:%.S=%.lo)
-+OBJCHK += tools/checkasm-arm.lo
- endif
- endif
- 
-@@ -140,8 +140,8 @@ ASMSRC += common/aarch64/bitstream-a.S \
- SRCS   += common/aarch64/asm-offsets.c \
-           common/aarch64/mc-c.c        \
-           common/aarch64/predict-c.c
--OBJASM  = $(ASMSRC:%.S=%.o)
--OBJCHK += tools/checkasm-aarch64.o
-+OBJASM  = $(ASMSRC:%.S=%.lo)
-+OBJCHK += tools/checkasm-aarch64.lo
- endif
- endif
- 
-@@ -173,20 +173,23 @@ GENERATED += common/oclobj.h
- SRCS += common/opencl.c encoder/slicetype-cl.c
- endif
- 
--OBJS   += $(SRCS:%.c=%.o)
--OBJCLI += $(SRCCLI:%.c=%.o)
-+OBJS   += $(SRCS:%.c=%.lo)
-+OBJCLI += $(SRCCLI:%.c=%.lo)
- OBJSO  += $(SRCSO:%.c=%.o)
- 
- .PHONY: all default fprofiled clean distclean install install-* uninstall cli lib-* etags
- 
-+%.lo: %.c
-+      ${LIBTOOL} --mode=compile ${CC} -c ${CFLAGS} ${PICFLAG} -o $@ $<
-+
- cli: x264$(EXE)
--lib-static: $(LIBX264)
-+lib-static: libx264.la
- lib-shared: $(SONAME)
- 
--$(LIBX264): $(GENERATED) .depend $(OBJS) $(OBJASM)
--      rm -f $(LIBX264)
--      $(AR)$@ $(OBJS) $(OBJASM)
--      $(if $(RANLIB), $(RANLIB) $@)
-+libx264.la: $(GENERATED) .depend $(OBJS) $(OBJASM)
-+      ${LIBTOOL} --mode=link \
-+      ${CC} -o libx264.la -rpath ${PREFIX}/lib -version-info 0 \
-+      $(OBJS) $(OBJASM) ${LDFLAGS}
- 
- $(SONAME): $(GENERATED) .depend $(OBJS) $(OBJASM) $(OBJSO)
-       $(LD)$@ $(OBJS) $(OBJASM) $(OBJSO) $(SOFLAGS) $(LDFLAGS)
-@@ -198,24 +201,22 @@ checkasm: checkasm$(EXE)
- example: example$(EXE)
- endif
- 
--x264$(EXE): $(GENERATED) .depend $(OBJCLI) $(CLI_LIBX264)
--      $(LD)$@ $(OBJCLI) $(CLI_LIBX264) $(LDFLAGSCLI) $(LDFLAGS)
-+x264$(EXE): $(GENERATED) .depend $(OBJCLI) libx264.la
-+      ${LIBTOOL} --mode=link $(LD)$@ $(OBJCLI) libx264.la $(LDFLAGSCLI) $(LDFLAGS)
- 
--checkasm$(EXE): $(GENERATED) .depend $(OBJCHK) $(LIBX264)



Home | Main Index | Thread Index | Old Index