View | Details | Raw Unified | Return to bug 249005
Collapse All | Expand All

(-)Makefile (-4 / +2 lines)
Lines 12-18 Link Here
12
12
13
PORTSCOUT=	limitw:1,even
13
PORTSCOUT=	limitw:1,even
14
14
15
USES=		cpe perl5 tar:xz xorg-cat:lib
15
USES=		compiler:c11 cpe perl5 tar:xz xorg-cat:lib
16
USE_PERL5=	build
16
USE_PERL5=	build
17
CONFIGURE_ARGS=	--disable-gtk
17
CONFIGURE_ARGS=	--disable-gtk
18
INSTALL_TARGET=	install-strip
18
INSTALL_TARGET=	install-strip
Lines 28-36 Link Here
28
BUILD_DEPENDS+=	${LOCALBASE}/bin/as:devel/binutils
28
BUILD_DEPENDS+=	${LOCALBASE}/bin/as:devel/binutils
29
CONFIGURE_ENV+=	CCASFLAGS="${CFLAGS} -B${LOCALBASE}/bin -no-integrated-as"
29
CONFIGURE_ENV+=	CCASFLAGS="${CFLAGS} -B${LOCALBASE}/bin -no-integrated-as"
30
LLD_UNSAFE=	yes
30
LLD_UNSAFE=	yes
31
.endif
31
.elif ${ARCH} == "powerpc"
32
33
.if ${ARCH} == "powerpc64" || ${ARCH} == "powerpc"
34
CONFIGURE_ARGS+=	--disable-vmx
32
CONFIGURE_ARGS+=	--disable-vmx
35
.endif
33
.endif
36
34
(-)files/patch-pixman_pixman-ppc.c (+27 lines)
Line 0 Link Here
1
--- pixman/pixman-ppc.c.orig	2020-08-29 23:32:58 UTC
2
+++ pixman/pixman-ppc.c
3
@@ -68,6 +68,24 @@ pixman_have_vmx (void)
4
     return have_vmx;
5
 }
6
 
7
+#elif defined (__FreeBSD__)
8
+#include <machine/cpu.h>
9
+#include <sys/auxv.h>
10
+
11
+static pixman_bool_t
12
+pixman_have_vmx (void)
13
+{
14
+
15
+    unsigned long cpufeatures;
16
+    int have_vmx;
17
+
18
+    if (elf_aux_info(AT_HWCAP, &cpufeatures, sizeof(cpufeatures)))
19
+        return FALSE;
20
+
21
+    have_vmx = cpufeatures & PPC_FEATURE_HAS_ALTIVEC;
22
+    return have_vmx;
23
+}
24
+
25
 #elif defined (__linux__)
26
 
27
 #include <sys/types.h>

Return to bug 249005