1 # $NetBSD: Makefile,v 1.18 2013/02/03 12:41:40 jmcneill 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} == "earm" || ${MACHINE_ARCH} == "earmhf" 59 # ARM SIMD 60 SRCS+= pixman-arm-simd.c \ 61 pixman-arm-simd-asm.S 62 CPPFLAGS+= -DUSE_ARM_SIMD 63 # ARM NEON 64 SRCS+= pixman-arm-neon.c \ 65 pixman-arm-neon-asm.S \ 66 pixman-arm-neon-asm-bilinear.S 67 CPPFLAGS+= -DUSE_ARM_NEON 68 # ARM iwMMX 69 SRCS+= pixman-mmx.c 70 COPTS.pixman-mmx.c= -mcpu=iwmmxt 71 CPPFLAGS+= -DUSE_ARM_IWMMXT 72 .endif 73 74 # .if VMX 75 # SRCS+= pixman-vmx.c 76 # .endif 77 78 INCS= pixman.h pixman-version.h 79 INCSDIR=${X11INCDIR}/pixman-1 80 81 CPPFLAGS+= -DHAVE_CONFIG_H \ 82 -I${X11SRCDIR.pixman}/../include \ 83 -I${X11SRCDIR.pixman}/../combine \ 84 -I${X11SRCDIR.pixman}/pixman 85 86 # With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS 87 CPPFLAGS+= -DHAVE_PTHREAD_SETSPECIFIC 88 #CPPFLAGS+= -DTLS=__thread 89 90 LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm 91 92 PKGCONFIG= pixman-1 93 PKGDIST= pixman 94 95 .include <bsd.x11.mk> 96 .include <bsd.lib.mk> 97