summaryrefslogtreecommitdiff
path: root/x11/pixman/builtin.mk
blob: cefc55f10d2d52fbfeb1afa0cb5e11940ddca9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $NetBSD: builtin.mk,v 1.9 2016/07/09 10:22:29 rillig Exp $

BUILTIN_PKG:=		pixman
PKGCONFIG_FILE.pixman=	${X11BASE}/lib/pkgconfig/pixman-1.pc
PKGCONFIG_FILE.pixman+=	${X11BASE}/lib${LIBABISUFFIX}/pkgconfig/pixman-1.pc

.include "../../mk/buildlink3/pkgconfig-builtin.mk"
.include "../../mk/x11.builtin.mk"

# Work around broken libtool archive "/usr/X11/lib/libpixman-1.la" under
# Mac OS 10.5.4 or newer which references a non-existing version of the
# PNG shared library.
CHECK_BUILTIN.pixman?=	no
.if !empty(CHECK_BUILTIN.pixman:M[nN][oO]) && \
    !empty(USE_BUILTIN.pixman:M[Yy][Ee][Ss]) && \
    !empty(MACHINE_PLATFORM:MDarwin-9.*-*)
BUILDLINK_TRANSFORM+=	opt:-lpixman-1.0.10.0:-lpixman-1
.endif