76 lines
1.6 KiB
Makefile
76 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.14 2011/08/03 18:22:29 mrg Exp $
|
|
|
|
NOLINT= 1 # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= pixman-1
|
|
|
|
DIST= ${X11SRCDIR.pixman}/pixman
|
|
.PATH: ${DIST}
|
|
|
|
SRCS= \
|
|
pixman-access.c \
|
|
pixman-access-accessors.c \
|
|
pixman-cpu.c \
|
|
pixman-gradient-walker.c \
|
|
pixman-region16.c \
|
|
pixman-region32.c \
|
|
pixman-image.c \
|
|
pixman-implementation.c \
|
|
pixman-combine32.c \
|
|
pixman-combine64.c \
|
|
pixman-general.c \
|
|
pixman.c \
|
|
pixman-fast-path.c \
|
|
pixman-solid-fill.c \
|
|
pixman-conical-gradient.c \
|
|
pixman-linear-gradient.c \
|
|
pixman-radial-gradient.c \
|
|
pixman-bits-image.c \
|
|
pixman-utils.c \
|
|
pixman-edge.c \
|
|
pixman-edge-accessors.c \
|
|
pixman-noop.c \
|
|
pixman-trap.c \
|
|
pixman-timer.c \
|
|
pixman-matrix.c
|
|
|
|
# XXX
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
# SSE2 requires a gcc >= 4.2
|
|
SRCS+= pixman-mmx.c
|
|
COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden
|
|
MKDEPFLAGS+= -mmmx -fvisibility=hidden
|
|
.elif ${MACHINE_ARCH} == "x86_64"
|
|
SRCS+= pixman-mmx.c
|
|
# XXX sse2 is broken with pixman 0.21.2; GCC generates unaligned accesses
|
|
#SRCS+= pixman-sse2.c
|
|
COPTS.pixman-mmx.c= -mmmx -fvisibility=hidden
|
|
#COPTS.pixman-sse2.c= -msse2 -fvisibility=hidden
|
|
.endif
|
|
|
|
# .if VMX
|
|
# SRCS+= pixman-vmx.c
|
|
# .endif
|
|
|
|
INCS= pixman.h pixman-version.h
|
|
INCSDIR=${X11INCDIR}/pixman-1
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H \
|
|
-I${X11SRCDIR.pixman}/../include \
|
|
-I${X11SRCDIR.pixman}/../combine \
|
|
-I${X11SRCDIR.pixman}/pixman
|
|
|
|
# XXX! wants __thread
|
|
CPPFLAGS+= -DPIXMAN_NO_TLS
|
|
|
|
LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm
|
|
|
|
PKGCONFIG= pixman-1
|
|
PKGDIST= pixman
|
|
|
|
.include <bsd.x11.mk>
|
|
.include <bsd.lib.mk>
|