summaryrefslogtreecommitdiff
path: root/x11/pixman/Makefile
blob: 910487abab0948f2440b590056f92f16011af921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $NetBSD: Makefile,v 1.42 2011/07/12 13:28:31 tron Exp $

DISTNAME=	pixman-0.22.2
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_XORG:=lib/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://xorg.freedesktop.org/
COMMENT=	Library of low-level pixel manipulation routines
LICENSE=	mit

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_TOOLS+=	pkg-config perl
###
### XXX Quiet, please!
###
.if empty(USE_TOOLS:Mauto*)
CONFIGURE_ENV+=	AUTOCONF=${TRUE:Q}
CONFIGURE_ENV+=	AUTOHEADER=${TRUE:Q}
CONFIGURE_ENV+=	ACLOCAL=${TRUE:Q}
CONFIGURE_ENV+=	AUTOMAKE=${TRUE:Q}
.endif

PKGCONFIG_OVERRIDE+=	pixman-1.pc.in
PKGCONFIG_OVERRIDE+=	pixman-1-uninstalled.pc.in
###
### XXX The configure script is written to fail if it detects gcc<4.0
###	for lack of -fvisibility=hidden. In keeping with the pkgsrc
###	tradition of portability, we'll opt to use libtool to export
###	the desired symbols, hiding the rest.
###
###	Please, do not forget to ensure the currency of this file!

MAKE_ENV+=	PIXMAN_SYMFILE=${PIXMAN_SYMFILE:Q}
PIXMAN_SYMFILE=	${WRKDIR}/pixman.sym

post-extract:
	${CP} ${FILESDIR}/pixman.sym ${WRKDIR}
	${CP} ${FILESDIR}/solaris-hwcap.mapfile ${WRKSRC}/pixman

.include "../../mk/bsd.prefs.mk"

.if !empty(MACHINE_PLATFORM:NetBSD-*-x86_64)
CONFIGURE_ARGS+=	--disable-sse2
# Link the tests with the static library under Mac OS X as we cannot use
# the shared library out of the build area.
.elif ${OPSYS} == "Darwin"
SUBST_CLASSES+=			pixmantests
SUBST_STAGE.pixmantests=	post-configure
SUBST_FILES.pixmantests=	test/Makefile
SUBST_SED.pixmantests=		-e 's@libpixman-1\.la@\.libs/libpixman-1\.a@'
.endif

.include "../../mk/bsd.pkg.mk"