Hi Stuart --
On 07/24/18 12:05, Stuart Henderson wrote:
For the header, you can temporarily add a #error to the /usr/local one
and know whether it gets picked up or not.
Right, of course. Don't know why that slipped my mind.
Anyhow, here is a small diff to MuPDF to ensure that the correct header
gets picked up.
~Brian
--
Sent from a phone, apologies for poor formatting.
On 24 July 2018 16:48:33 Brian Callahan <[email protected]> wrote:
Hi Stuart --
On 7/24/2018 9:16 AM, Stuart Henderson wrote:
On 2018/07/24 15:11, Charlène wrote:
On Mon, 23 Jul 2018 17:05:34 -0400
Brian Callahan wrote:
Hi ports --
Attached is a new port, lang/mujs. MuJS is a lightweight, embeddable
Javascript interpreter.
Works for me on amd64, armv7, and macppc.
OK?
Did you check it doesn't affect the mupdf build? That has an internal
libmujs.a file, need to make sure that it picks up its own one in
preference
to any installed /usr/local/lib/libmujs.
I did check this. MuPDF doesn't check for any installed MuJS. Instead,
what it does is unconditionally build the one.o object file that is
MuJS, archives that into a libmupdfthird.a with all the other third
party code, then links libmupdfthird.a into libmupdf.so.
However, because it doesn't bother checking, I can't rule out that mupdf
isn't picking up the mujs.h header file from an installed mujs during
build time, instead of the mujs.h header file included in mupdf. The
tweaks to mupdf to ensure this doesn't happen are minimal and I can send
something along if that's desirable. As I understand the way package
builds are done, this would not affect them.
Hi!
I've successfully tried some examples found in the html docs - by
the way the port doesn't install them - and also tested the
standalone interpreter: it's OK here on amd64.
Charlène.
The HTML in the docs/ folder is just a reproduction of the port's
HOMEPAGE. I'm not sure that's something we necessarily want to install.
~Brian
While testing is always welcome, when a developer is asking for an "OK"
for a commit, it is because they need approval from another developer,
it isn't something that somebody else can give.
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/mupdf/Makefile,v
retrieving revision 1.80
diff -u -p -r1.80 Makefile
--- Makefile 27 Jun 2018 21:04:04 -0000 1.80
+++ Makefile 24 Jul 2018 17:01:48 -0000
@@ -5,7 +5,7 @@ SHARED_LIBS += mupdf 7.0
COMMENT = graphic library, pdf parser, viewer and utilities
V = 1.13.0
-REVISION = 1
+REVISION = 2
DISTNAME = mupdf-$V-source
PKGNAME = mupdf-$V
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/textproc/mupdf/patches/patch-Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 patch-Makefile
--- patches/patch-Makefile 23 Apr 2018 11:55:54 -0000 1.14
+++ patches/patch-Makefile 24 Jul 2018 17:01:48 -0000
@@ -1,8 +1,26 @@
$OpenBSD: patch-Makefile,v 1.14 2018/04/23 11:55:54 sthen Exp $
+Make sure -Ithirdparty/mujs comes before -I/usr/local/lib!
+
Index: Makefile
--- Makefile.orig
+++ Makefile
+@@ -29,6 +29,7 @@ LIBS += $(MUJS_LIBS)
+ LIBS += $(OPENJPEG_LIBS)
+ LIBS += $(ZLIB_LIBS)
+
++CFLAGS += $(MUJS_CFLAGS)
+ CFLAGS += $(FREETYPE_CFLAGS)
+ CFLAGS += $(HARFBUZZ_CFLAGS)
+ CFLAGS += $(JBIG2DEC_CFLAGS)
+@@ -37,7 +38,6 @@ CFLAGS += $(LCMS2_CFLAGS)
+ CFLAGS += $(LIBCRYPTO_CFLAGS)
+ CFLAGS += $(LIBJPEG_CFLAGS)
+ CFLAGS += $(LURATECH_CFLAGS)
+-CFLAGS += $(MUJS_CFLAGS)
+ CFLAGS += $(OPENJPEG_CFLAGS)
+ CFLAGS += $(ZLIB_CFLAGS)
+
@@ -325,7 +325,7 @@ generate: $(JAVASCRIPT_GEN)
# --- Library ---