pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/x264-devel x264-devel: updated to 20180224



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d38e85528ca
branches:  trunk
changeset: 376132:9d38e85528ca
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Feb 25 21:57:43 2018 +0000

description:
x264-devel: updated to 20180224

20180224:
Remove ARRAY_SIZE macro which is identical to ARRAY_ELEMS
x86inc: Correctly set mmreg variables
.gitignore: Ignore TAGS file
Minor configure improvements
Bump dates to 2018
Merge zero buffers
rdo: Use ALIGNED_ARRAY for stack arrays
Correctly align buffers for AVX and AVX-512
Cosmetics
ppc: Add load_deinterleave_chroma_fenc_altivec
Update to the latest upstream version of gas-preprocessor
input: Add a workaround for swscale overread bugs
filters/resize: Upgrade to a newer libavutil API
aarch64: Use ldurb/sturb for loads/stores with negative offsets
configure: Add support for building with MSVC/armasm for ARM64
arm: Check for __ELF__ instead of !__APPLE__, for using .arch/.fpu

diffstat:

 multimedia/x264-devel/Makefile                   |   50 +-------
 multimedia/x264-devel/PLIST                      |    6 +-
 multimedia/x264-devel/buildlink3.mk              |    5 +-
 multimedia/x264-devel/distinfo                   |   14 +-
 multimedia/x264-devel/files/strip_fopt.sh        |   20 ---
 multimedia/x264-devel/patches/patch-Makefile     |  134 -----------------------
 multimedia/x264-devel/patches/patch-common_cpu.c |   52 ++++++++
 multimedia/x264-devel/patches/patch-configure    |   39 ++----
 8 files changed, 87 insertions(+), 233 deletions(-)

diffs (truncated from 480 to 300 lines):

diff -r 58cdf52d7915 -r 9d38e85528ca multimedia/x264-devel/Makefile
--- a/multimedia/x264-devel/Makefile    Sun Feb 25 21:40:20 2018 +0000
+++ b/multimedia/x264-devel/Makefile    Sun Feb 25 21:57:43 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.64 2017/09/13 09:04:05 wiz Exp $
+# $NetBSD: Makefile,v 1.65 2018/02/25 21:57:43 adam Exp $
 
