summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorbrook <brook@pkgsrc.org>2020-02-24 17:29:25 +0000
committerbrook <brook@pkgsrc.org>2020-02-24 17:29:25 +0000
commit7183cfcbaaf1e569dd3e684e066c4d4b9929d91e (patch)
treec78ab9236466da356061c8fcaadef232854d0eb1 /print
parent854937b5a2c874e106f5c83214f27740db706d12 (diff)
downloadpkgsrc-7183cfcbaaf1e569dd3e684e066c4d4b9929d91e.tar.gz
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 (limited to 'print')
-rw-r--r--print/poppler-glib/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/print/poppler-glib/Makefile b/print/poppler-glib/Makefile
index 9b2801cf572..5a459558d6d 100644
--- a/print/poppler-glib/Makefile
+++ b/print/poppler-glib/Makefile
@@ -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 @@ CONFLICTS+= poppler<0.4.5nb1
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.