diff options
author | leot <leot@pkgsrc.org> | 2019-05-13 11:03:58 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2019-05-13 11:03:58 +0000 |
commit | dfee60573dfae5e328202498af39761b31823014 (patch) | |
tree | f5551d3cadec290308b52220f5a8c318a56d634f /print/mupdf/patches | |
parent | 0d0d767e9fe33278b231cd1ed4975c0c001a12a7 (diff) | |
download | pkgsrc-dfee60573dfae5e328202498af39761b31823014.tar.gz |
mupdf: Minor fix/cleanups/patch hunks readd accidentally lost in 1.15.0 update
Fixes:
- Use `HAVE_GLUT ?= yes' instead of `HAVE_GLUT := yes' in patch-ab:
in that way possible `MAKE_ENV+= HAVE_GLUT=no' in options.mk is honored
(in 1.15.0 update this could lead to building and installing mupdf-gl
and failing due PLIST mismatch despite `opengl' option was not
set.)
Cleanups/patch hunks readds/improvements:
- Avoid to remove non existent thirdparty/curl directory no longer exists,
do not remove it in post-extract
- Clarify why pkgsrc lcms2 could not be used
- Remove curl leftover in buildlink3.mk
- Update patch-Makethird, patch-ab, patch-ac comments to reflect reality
- Populate SYS_GLUT_{CFLAGS,LIBS} via `pkg-config'
Diffstat (limited to 'print/mupdf/patches')
-rw-r--r-- | print/mupdf/patches/patch-Makethird | 6 | ||||
-rw-r--r-- | print/mupdf/patches/patch-ab | 13 | ||||
-rw-r--r-- | print/mupdf/patches/patch-ac | 5 |
3 files changed, 10 insertions, 14 deletions
diff --git a/print/mupdf/patches/patch-Makethird b/print/mupdf/patches/patch-Makethird index e9160761398..066e95a8c51 100644 --- a/print/mupdf/patches/patch-Makethird +++ b/print/mupdf/patches/patch-Makethird @@ -1,8 +1,6 @@ -$NetBSD: patch-Makethird,v 1.9 2018/10/04 19:02:33 leot Exp $ +$NetBSD: patch-Makethird,v 1.10 2019/05/13 11:03:58 leot Exp $ -- mujs building support with libtool -- Avoid the internal lcms2 version provided and honors SYS_LCMS2_{CFLAGS,LIBS}. - These are handled in patches/patch-ab. +mujs building support with libtool --- Makethird.orig 2018-09-25 12:39:17.000000000 +0000 +++ Makethird diff --git a/print/mupdf/patches/patch-ab b/print/mupdf/patches/patch-ab index 3b5da57d8dc..7be05ae0c5b 100644 --- a/print/mupdf/patches/patch-ab +++ b/print/mupdf/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.19 2019/05/12 12:27:02 ryoon Exp $ +$NetBSD: patch-ab,v 1.20 2019/05/13 11:03:58 leot Exp $ - Handle the various operating systems in the same way avoiding hardcoding - Avoid to use objcopy by setting HAVE_OBJCOPY to no (if `yes', and with @@ -11,7 +11,7 @@ $NetBSD: patch-ab,v 1.19 2019/05/12 12:27:02 ryoon Exp $ set SYS_GLUT_{CFLAGS,LIBS} accordingly. - Avoid internal version of lcms2 and try to pick it up via pkg-config and set SYS_LCMS2_{CFLAGS,LIBS} accordingly. - If no lcms2 is available just pass `-DNO_ICC' to disable it via + If no lcms2 is available just pass `-DFZ_ENABLE_ICC=0' to disable it via CFLAGS. --- Makerules.orig 2019-05-06 11:53:09.000000000 +0000 @@ -94,14 +94,15 @@ $NetBSD: patch-ab,v 1.19 2019/05/12 12:27:02 ryoon Exp $ - endif +endif -+ifeq ($(shell pkg-config --exists glut && echo yes),yes) - HAVE_GLUT := yes +- HAVE_GLUT := yes - ifeq ($(HAVE_GLUT),yes) - SYS_GLUT_CFLAGS := - SYS_GLUT_LIBS := -lglut -lGL - endif -+ SYS_GLUT_CFLAGS := -+ SYS_GLUT_LIBS := -lglut -lGL ++ifeq ($(shell pkg-config --exists glut && echo yes),yes) ++ HAVE_GLUT ?= yes ++ SYS_GLUT_CFLAGS := $(shell pkg-config --cflags glut) ++ SYS_GLUT_LIBS := $(shell pkg-config --libs glut) +endif HAVE_X11 := $(shell pkg-config --exists x11 xext && echo yes) diff --git a/print/mupdf/patches/patch-ac b/print/mupdf/patches/patch-ac index ad2fa0e4a0f..f0372562f6a 100644 --- a/print/mupdf/patches/patch-ac +++ b/print/mupdf/patches/patch-ac @@ -1,4 +1,4 @@ -$NetBSD: patch-ac,v 1.21 2019/05/12 12:27:02 ryoon Exp $ +$NetBSD: patch-ac,v 1.22 2019/05/13 11:03:58 leot Exp $ - libtool support - Install target cleanup @@ -6,9 +6,6 @@ $NetBSD: patch-ac,v 1.21 2019/05/12 12:27:02 ryoon Exp $ - Do not force `-O0' flag when building - Get rid of unused VERSION variable and `version:' target (otherwise `git' can be invoked during the building phase) -- Install only one `mupdf' binary, prefer the featureful one and always - install it as `mupdf'. -- Install all EXTRA_APPS (muraster, mujstest, mjsgen) --- Makefile.orig 2019-05-06 11:53:09.000000000 +0000 +++ Makefile |