-DISTNAME=      x264-snapshot-20170912-2245
+DISTNAME=      x264-snapshot-20180224-2245
 PKGNAME=       ${DISTNAME:S/-snapshot-/-devel-/:S/-2245$//}
 CATEGORIES=    multimedia
 MASTER_SITES=  ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
@@ -13,41 +13,17 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if exists(/usr/include/stdlib.h) && ${OPSYS} != "Linux" # XXX should be fine
-CFLAGS+=       -DHAVE_STDLIB_H
-.endif
-
-# The assembler implementations don't use position independent code
-# and therefore break the builds on a lot of platforms because we use
-# "libtool" to create shared libraries. We therefore need to switch
-# them off even if the C versions are slower.
-.if ${MACHINE_ARCH} == "i386"
-.  if ${OPSYS} == "SunOS" || (${OPSYS} == "NetBSD" && \
-       (!empty(OS_VERSION:M[1-5].*) && empty(OS_VERSION:M5.99.*))) || \
-      ${OPSYS} == "Darwin"
-CONFIGURE_ARGS+=       --disable-asm
-# depends on builtin functions enabled with i486 and later with GCC.
-.    if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
-GNU_ARCH.i386=         i486
-CFLAGS+=               -march=i486
-.    endif
-.  else
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 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+=                nasm>=2.13.0:../../devel/nasm
-.  endif
 .endif
 
 USE_TOOLS+=            bash gmake
 USE_LIBTOOL=           yes
 HAS_CONFIGURE=         yes
 CONFIG_SHELL=          ${BASH}
-CONFIGURE_ARGS+=       --enable-pic    # uses libtool's -prefer-pic
+CONFIGURE_ARGS+=       --enable-shared
+CONFIGURE_ARGS+=       --enable-static
+CONFIGURE_ARGS+=       --enable-pic
 CONFIGURE_ARGS+=       --prefix=${PREFIX}
 .if ${OPSYS} == "Darwin"
 USE_TOOLS+=            perl
@@ -62,9 +38,9 @@
 .endif
 
 BUILD_TARGET=          default
-INSTALL_TARGET=                install-lib-static install-cli
+INSTALL_TARGET=                install-lib-shared install-lib-static install-cli
 INSTALLATION_DIRS=     bin
-REPLACE_SH=            strip_fopt.sh version.sh
+REPLACE_SH=            version.sh
 
 .include "../../mk/dlopen.buildlink3.mk"
 
@@ -78,16 +54,6 @@
 X264_BUILD_THREADS_SUPPORT=    ${DLOPEN_REQUIRE_PTHREADS}
 .endif
 
-SUBST_CLASSES+=                netbsd
-SUBST_STAGE.netbsd=    pre-configure
-SUBST_MESSAGE.netbsd=  Adding support for NetBSD.
-SUBST_FILES.netbsd=    common/cpu.c
-SUBST_SED.netbsd=      -e 's,SYS_OPENBSD,SYS_OPENBSD || SYS_NETBSD,'
-
 .include "options.mk"
 
-post-extract:
-       ${CP} ${FILESDIR}/strip_fopt.sh ${WRKSRC}/ && \
-       ${CHMOD} +x ${WRKSRC}/strip_fopt.sh
-
 .include "../../mk/bsd.pkg.mk"
diff -r 58cdf52d7915 -r 9d38e85528ca multimedia/x264-devel/PLIST
--- a/multimedia/x264-devel/PLIST       Sun Feb 25 21:40:20 2018 +0000
+++ b/multimedia/x264-devel/PLIST       Sun Feb 25 21:57:43 2018 +0000
@@ -1,6 +1,8 @@
-@comment $NetBSD: PLIST,v 1.5 2012/11/08 20:28:08 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2018/02/25 21:57:43 adam Exp $
 bin/x264
 include/x264.h
 include/x264_config.h
-lib/libx264.la
+lib/libx264.a
+lib/libx264.so
+lib/libx264.so.155
 lib/pkgconfig/x264.pc
diff -r 58cdf52d7915 -r 9d38e85528ca multimedia/x264-devel/buildlink3.mk
--- a/multimedia/x264-devel/buildlink3.mk       Sun Feb 25 21:40:20 2018 +0000
+++ b/multimedia/x264-devel/buildlink3.mk       Sun Feb 25 21:57:43 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.14 2017/07/14 08:12:33 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.15 2018/02/25 21:57:43 adam Exp $
 
 BUILDLINK_TREE+=       x264-devel
 
@@ -18,8 +18,9 @@
 ###      Prior specification: x264-devel>=20130115 # X264_BUILD 129
 ###      Prior specification: x264-devel>=20130703 # X264_BUILD 133
 ###      Prior specification: x264-devel>=20131015 # X264_BUILD 138
+###      Prior specification: x264-devel>=20140303 # X264_BUILD 142
 ###
-BUILDLINK_API_DEPENDS.x264-devel+=     x264-devel>=20140303 # X264 BUILD 142
+BUILDLINK_API_DEPENDS.x264-devel+=     x264-devel>=20180224 # X264_BUILD 152
 BUILDLINK_PKGSRCDIR.x264-devel?=       ../../multimedia/x264-devel
 pkgbase:= x264-devel
 .include "../../mk/pkg-build-options.mk"
diff -r 58cdf52d7915 -r 9d38e85528ca multimedia/x264-devel/distinfo
--- a/multimedia/x264-devel/distinfo    Sun Feb 25 21:40:20 2018 +0000
+++ b/multimedia/x264-devel/distinfo    Sun Feb 25 21:57:43 2018 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.48 2017/09/13 09:04:05 wiz Exp $
+$NetBSD: distinfo,v 1.49 2018/02/25 21:57:43 adam Exp $
 
-SHA1 (x264-snapshot-20170912-2245.tar.bz2) = 6574ef4e4635e7d1effc660b7338427244320eba
-RMD160 (x264-snapshot-20170912-2245.tar.bz2) = a2837483982de07a99ac79b8b044b81161503363
-SHA512 (x264-snapshot-20170912-2245.tar.bz2) = 027d573d2dd3c0b13d67cb0ead23b40d2749663037a6d5f804e2a582d2e2866b37494c9b76c95a4440a3a5a5640a597a2fd3123b63cfcec95b7fde9a443ef9cf
-Size (x264-snapshot-20170912-2245.tar.bz2) = 750535 bytes
-SHA1 (patch-Makefile) = 8637cc22e142081ad309b462fb30c654d3688cce
-SHA1 (patch-configure) = 0a69da50452159e0b12fb7ac294d1f15cd42bdca
+SHA1 (x264-snapshot-20180224-2245.tar.bz2) = 37b21c882cce3f8049d3a3f74cfe5f18130a8283
+RMD160 (x264-snapshot-20180224-2245.tar.bz2) = 2c1175e2b89ccac6cb52e86ebf93177c02ec54cf
+SHA512 (x264-snapshot-20180224-2245.tar.bz2) = d4aec5aa6913d7c3b5ec2cc017986d533b3ce934d63bb3334d39403df9883a17b46e67f15f51b827333fe9bdf234197bc8cb952c16e3a9e0f645469520036968
+Size (x264-snapshot-20180224-2245.tar.bz2) = 766228 bytes
+SHA1 (patch-common_cpu.c) = ef15bae000163e9c10d2e414e841486dd2920b80
+SHA1 (patch-configure) = 6c8cee809ec7306f039372d4bcca18b704cd0c22
 SHA1 (patch-encoder_analyse.c) = 2057583899e029a4c2173c511293e6a35cf80f78
diff -r 58cdf52d7915 -r 9d38e85528ca multimedia/x264-devel/files/strip_fopt.sh
--- a/multimedia/x264-devel/files/strip_fopt.sh Sun Feb 25 21:40:20 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: strip_fopt.sh,v 1.4 2017/08/30 19:47:08 wiz Exp $
-#
-# libtool assumes that the compiler can handle the -fPIC flag and the
-# -fno-common. This isn't always true, for example yasm can't handle it.
-command="$1"
-shift
-while [ $# -gt 0 ]; do
-       case "$1" in
-       -fPIC|-fno-common|-pie)
-               ;;
-       *)
-               command="$command $1"
-               ;;
-       esac
-       shift
-done
-echo $command
-exec $command
diff -r 58cdf52d7915 -r 9d38e85528ca multimedia/x264-devel/patches/patch-Makefile
--- a/multimedia/x264-devel/patches/patch-Makefile      Sun Feb 25 21:40:20 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,134 +0,0 @@
-$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)



Home | Main Index | Thread Index | Old Index