Index: head/x11/pixman/Makefile =================================================================== --- head/x11/pixman/Makefile (revision 547063) +++ head/x11/pixman/Makefile (revision 547064) @@ -1,37 +1,35 @@ # $FreeBSD$ PORTNAME= pixman PORTVERSION= 0.40.0 CATEGORIES= x11 MAINTAINER= x11@FreeBSD.org COMMENT= Low-level pixel manipulation library LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING PORTSCOUT= limitw:1,even -USES= cpe perl5 tar:xz xorg-cat:lib +USES= compiler:c11 cpe perl5 tar:xz xorg-cat:lib USE_PERL5= build CONFIGURE_ARGS= --disable-gtk INSTALL_TARGET= install-strip # Build the library exclusively, thus disabling the demos and the tests (which # do not get installed anyway). This is to workaround a problem in powerpc64 # where the build of the tests crashes ld; see PR bin/202284. MAKE_ARGS= SUBDIRS=pixman .include .if ${ARCH} == "armv6" || ${ARCH} == "armv7" BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils CONFIGURE_ENV+= CCASFLAGS="${CFLAGS} -B${LOCALBASE}/bin -no-integrated-as" LLD_UNSAFE= yes -.endif - -.if ${ARCH} == "powerpc64" || ${ARCH} == "powerpc" +.elif ${ARCH} == "powerpc" CONFIGURE_ARGS+= --disable-vmx .endif .include Index: head/x11/pixman/files/patch-pixman_pixman-ppc.c =================================================================== --- head/x11/pixman/files/patch-pixman_pixman-ppc.c (nonexistent) +++ head/x11/pixman/files/patch-pixman_pixman-ppc.c (revision 547064) @@ -0,0 +1,27 @@ +--- pixman/pixman-ppc.c.orig 2020-08-29 23:32:58 UTC ++++ pixman/pixman-ppc.c +@@ -68,6 +68,24 @@ pixman_have_vmx (void) + return have_vmx; + } + ++#elif defined (__FreeBSD__) ++#include ++#include ++ ++static pixman_bool_t ++pixman_have_vmx (void) ++{ ++ ++ unsigned long cpufeatures; ++ int have_vmx; ++ ++ if (elf_aux_info(AT_HWCAP, &cpufeatures, sizeof(cpufeatures))) ++ return FALSE; ++ ++ have_vmx = cpufeatures & PPC_FEATURE_HAS_ALTIVEC; ++ return have_vmx; ++} ++ + #elif defined (__linux__) + + #include Property changes on: head/x11/pixman/files/patch-pixman_pixman-ppc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property