| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.91 2021/11/11 19:53:09 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.92 2021/12/07 12:24:22 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= libvpx-1.11.0 | | 3 | DISTNAME= libvpx-1.11.0 |
4 | CATEGORIES= multimedia | | 4 | CATEGORIES= multimedia |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=webmproject/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=webmproject/} |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} |
7 | | | 7 | |
8 | MAINTAINER= ryoon@NetBSD.org | | 8 | MAINTAINER= ryoon@NetBSD.org |
9 | HOMEPAGE= https://chromium.googlesource.com/webm/libvpx | | 9 | HOMEPAGE= https://chromium.googlesource.com/webm/libvpx |
10 | COMMENT= On2 VP8/VP9 video codec library from Google | | 10 | COMMENT= On2 VP8/VP9 video codec library from Google |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | USE_LANGUAGES= c c++ | | 13 | USE_LANGUAGES= c c++ |
14 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
| @@ -30,37 +30,35 @@ GCC_REQD+= 4.8 | | | @@ -30,37 +30,35 @@ GCC_REQD+= 4.8 |
30 | TOOL_DEPENDS+= yasm-[0-9]*:../../devel/yasm | | 30 | TOOL_DEPENDS+= yasm-[0-9]*:../../devel/yasm |
31 | .endif | | 31 | .endif |
32 | | | 32 | |
33 | REPLACE_BASH= configure | | 33 | REPLACE_BASH= configure |
34 | REPLACE_BASH+= build/make/configure.sh | | 34 | REPLACE_BASH+= build/make/configure.sh |
35 | REPLACE_BASH+= build/make/version.sh | | 35 | REPLACE_BASH+= build/make/version.sh |
36 | REPLACE_BASH+= build/make/gen_asm_deps.sh | | 36 | REPLACE_BASH+= build/make/gen_asm_deps.sh |
37 | | | 37 | |
38 | REPLACE_PERL= build/make/ads2gas.pl | | 38 | REPLACE_PERL= build/make/ads2gas.pl |
39 | | | 39 | |
40 | .if ${OPSYS} == "Darwin" | | 40 | .if ${OPSYS} == "Darwin" |
41 | BUILDLINK_TRANSFORM+= rm:-Wl,-Bsymbolic | | 41 | BUILDLINK_TRANSFORM+= rm:-Wl,-Bsymbolic |
42 | . if ${MACHINE_ARCH} == "i386" | | 42 | . if ${MACHINE_ARCH} == "i386" |
43 | . if !empty(OS_VERSION:M1[8-9].*) | | 43 | . if !empty(OS_VERSION:M1[0-9].*) |
44 | CONFIGURE_ARGS+= --target=x86-darwin17-gcc | | | |
45 | . elif !empty(OS_VERSION:M1[0-7].*) | | | |
46 | CONFIGURE_ARGS+= --target=x86-darwin${OS_VERSION:C/\.[0-9]*//g}-gcc | | 44 | CONFIGURE_ARGS+= --target=x86-darwin${OS_VERSION:C/\.[0-9]*//g}-gcc |
47 | . elif !empty(OS_VERSION:M9.*) | | 45 | . elif !empty(OS_VERSION:M9.*) |
48 | CONFIGURE_ARGS+= --target=x86-darwin9-gcc | | 46 | CONFIGURE_ARGS+= --target=x86-darwin9-gcc |
49 | . else | | 47 | . else |
50 | CONFIGURE_ARGS+= --target=x86-darwin8-gcc | | 48 | CONFIGURE_ARGS+= --target=x86-darwin8-gcc |
51 | . endif | | 49 | . endif |
52 | . elif ${MACHINE_ARCH} == "x86_64" | | 50 | . elif ${MACHINE_ARCH} == "x86_64" |
53 | . if !empty(OS_VERSION:M1[0-7].*) | | 51 | . if !empty(OS_VERSION:M1[0-9].*) |
54 | CONFIGURE_ARGS+= --target=x86_64-darwin${OS_VERSION:C/\.[0-9]*//g}-gcc | | 52 | CONFIGURE_ARGS+= --target=x86_64-darwin${OS_VERSION:C/\.[0-9]*//g}-gcc |
55 | . elif !empty(OS_VERSION:M2[0-9].*) | | 53 | . elif !empty(OS_VERSION:M2[0-9].*) |
56 | CONFIGURE_ARGS+= --target=x86_64-darwin20-gcc | | 54 | CONFIGURE_ARGS+= --target=x86_64-darwin20-gcc |
57 | . else | | 55 | . else |
58 | CONFIGURE_ARGS+= --target=x86_64-darwin9-gcc | | 56 | CONFIGURE_ARGS+= --target=x86_64-darwin9-gcc |
59 | . endif | | 57 | . endif |
60 | . elif ${MACHINE_ARCH} == "aarch64" | | 58 | . elif ${MACHINE_ARCH} == "aarch64" |
61 | CONFIGURE_ARGS+= --disable-runtime-cpu-detect | | 59 | CONFIGURE_ARGS+= --disable-runtime-cpu-detect |
62 | . endif | | 60 | . endif |
63 | .elif ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc*) | | 61 | .elif ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc*) |
64 | . if ${MACHINE_ARCH} == "x86_64" | | 62 | . if ${MACHINE_ARCH} == "x86_64" |
65 | CONFIGURE_ARGS+= --target=x86_64-solaris-gcc | | 63 | CONFIGURE_ARGS+= --target=x86_64-solaris-gcc |
66 | . elif ${MACHINE_ARCH} == "i386" | | 64 | . elif ${MACHINE_ARCH} == "i386" |
| @@ -93,35 +91,35 @@ CONFIGURE_ARGS+= --target=generic-gnu | | | @@ -93,35 +91,35 @@ CONFIGURE_ARGS+= --target=generic-gnu |
93 | | | 91 | |
94 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) || !empty(MACHINE_PLATFORM:MNetBSD-*-*aarch64*) | | 92 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) || !empty(MACHINE_PLATFORM:MNetBSD-*-*aarch64*) |
95 | CONFIGURE_ARGS+= --disable-runtime-cpu-detect | | 93 | CONFIGURE_ARGS+= --disable-runtime-cpu-detect |
96 | .endif | | 94 | .endif |
97 | | | 95 | |
98 | BUILDLINK_TRANSFORM.MirBSD+= rm:-lrt | | 96 | BUILDLINK_TRANSFORM.MirBSD+= rm:-lrt |
99 | # Compiler is too old for these newfangled features | | 97 | # Compiler is too old for these newfangled features |
100 | CONFIGURE_ENV.MirBSD+= sse2=no sse3=no ssse3=no sse4_1=no | | 98 | CONFIGURE_ENV.MirBSD+= sse2=no sse3=no ssse3=no sse4_1=no |
101 | # runtime_cpu_detect=no | | 99 | # runtime_cpu_detect=no |
102 | CONFIGURE_ENV.MirBSD+= RTCD_OPTIONS='--disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4_1' | | 100 | CONFIGURE_ENV.MirBSD+= RTCD_OPTIONS='--disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4_1' |
103 | CONFIGURE_ARGS.MirBSD+= --disable-runtime-cpu-detect | | 101 | CONFIGURE_ARGS.MirBSD+= --disable-runtime-cpu-detect |
104 | | | 102 | |
105 | # Under Solaris 10 its /usr/xpg4/bin/tr is not sufficient. PR pkg/48508 | | 103 | # Under Solaris 10 its /usr/xpg4/bin/tr is not sufficient. PR pkg/48508 |
106 | .if !empty(MACHINE_PLATFORM:MSunOS-5.10*) | | 104 | .if !empty(MACHINE_PLATFORM:MSunOS-5.10-*) |
107 | BUILD_DEPENDS= coreutils-[0-9]*:../../sysutils/coreutils | | 105 | BUILD_DEPENDS= coreutils-[0-9]*:../../sysutils/coreutils |
108 | TOOLS_PLATFORM.tr= ${PREFIX}/bin/gtr | | 106 | TOOLS_PLATFORM.tr= ${PREFIX}/bin/gtr |
109 | .endif | | 107 | .endif |
110 | | | 108 | |
111 | BUILD_TARGET= # none | | 109 | BUILD_TARGET= # none |
112 | | | 110 | |
113 | post-extract: | | 111 | post-extract: |
114 | ${CP} ${FILESDIR}/strip_fPIC.sh ${WRKSRC} | | 112 | ${CP} ${FILESDIR}/strip_fPIC.sh ${WRKSRC} |
115 | | | 113 | |
116 | PKGCONFIG_OVERRIDE+= vpx.pc | | 114 | PKGCONFIG_OVERRIDE+= vpx.pc |
117 | PKGCONFIG_OVERRIDE_STAGE= post-build | | 115 | PKGCONFIG_OVERRIDE_STAGE= post-build |
118 | | | 116 | |
119 | # PR pkg/48508: newer gas from binutils is required to compile ssse3 code. | | 117 | # PR pkg/48508: newer gas from binutils is required to compile ssse3 code. |
120 | .if !empty(MACHINE_PLATFORM:MNetBSD-5.*) || \ | | 118 | .if !empty(MACHINE_PLATFORM:MNetBSD-5.*) || \ |
121 | !empty(MACHINE_PLATFORM:MSunOS-5.10*) || \ | | 119 | !empty(MACHINE_PLATFORM:MSunOS-5.10-*) || \ |
122 | !empty(MACHINE_PLATFORM:MOpenBSD-5*) | | 120 | !empty(MACHINE_PLATFORM:MOpenBSD-5.*) |
123 | .include "../../devel/binutils/buildlink3.mk" | | 121 | .include "../../devel/binutils/buildlink3.mk" |
124 | .include "../../devel/binutils/override-as.mk" | | 122 | .include "../../devel/binutils/override-as.mk" |
125 | .endif | | 123 | .endif |
126 | .include "../../mk/pthread.buildlink3.mk" | | 124 | .include "../../mk/pthread.buildlink3.mk" |
127 | .include "../../mk/bsd.pkg.mk" | | 125 | .include "../../mk/bsd.pkg.mk" |