1 # $NetBSD: Makefile,v 1.13 2010/12/01 08:59:12 mrg 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-access.c \ 14 pixman-access-accessors.c \ 15 pixman-cpu.c \ 16 pixman-gradient-walker.c \ 17 pixman-region16.c \ 18 pixman-region32.c \ 19 pixman-image.c \ 20 pixman-implementation.c \ 21 pixman-combine32.c \ 22 pixman-combine64.c \ 23 pixman-general.c \ 24 pixman.c \ 25 pixman-fast-path.c \ 26 pixman-solid-fill.c \ 27 pixman-conical-gradient.c \ 28 pixman-linear-gradient.c \ 29 pixman-radial-gradient.c \ 30 pixman-bits-image.c \ 31 pixman-utils.c \ 32 pixman-edge.c \ 33 pixman-edge-accessors.c \ 34 pixman-trap.c \ 35 pixman-timer.c \ 36 pixman-matrix.c 37 38 # XXX 39 40 .if ${MACHINE_ARCH} == "i386" 41 # SSE2 requires a gcc >= 4.2 42 SRCS+= pixman-mmx.c 43 COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden 44 MKDEPFLAGS+= -mmmx -fvisibility=hidden 45 .elif ${MACHINE_ARCH} == "x86_64" 46 SRCS+= pixman-mmx.c 47 # XXX sse2 is broken with pixman 0.21.2; GCC generates unaligned accesses 48 #SRCS+= pixman-sse2.c 49 COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden 50 #COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden 51 .endif 52 53 # .if VMX 54 # SRCS+= pixman-vmx.c 55 # .endif 56 57 INCS= pixman.h pixman-version.h 58 INCSDIR=${X11INCDIR}/pixman-1 59 60 CPPFLAGS+= -DHAVE_CONFIG_H \ 61 -I${X11SRCDIR.pixman}/../include \ 62 -I${X11SRCDIR.pixman}/../combine \ 63 -I${X11SRCDIR.pixman}/pixman 64 65 # XXX! wants __thread 66 CPPFLAGS+= -DPIXMAN_NO_TLS 67 68 LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm 69 70 PKGCONFIG= pixman-1 71 PKGDIST= pixman 72 73 .include <bsd.x11.mk> 74 .include <bsd.lib.mk> 75