pixman: fix build for aarch64 machines with clang; apply pkglint suggestions while herediff -r1.88 -r1.89 pkgsrc/x11/pixman/Makefile
(adam)
@@ -1,37 +1,37 @@ | @@ -1,37 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.88 2022/11/03 08:51:25 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.89 2023/09/29 09:27:07 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= pixman-0.42.2 | 3 | DISTNAME= pixman-0.42.2 | |
4 | CATEGORIES= x11 | 4 | CATEGORIES= x11 | |
5 | MASTER_SITES= ${MASTER_SITE_XORG:=lib/} | 5 | MASTER_SITES= ${MASTER_SITE_XORG:=lib/} | |
6 | EXTRACT_SUFX= .tar.xz | 6 | EXTRACT_SUFX= .tar.xz | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://xorg.freedesktop.org/ | 9 | HOMEPAGE= https://xorg.freedesktop.org/ | |
10 | COMMENT= Library of low-level pixel manipulation routines | 10 | COMMENT= Library of low-level pixel manipulation routines | |
11 | LICENSE= mit | 11 | LICENSE= mit | |
12 | 12 | |||
13 | CHECK_PORTABILITY_SKIP+= Makefile.am # already patched in Makefile.in | 13 | CHECK_PORTABILITY_SKIP+= Makefile.am # already patched in Makefile.in | |
14 | 14 | |||
15 | GNU_CONFIGURE= yes | 15 | GNU_CONFIGURE= yes | |
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= perl | 17 | USE_TOOLS+= perl | |
18 | 18 | |||
19 | .include "../../mk/bsd.prefs.mk" | 19 | .include "../../mk/bsd.prefs.mk" | |
20 | 20 | |||
21 | .if ${MACHINE_ARCH} == i386 | 21 | .if ${MACHINE_ARCH} == i386 | |
22 | CONFIGURE_ARGS+= --disable-sse2 | 22 | CONFIGURE_ARGS+= --disable-sse2 | |
23 | .endif | 23 | .endif | |
24 | 24 | |||
25 | .if ${MACHINE_PLATFORM:MDarwin-*-aarch64} | 25 | .if ${PKGSRC_COMPILER:Mclang} && ${MACHINE_ARCH} == "aarch64" | |
26 | # NEON macros depend on GNU as, but Xcode ships llvm-as | 26 | # NEON macros depend on GNU as, but Xcode ships llvm-as | |
27 | CONFIGURE_ARGS+= --disable-arm-a64-neon | 27 | CONFIGURE_ARGS+= --disable-arm-a64-neon | |
28 | .endif | 28 | .endif | |
29 | 29 | |||
30 | PKGCONFIG_OVERRIDE+= pixman-1.pc.in | 30 | PKGCONFIG_OVERRIDE+= pixman-1.pc.in | |
31 | PKGCONFIG_OVERRIDE+= pixman-1-uninstalled.pc.in | 31 | PKGCONFIG_OVERRIDE+= pixman-1-uninstalled.pc.in | |
32 | 32 | |||
33 | TEST_TARGET= check | 33 | TEST_TARGET= check | |
34 | 34 | |||
35 | X11_LIB_NAME?= pixman | 35 | X11_LIB_NAME?= pixman | |
36 | .include "../../meta-pkgs/modular-xorg/avoid-duplicate.mk" | 36 | .include "../../meta-pkgs/modular-xorg/avoid-duplicate.mk" | |
37 | .include "../../mk/bsd.pkg.mk" | 37 | .include "../../mk/bsd.pkg.mk" |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: builtin.mk,v 1.10 2022/10/18 11:06:46 wiz Exp $ | 1 | # $NetBSD: builtin.mk,v 1.11 2023/09/29 09:27:07 adam Exp $ | |
2 | 2 | |||
3 | BUILTIN_PKG:= pixman | 3 | BUILTIN_PKG:= pixman | |
4 | PKGCONFIG_FILE.pixman= ${X11BASE}/lib/pkgconfig/pixman-1.pc | 4 | PKGCONFIG_FILE.pixman= ${X11BASE}/lib/pkgconfig/pixman-1.pc | |
5 | PKGCONFIG_FILE.pixman+= ${X11BASE}/lib${LIBABISUFFIX}/pkgconfig/pixman-1.pc | 5 | PKGCONFIG_FILE.pixman+= ${X11BASE}/lib${LIBABISUFFIX}/pkgconfig/pixman-1.pc | |
6 | 6 | |||
7 | .include "../../mk/buildlink3/pkgconfig-builtin.mk" | 7 | .include "../../mk/buildlink3/pkgconfig-builtin.mk" | |
8 | .include "../../mk/x11.builtin.mk" | 8 | .include "../../mk/x11.builtin.mk" | |
9 | 9 | |||
10 | # Work around broken libtool archive "/usr/X11/lib/libpixman-1.la" under | 10 | # Work around broken libtool archive "/usr/X11/lib/libpixman-1.la" under | |
11 | # Mac OS 10.5.4 or newer which references a non-existing version of the | 11 | # Mac OS 10.5.4 or newer which references a non-existing version of the | |
12 | # PNG shared library. | 12 | # PNG shared library. | |
13 | CHECK_BUILTIN.pixman?= no | 13 | CHECK_BUILTIN.pixman?= no | |
14 | .if ${CHECK_BUILTIN.pixman:M[nN][oO]} && \ | 14 | .if ${CHECK_BUILTIN.pixman:tl} == no && \ | |
15 | ${USE_BUILTIN.pixman:M[Yy][Ee][Ss]} && \ | 15 | ${USE_BUILTIN.pixman:tl} == yes && \ | |
16 | !empty(MACHINE_PLATFORM:MDarwin-9.*-*) | 16 | ${MACHINE_PLATFORM:MDarwin-9.*-*} | |
17 | BUILDLINK_TRANSFORM+= opt:-lpixman-1.0.10.0:-lpixman-1 | 17 | BUILDLINK_TRANSFORM+= opt:-lpixman-1.0.10.0:-lpixman-1 | |
18 | .endif | 18 | .endif |
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | # $NetBSD: hacks.mk,v 1.14 2022/05/24 09:55:02 nia Exp $ | 1 | # $NetBSD: hacks.mk,v 1.15 2023/09/29 09:27:07 adam Exp $ | |
2 | # | 2 | # | |
3 | .if !defined(PIXMAN_HACKS_MK) | 3 | .if !defined(PIXMAN_HACKS_MK) | |
4 | PIXMAN_HACKS_MK= # empty | 4 | PIXMAN_HACKS_MK= # empty | |
5 | .include "../../mk/bsd.fast.prefs.mk" | 5 | .include "../../mk/bsd.fast.prefs.mk" | |
6 | .include "../../mk/compiler.mk" | 6 | .include "../../mk/compiler.mk" | |
7 | ### | 7 | ### | |
8 | ### XXX SSE2 intrinsics require gcc-4.2+ to build. | 8 | ### XXX SSE2 intrinsics require gcc-4.2+ to build. | |
9 | ### XXX Need to disable SSSE3 explicitly, too. | 9 | ### XXX Need to disable SSSE3 explicitly, too. | |
10 | ### | 10 | ### | |
11 | .if empty(CC_VERSION:Mgcc-4.[2-9]*) && \ | 11 | . if !${CC_VERSION:Mgcc-4.[2-9]*} && \ | |
12 | empty(CC_VERSION:Mgcc-[5-9].*) && \ | 12 | !${CC_VERSION:Mgcc-[5-9].*} && \ | |
13 | empty(CC_VERSION:Mgcc-[1-9][0-9]*) | 13 | !${CC_VERSION:Mgcc-[1-9][0-9]*} | |
14 | CONFIGURE_ARGS+= --disable-sse2 --disable-ssse3 | 14 | CONFIGURE_ARGS+= --disable-sse2 --disable-ssse3 | |
15 | .endif | 15 | . endif | |
16 | .endif | 16 | .endif | |
17 | 17 | |||
18 | .if !empty(PKGSRC_COMPILER:Msunpro) | 18 | .if !empty(PKGSRC_COMPILER:Msunpro) | |
19 | CONFIGURE_ARGS+= --disable-sse2 --disable-mmx --disable-ssse3 | 19 | CONFIGURE_ARGS+= --disable-sse2 --disable-mmx --disable-ssse3 | |
20 | .endif | 20 | .endif | |
21 | 21 | |||
22 | CONFIGURE_ARGS.MirBSD+= PTHREAD_LIBS=-pthread | 22 | CONFIGURE_ARGS.MirBSD+= PTHREAD_LIBS=-pthread | |
23 | 23 | |||
24 | .if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 060000 | 24 | .if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 060000 | |
25 | CONFIGURE_ENV+= ac_cv_tls=none | 25 | CONFIGURE_ENV+= ac_cv_tls=none | |
26 | CFLAGS+= -DPIXMAN_NO_TLS | 26 | CFLAGS+= -DPIXMAN_NO_TLS | |
27 | .endif | 27 | .endif |