1 # $NetBSD: Makefile,v 1.19 2013/02/07 13:33:50 macallan Exp $ 2 3 NOLINT= 1 # defined 4 5 .include <bsd.own.mk> 6 7 LIB= pixman-1 8 9 DIST= ${X11SRCDIR.pixman}/pixman 10 .PATH: ${DIST} 11 12 SRCS= \ 13 pixman.c \ 14 pixman-access.c \ 15 pixman-access-accessors.c \ 16 pixman-bits-image.c \ 17 pixman-combine32.c \ 18 pixman-combine-float.c \ 19 pixman-conical-gradient.c \ 20 pixman-x86.c \ 21 pixman-mips.c \ 22 pixman-arm.c \ 23 pixman-ppc.c \ 24 pixman-edge.c \ 25 pixman-edge-accessors.c \ 26 pixman-fast-path.c \ 27 pixman-glyph.c \ 28 pixman-general.c \ 29 pixman-gradient-walker.c \ 30 pixman-image.c \ 31 pixman-implementation.c \ 32 pixman-linear-gradient.c \ 33 pixman-matrix.c \ 34 pixman-noop.c \ 35 pixman-radial-gradient.c \ 36 pixman-region16.c \ 37 pixman-region32.c \ 38 pixman-solid-fill.c \ 39 pixman-timer.c \ 40 pixman-trap.c \ 41 pixman-utils.c 42 43 # XXX 44 45 .if ${MACHINE_ARCH} == "i386" 46 # SSE2 requires a gcc >= 4.2 47 SRCS+= pixman-mmx.c 48 COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden 49 MKDEPFLAGS+= -mmmx -fvisibility=hidden 50 .elif ${MACHINE_ARCH} == "x86_64" 51 SRCS+= pixman-mmx.c 52 # XXX sse2 is broken with pixman 0.21.2; GCC generates unaligned accesses 53 #SRCS+= pixman-sse2.c 54 COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden 55 #COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden 56 .endif 57 58 .if ${MACHINE_ARCH} == "powerpc" 59 SRCS+= pixman-vmx.c 60 COPTS.pixman-vmx.c= -maltivec 61 CPPFLAGS+= -DUSE_VMX 62 MKDEPFLAGS+= -maltivec 63 .endif 64 65 .if ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmhf" 66 # ARM SIMD 67 SRCS+= pixman-arm-simd.c \ 68 pixman-arm-simd-asm.S 69 CPPFLAGS+= -DUSE_ARM_SIMD 70 # ARM NEON 71 SRCS+= pixman-arm-neon.c \ 72 pixman-arm-neon-asm.S \ 73 pixman-arm-neon-asm-bilinear.S 74 CPPFLAGS+= -DUSE_ARM_NEON 75 # ARM iwMMX 76 SRCS+= pixman-mmx.c 77 COPTS.pixman-mmx.c= -mcpu=iwmmxt 78 CPPFLAGS+= -DUSE_ARM_IWMMXT 79 .endif 80 81 INCS= pixman.h pixman-version.h 82 INCSDIR=${X11INCDIR}/pixman-1 83 84 CPPFLAGS+= -DHAVE_CONFIG_H \ 85 -I${X11SRCDIR.pixman}/../include \ 86 -I${X11SRCDIR.pixman}/../combine \ 87 -I${X11SRCDIR.pixman}/pixman 88 89 # With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS 90 CPPFLAGS+= -DHAVE_PTHREAD_SETSPECIFIC 91 #CPPFLAGS+= -DTLS=__thread 92 93 LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm 94 95 PKGCONFIG= pixman-1 96 PKGDIST= pixman 97 98 .include <bsd.x11.mk> 99 .include <bsd.lib.mk> 100