summaryrefslogtreecommitdiff
path: root/x11/pixman
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2011-07-11 19:19:42 +0000
committertron <tron@pkgsrc.org>2011-07-11 19:19:42 +0000
commit2481ead05dd457e47316f63f1cf4b0629d7ff09e (patch)
tree6f32cd818337432d9056d85d1dcdf10426590ad3 /x11/pixman
parent1cc53a00054187c837763e03b5d4fc855a94b6c0 (diff)
downloadpkgsrc-2481ead05dd457e47316f63f1cf4b0629d7ff09e.tar.gz
Fix build problem under Mac OS X.
Diffstat (limited to 'x11/pixman')
-rw-r--r--x11/pixman/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/x11/pixman/Makefile b/x11/pixman/Makefile
index cfff7998849..bf40b705eba 100644
--- a/x11/pixman/Makefile
+++ b/x11/pixman/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2011/07/11 10:50:58 drochner Exp $
-#
+# $NetBSD: Makefile,v 1.41 2011/07/11 19:19:42 tron Exp $
DISTNAME= pixman-0.22.2
CATEGORIES= x11
@@ -9,6 +8,7 @@ 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
@@ -42,4 +42,15 @@ post-extract:
${CP} ${FILESDIR}/pixman.sym ${WRKDIR}
${CP} ${FILESDIR}/solaris-hwcap.mapfile ${WRKSRC}/pixman
+.include "../../mk/bsd.prefs.mk"
+
+# Link the tests with the static library under Mac OS X as we cannot use
+# the shared library out of the build area.
+.if ${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"