1#	$NetBSD: Makefile,v 1.13 2010/12/01 08:59:12 mrg Exp $
2
3NOLINT=	1	# defined
4
5.include <bsd.own.mk>
6
7LIB=		pixman-1
8
9DIST=	${X11SRCDIR.pixman}/pixman
10.PATH:	${DIST}
11
12SRCS=	\
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-noop.c				\
35	pixman-trap.c				\
36	pixman-timer.c				\
37	pixman-matrix.c
38
39# XXX
40
41.if ${MACHINE_ARCH} == "i386"
42# SSE2 requires a gcc >= 4.2
43SRCS+= pixman-mmx.c
44COPTS.pixman-mmx.c=	-mmmx -fvisibility=hidden
45MKDEPFLAGS+=		-mmmx -fvisibility=hidden
46.elif ${MACHINE_ARCH} == "x86_64"
47SRCS+=	pixman-mmx.c
48# XXX sse2 is broken with pixman 0.21.2; GCC generates unaligned accesses
49#SRCS+=	pixman-sse2.c
50COPTS.pixman-mmx.c=	-mmmx -fvisibility=hidden
51#COPTS.pixman-sse2.c=	-msse2 -fvisibility=hidden
52.endif
53
54# .if VMX
55# SRCS+=	pixman-vmx.c
56# .endif
57
58INCS=	pixman.h pixman-version.h
59INCSDIR=${X11INCDIR}/pixman-1
60
61CPPFLAGS+=	-DHAVE_CONFIG_H \
62		-I${X11SRCDIR.pixman}/../include \
63		-I${X11SRCDIR.pixman}/../combine \
64		-I${X11SRCDIR.pixman}/pixman
65
66# XXX!  wants __thread
67CPPFLAGS+=	-DPIXMAN_NO_TLS
68
69LIBDPLIBS=	m	${.CURDIR}/../../../../../lib/libm
70
71PKGCONFIG=	pixman-1
72PKGDIST=	pixman
73
74.include <bsd.x11.mk>
75.include <bsd.lib.mk>
76