pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/pixman Fix build problem under Mac OS X.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/beb27c093c13
branches:  trunk
changeset: 590457:beb27c093c13
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Jul 11 19:19:42 2011 +0000

description:
Fix build problem under Mac OS X.

diffstat:

 x11/pixman/Makefile |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 9680a8033183 -r beb27c093c13 x11/pixman/Makefile
--- a/x11/pixman/Makefile       Mon Jul 11 19:14:42 2011 +0000
+++ b/x11/pixman/Makefile       Mon Jul 11 19:19:42 2011 +0000
@@ -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 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://xorg.freedesktop.org/
 COMMENT=       Library of low-level pixel manipulation routines
+LICENSE=       mit
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
@@ -42,4 +42,15 @@
        ${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"



Home | Main Index | Thread Index | Old Index