graphics/mupdf: fix mupdf-gl not being built.

PR:		236002
Reported by:	Oleh Hushchenkov <o.hushchenkov@gmail.com>
Approved by:	tcberner (mentor)
This commit is contained in:
Alexandre C. Guimarães 2019-02-24 18:39:42 +00:00
parent 1057d74ee5
commit fa5d9a39eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493796
4 changed files with 10 additions and 7 deletions

View file

@ -4,6 +4,7 @@
PORTNAME= mupdf
DISTVERSION= 1.14.0
DISTVERSIONSUFFIX= -source
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= http://www.mupdf.com/downloads/ \

View file

@ -43,7 +43,7 @@
LIBS += -lprofiler
else
$(error unknown build setting: '$(build)')
@@ -143,7 +143,58 @@ else ifeq ($(OS),Linux)
@@ -143,7 +143,59 @@ else ifeq ($(OS),Linux)
PTHREAD_LIBS := -lpthread
endif
@ -60,6 +60,7 @@
+ SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
+ SYS_FREETYPE_LIBS := $(shell pkg-config --libs freetype2)
+ # glut
+ HAVE_GLUT := yes
+ USE_SYSTEM_GLUT := yes
+ SYS_GLUT_CFLAGS :=
+ SYS_GLUT_LIBS := -lglut -lGL

View file

@ -9,7 +9,7 @@
{
do {
@@ -42,7 +42,7 @@ void byteReverse(cmsUInt8Number * buf, c
@@ -42,7 +42,7 @@ void byteReverse(cmsUInt8Number * buf, cmsUInt32Number
}
#else
@ -18,7 +18,7 @@
#endif
@@ -196,7 +196,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Nu
@@ -196,7 +196,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Number* buf, cms
}
memmove(p, buf, t);
@ -27,7 +27,7 @@
MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in);
buf += t;
@@ -205,7 +205,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Nu
@@ -205,7 +205,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Number* buf, cms
while (len >= 64) {
memmove(ctx->in, buf, 64);
@ -36,7 +36,7 @@
MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in);
buf += 64;
len -= 64;
@@ -232,21 +232,21 @@ void MD5finish(cmsProfileID* ProfileID,
@@ -232,21 +232,21 @@ void MD5finish(cmsProfileID* ProfileID, cmsHANDLE Han
if (count < 8) {
memset(p, 0, count);

View file

@ -1,6 +1,7 @@
bin/mjsgen
bin/mujstest
bin/mupdf
bin/mupdf-gl
bin/muraster
bin/mutool
include/mupdf/fitz.h
@ -80,10 +81,10 @@ include/mupdf/pdf/resource.h
include/mupdf/pdf/widget.h
include/mupdf/pdf/xref.h
include/mupdf/ucdn.h
lib/libmupdf.so
lib/libmupdf.so.%%SOVERSION%%
lib/libmupdf-third.so
lib/libmupdf-third.so.%%SOVERSION%%
lib/libmupdf.so
lib/libmupdf.so.%%SOVERSION%%
man/man1/mupdf.1.gz
man/man1/mutool.1.gz
%%PORTDOCS%%%%DOCSDIR%%/CHANGES