blob: e03ef13933ba31d331af9edb3b38460ae8bdcd86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
PORTNAME= pixman
DISTVERSION= 0.46.2
CATEGORIES= x11
MASTER_SITES= https://cairographics.org/releases/
MAINTAINER= x11@FreeBSD.org
COMMENT= Low-level pixel manipulation library
WWW= https://pixman.org
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe meson pkgconfig tar:xz
MESON_ARGS= -Dloongson-mmi=disabled \
-Dgtk=disabled \
-Ddemos=disabled
OPTIONS_DEFINE= OPENMP TEST
OPTIONS_DEFAULT= OPENMP
OPTIONS_EXCLUDE_armv6= OPENMP
OPTIONS_EXCLUDE_armv7= OPENMP
OPTIONS_EXCLUDE_powerpc=OPENMP
OPENMP_MESON_ENABLED= openmp
TEST_LIB_DEPENDS= libpng.so:graphics/png
TEST_MESON_ENABLED= libpng tests
.include <bsd.port.options.mk>
.if ${ARCH} == armv6
MESON_ARGS+= -Darm-simd=enabled
.else
MESON_ARGS+= -Darm-simd=disabled
.endif
.if ${ARCH} == armv7
MESON_ARGS+= -Dneon=enabled
.else
MESON_ARGS+= -Dneon=disabled
.endif
.if ${ARCH} == aarch64
MESON_ARGS+= -Da64-neon=enabled
.else
MESON_ARGS+= -Da64-neon=disabled
.endif
.if ${ARCH} == i386 || ${ARCH} == amd64
MESON_ARGS+= -Dmmx=enabled \
-Dsse2=enabled \
-Dssse3=enabled
.else
MESON_ARGS+= -Dmmx=disabled \
-Dsse2=disabled \
-Dssse3=disabled
.endif
.if ${ARCH:Mmips*}
MESON_ARGS+= -Dmips-dspr2=enabled
.else
MESON_ARGS+= -Dmips-dspr2=disabled
.endif
.if ${ARCH:Mpowerpc*}
MESON_ARGS+= -Dvmx=enabled
.else
MESON_ARGS+= -Dvmx=disabled
.endif
.if ${ARCH} == riscv64 && 0 # XXX Convert to elf_aux_info + HWCAP_ISA_V
MESON_ARGS+= -Drvv=enabled
.else
MESON_ARGS+= -Drvv=disabled
.endif
.include <bsd.port.mk>
|