pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/libvpx libvpx: Fix platform matches.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/755f39366f5e
branches:  trunk
changeset: 770705:755f39366f5e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Dec 07 12:24:22 2021 +0000

description:
libvpx: Fix platform matches.

Fixes build on Darwin 18/19, simplifies other matches, and reduces pkglint
warnings.

diffstat:

 multimedia/libvpx/Makefile |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (49 lines):

diff -r 46c8b6f0293b -r 755f39366f5e multimedia/libvpx/Makefile
--- a/multimedia/libvpx/Makefile        Tue Dec 07 12:06:25 2021 +0000
+++ b/multimedia/libvpx/Makefile        Tue Dec 07 12:24:22 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.91 2021/11/11 19:53:09 nia Exp $
+# $NetBSD: Makefile,v 1.92 2021/12/07 12:24:22 jperkin Exp $
 
 DISTNAME=      libvpx-1.11.0
 CATEGORIES=    multimedia
@@ -40,9 +40,7 @@
 .if ${OPSYS} == "Darwin"
 BUILDLINK_TRANSFORM+=  rm:-Wl,-Bsymbolic
 .  if ${MACHINE_ARCH} == "i386"
-.    if !empty(OS_VERSION:M1[8-9].*)
-CONFIGURE_ARGS+=       --target=x86-darwin17-gcc
-.    elif !empty(OS_VERSION:M1[0-7].*)
+.    if !empty(OS_VERSION:M1[0-9].*)
 CONFIGURE_ARGS+=       --target=x86-darwin${OS_VERSION:C/\.[0-9]*//g}-gcc
 .    elif !empty(OS_VERSION:M9.*)
 CONFIGURE_ARGS+=       --target=x86-darwin9-gcc
@@ -50,7 +48,7 @@
 CONFIGURE_ARGS+=       --target=x86-darwin8-gcc
 .    endif
 .  elif ${MACHINE_ARCH} == "x86_64"
-.    if !empty(OS_VERSION:M1[0-7].*)
+.    if !empty(OS_VERSION:M1[0-9].*)
 CONFIGURE_ARGS+=       --target=x86_64-darwin${OS_VERSION:C/\.[0-9]*//g}-gcc
 .    elif !empty(OS_VERSION:M2[0-9].*)
 CONFIGURE_ARGS+=       --target=x86_64-darwin20-gcc
@@ -103,7 +101,7 @@
 CONFIGURE_ARGS.MirBSD+=                --disable-runtime-cpu-detect
 
 # Under Solaris 10 its /usr/xpg4/bin/tr is not sufficient. PR pkg/48508
-.if !empty(MACHINE_PLATFORM:MSunOS-5.10*)
+.if !empty(MACHINE_PLATFORM:MSunOS-5.10-*)
 BUILD_DEPENDS=         coreutils-[0-9]*:../../sysutils/coreutils
 TOOLS_PLATFORM.tr=     ${PREFIX}/bin/gtr
 .endif
@@ -118,8 +116,8 @@
 
 # PR pkg/48508: newer gas from binutils is required to compile ssse3 code.
 .if !empty(MACHINE_PLATFORM:MNetBSD-5.*) || \
-       !empty(MACHINE_PLATFORM:MSunOS-5.10*) || \
-       !empty(MACHINE_PLATFORM:MOpenBSD-5*)
+       !empty(MACHINE_PLATFORM:MSunOS-5.10-*) || \
+       !empty(MACHINE_PLATFORM:MOpenBSD-5.*)
 .include "../../devel/binutils/buildlink3.mk"
 .include "../../devel/binutils/override-as.mk"
 .endif



Home | Main Index | Thread Index | Old Index