| @@ -1,25 +1,32 @@ | | | @@ -1,25 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.81 2020/01/10 13:24:19 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.82 2020/02/24 17:29:25 brook Exp $ |
2 | | | 2 | |
3 | .include "../../print/poppler/Makefile.common" | | 3 | .include "../../print/poppler/Makefile.common" |
4 | | | 4 | |
5 | PKGNAME= poppler-glib-${POPPLER_VERS} | | 5 | PKGNAME= poppler-glib-${POPPLER_VERS} |
6 | | | 6 | |
7 | COMMENT= PDF rendering library (GLib wrapper) | | 7 | COMMENT= PDF rendering library (GLib wrapper) |
8 | | | 8 | |
9 | CONFLICTS+= poppler<0.4.5nb1 | | 9 | CONFLICTS+= poppler<0.4.5nb1 |
10 | | | 10 | |
11 | PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-glib.pc.cmake | | 11 | PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-glib.pc.cmake |
12 | | | 12 | |
| | | 13 | .include "../../mk/bsd.prefs.mk" |
| | | 14 | |
| | | 15 | .if ${OPSYS} == "Darwin" |
| | | 16 | # MacOS Xcode does not provide /usr/include, so be explicit |
| | | 17 | CMAKE_ARGS+= -DGLIB2_INCLUDE_DIRS=${PREFIX}/include |
| | | 18 | .endif |
| | | 19 | |
13 | # Don't build the splash graphics backend. | | 20 | # Don't build the splash graphics backend. |
14 | CMAKE_ARGS+= -DENABLE_SPLASH=OFF | | 21 | CMAKE_ARGS+= -DENABLE_SPLASH=OFF |
15 | # Don't compile GTK+ test program. | | 22 | # Don't compile GTK+ test program. |
16 | CMAKE_ARGS+= -DBUILD_GTK_TESTS=OFF | | 23 | CMAKE_ARGS+= -DBUILD_GTK_TESTS=OFF |
17 | # Compile GLib wrapper which also needs gtk2 | | 24 | # Compile GLib wrapper which also needs gtk2 |
18 | CMAKE_ARGS+= -DENABLE_GLIB=ON | | 25 | CMAKE_ARGS+= -DENABLE_GLIB=ON |
19 | # Do not generate glib API documentation. | | 26 | # Do not generate glib API documentation. |
20 | CMAKE_ARGS+= -DENABLE_GTK_DOC=OFF | | 27 | CMAKE_ARGS+= -DENABLE_GTK_DOC=OFF |
21 | # Don't build and install the tools | | 28 | # Don't build and install the tools |
22 | CMAKE_ARGS+= -DENABLE_UTILS=OFF | | 29 | CMAKE_ARGS+= -DENABLE_UTILS=OFF |
23 | # Don't compile poppler cpp wrapper. | | 30 | # Don't compile poppler cpp wrapper. |
24 | CMAKE_ARGS+= -DENABLE_CPP=OFF | | 31 | CMAKE_ARGS+= -DENABLE_CPP=OFF |
25 | # Don't compile poppler qt5 wrapper. | | 32 | # Don't compile poppler qt5 wrapper. |