tech-pkg archive

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

print/poppler-glib: fix MacOS problem



On MacOS the print/poppler-glib package fails to configure because the package complains about the non-existent path /usr/include.  Recent Xcode does not population /usr/include and the package that does so is not guaranteed to exist in the future.  Thus, the solution seems to be to define paths explicitly as arguments to cmake.  I propose the following patch:


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/poppler-glib/Makefile,v
retrieving revision 1.80
diff -u -r1.80 Makefile
--- Makefile	8 Dec 2019 13:56:25 -0000	1.80
+++ Makefile	22 Feb 2020 21:31:17 -0000
@@ -13,6 +13,13 @@
 
 USE_TOOLS+=	python
 
+.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.


Suggestions and improvements welcome.  Thanks.

Cheers,
Brook



Home | Main Index | Thread Index | Old Index