pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/poppler-glib Fix breakage on Darwin.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a1a61348953a
branches:  trunk
changeset: 423725:a1a61348953a
user:      brook <brook%pkgsrc.org@localhost>
date:      Mon Feb 24 17:29:25 2020 +0000

description:
Fix breakage on Darwin.

MacOS does not provide /usr/include, but it sneaks into some command lines
and causes errors.  Be explicit about the path to glib2 to avoid this.

diffstat:

 print/poppler-glib/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 061807ee9cd7 -r a1a61348953a print/poppler-glib/Makefile
--- a/print/poppler-glib/Makefile       Mon Feb 24 17:08:31 2020 +0000
+++ b/print/poppler-glib/Makefile       Mon Feb 24 17:29:25 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.81 2020/01/10 13:24:19 wiz Exp $
+# $NetBSD: Makefile,v 1.82 2020/02/24 17:29:25 brook Exp $
 
 .include "../../print/poppler/Makefile.common"
 
@@ -10,6 +10,13 @@
 
 PKGCONFIG_OVERRIDE+=   ${WRKSRC}/poppler-glib.pc.cmake
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+# MacOS Xcode does not provide /usr/include, so be explicit
+CMAKE_ARGS+=   -DGLIB2_INCLUDE_DIRS=${PREFIX}/include
+.endif
+
 # Don't build the splash graphics backend.
 CMAKE_ARGS+=   -DENABLE_SPLASH=OFF
 # Don't compile GTK+ test program.



Home | Main Index | Thread Index | Old Index