Tue Apr 7 09:37:46 2020 UTC ()
mupdf: link against libGL for glCallList

Fixes build on NetBSD 9.99.55.


(wiz)
diff -r1.79 -r1.80 pkgsrc/print/mupdf/Makefile

cvs diff -r1.79 -r1.80 pkgsrc/print/mupdf/Makefile (expand / switch to unified diff)

--- pkgsrc/print/mupdf/Makefile 2020/03/10 22:08:58 1.79
+++ pkgsrc/print/mupdf/Makefile 2020/04/07 09:37:46 1.80
@@ -1,34 +1,35 @@ @@ -1,34 +1,35 @@
1# $NetBSD: Makefile,v 1.79 2020/03/10 22:08:58 wiz Exp $ 1# $NetBSD: Makefile,v 1.80 2020/04/07 09:37:46 wiz Exp $
2 2
3DISTNAME= mupdf-1.16.1-source 3DISTNAME= mupdf-1.16.1-source
4PKGNAME= ${DISTNAME:S/-source//} 4PKGNAME= ${DISTNAME:S/-source//}
5PKGREVISION= 8 5PKGREVISION= 8
6CATEGORIES= print 6CATEGORIES= print
7MASTER_SITES= https://mupdf.com/downloads/archive/ 7MASTER_SITES= https://mupdf.com/downloads/archive/
8 8
9MAINTAINER= leot@NetBSD.org 9MAINTAINER= leot@NetBSD.org
10HOMEPAGE= https://mupdf.com/ 10HOMEPAGE= https://mupdf.com/
11COMMENT= Lightweight PDF, XPS and E-book viewer and toolkit 11COMMENT= Lightweight PDF, XPS and E-book viewer and toolkit
12LICENSE= gnu-agpl-v3 12LICENSE= gnu-agpl-v3
13 13
14USE_LANGUAGES= c99 14USE_LANGUAGES= c99
15USE_LIBTOOL= yes 15USE_LIBTOOL= yes
16USE_TOOLS+= pkg-config gmake 16USE_TOOLS+= pkg-config gmake
17 17
18INSTALLATION_DIRS+= bin include lib/pkgconfig 18INSTALLATION_DIRS+= bin include lib/pkgconfig
19INSTALL_MAKE_FLAGS+= prefix=${PREFIX} 19INSTALL_MAKE_FLAGS+= prefix=${PREFIX}
20INSTALL_MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR} 20INSTALL_MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
21LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib 21LDFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib
 22LDFLAGS.NetBSD+= -lGL # for glCallList
22MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q} 23MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
23MAKE_FLAGS+= XCFLAGS=${CFLAGS:Q} 24MAKE_FLAGS+= XCFLAGS=${CFLAGS:Q}
24MAKE_FLAGS+= build=release 25MAKE_FLAGS+= build=release
25MAKE_ENV+= HAVE_LIBCRYPTO=no # Needs openssl-1.1.0 26MAKE_ENV+= HAVE_LIBCRYPTO=no # Needs openssl-1.1.0
26MAKE_ENV+= USE_SYSTEM_LIBS=yes 27MAKE_ENV+= USE_SYSTEM_LIBS=yes
27 28
28CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 29CFLAGS.SunOS+= -D_XOPEN_SOURCE=600
29 30
30.include "options.mk" 31.include "options.mk"
31 32
32# Remove thirdparty directory in order to use the libraries provided by pkgsrc 33# Remove thirdparty directory in order to use the libraries provided by pkgsrc
33# mujs directory is an exception and should not be removed (MuJS is the 34# mujs directory is an exception and should not be removed (MuJS is the
34# default Javascript interpreter for mupdf). 35# default Javascript interpreter for mupdf).