| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.68 2017/05/03 08:38:43 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.69 2017/05/10 10:45:07 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= libvpx-1.6.1 | | 3 | DISTNAME= libvpx-1.6.1 |
4 | CATEGORIES= multimedia | | 4 | CATEGORIES= multimedia |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=webmproject/} | | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=webmproject/} |
6 | GITHUB_PROJECT= libvpx | | 6 | GITHUB_PROJECT= libvpx |
7 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 7 | GITHUB_TAG= v${PKGVERSION_NOREV} |
8 | | | 8 | |
9 | MAINTAINER= ryoon@NetBSD.org | | 9 | MAINTAINER= ryoon@NetBSD.org |
10 | HOMEPAGE= https://chromium.googlesource.com/webm/libvpx | | 10 | HOMEPAGE= https://chromium.googlesource.com/webm/libvpx |
11 | COMMENT= On2 VP8 library from Google | | 11 | COMMENT= On2 VP8 library from Google |
12 | LICENSE= modified-bsd | | 12 | LICENSE= modified-bsd |
13 | | | 13 | |
14 | USE_LANGUAGES= c c++11 | | 14 | USE_LANGUAGES= c c++11 |
| @@ -70,26 +70,28 @@ CONFIGURE_ARGS+= --target=x86_64-darwin9 | | | @@ -70,26 +70,28 @@ CONFIGURE_ARGS+= --target=x86_64-darwin9 |
70 | . endif | | 70 | . endif |
71 | . elif ${MACHINE_ARCH} == "powerpc" | | 71 | . elif ${MACHINE_ARCH} == "powerpc" |
72 | . if !empty(OS_VERSION:M9.*) | | 72 | . if !empty(OS_VERSION:M9.*) |
73 | CONFIGURE_ARGS+= --target=ppc32-darwin9-gcc | | 73 | CONFIGURE_ARGS+= --target=ppc32-darwin9-gcc |
74 | . else | | 74 | . else |
75 | CONFIGURE_ARGS+= --target=ppc32-darwin8-gcc | | 75 | CONFIGURE_ARGS+= --target=ppc32-darwin8-gcc |
76 | . endif | | 76 | . endif |
77 | . endif | | 77 | . endif |
78 | .elif ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc*) | | 78 | .elif ${OPSYS} == "SunOS" && !empty(PKGSRC_COMPILER:Mgcc*) |
79 | . if ${MACHINE_ARCH} == "x86_64" | | 79 | . if ${MACHINE_ARCH} == "x86_64" |
80 | CONFIGURE_ARGS+= --target=x86_64-solaris-gcc | | 80 | CONFIGURE_ARGS+= --target=x86_64-solaris-gcc |
81 | . elif ${MACHINE_ARCH} == "i386" | | 81 | . elif ${MACHINE_ARCH} == "i386" |
82 | CONFIGURE_ARGS+= --target=x86-solaris-gcc | | 82 | CONFIGURE_ARGS+= --target=x86-solaris-gcc |
| | | 83 | # Disable libyuv SSE code, it doesn't compile at present. |
| | | 84 | CFLAGS+= -U__SSE2__ |
83 | . endif | | 85 | . endif |
84 | .endif | | 86 | .endif |
85 | | | 87 | |
86 | .if !empty(PKGSRC_COMPILER:Mclang) | | 88 | .if !empty(PKGSRC_COMPILER:Mclang) |
87 | . if ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin" | | 89 | . if ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin" |
88 | # https://bugzilla.mozilla.org/show_bug.cgi?id=982693 | | 90 | # https://bugzilla.mozilla.org/show_bug.cgi?id=982693 |
89 | SUBST_CLASSES+= clang | | 91 | SUBST_CLASSES+= clang |
90 | SUBST_STAGE.clang= pre-configure | | 92 | SUBST_STAGE.clang= pre-configure |
91 | SUBST_FILES.clang= build/make/Makefile | | 93 | SUBST_FILES.clang= build/make/Makefile |
92 | SUBST_MESSAGE.clang= Disabling clang integrated assembler | | 94 | SUBST_MESSAGE.clang= Disabling clang integrated assembler |
93 | # Test for whether clang supports -fno-integrated-as instead of -no-integrated-as | | 95 | # Test for whether clang supports -fno-integrated-as instead of -no-integrated-as |
94 | CLANG_INTEGRATED_AS!= if ${CCPATH} --version -fno-integrated-as > /dev/null 2>&1; then ${ECHO} "-fno-integrated-as"; else ${ECHO} "-no-integrated-as"; fi | | 96 | CLANG_INTEGRATED_AS!= if ${CCPATH} --version -fno-integrated-as > /dev/null 2>&1; then ${ECHO} "-fno-integrated-as"; else ${ECHO} "-no-integrated-as"; fi |
95 | SUBST_SED.clang= -e 's/-DINLINE_ASM/-DINLINE_ASM ${CLANG_INTEGRATED_AS}/' | | 97 | SUBST_SED.clang= -e 's/-DINLINE_ASM/-DINLINE_ASM ${CLANG_INTEGRATED_AS}/' |