Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2018 06:29:37 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474665 - head/graphics/mupdf
Message-ID:  <201807150629.w6F6Tbnn049981@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Jul 15 06:29:36 2018
New Revision: 474665
URL: https://svnweb.freebsd.org/changeset/ports/474665

Log:
  graphics/mupdf: Fix headers conflict with openjpeg15
  
  Reported by:	Ajtim <starikarp@yandex.com> (on ports ML)

Modified:
  head/graphics/mupdf/Makefile

Modified: head/graphics/mupdf/Makefile
==============================================================================
--- head/graphics/mupdf/Makefile	Sun Jul 15 06:25:24 2018	(r474664)
+++ head/graphics/mupdf/Makefile	Sun Jul 15 06:29:36 2018	(r474665)
@@ -23,15 +23,16 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libjbig2dec.so:graphics/jbig2dec \
 		libopenjp2.so:graphics/openjpeg
 
-CFLAGS+=	-I${WRKSRC}/include/mupdf -fPIC
-LIBS+=		-L${LOCALBASE}/lib
+USES=		cpe compiler:c++11-lang gmake jpeg pkgconfig
 MAKE_ARGS=	build=release prefix=${PREFIX} mandir=${PREFIX}/man verbose=yes \
 		SOVERSION=${PORTVERSION}
 ALL_TARGET=	all extra
-USES=		cpe compiler:c++11-lang gmake jpeg pkgconfig
 USE_XORG=	x11 xcursor xext xinerama xrandr
 USE_GL=		gl glut
 USE_LDCONFIG=	yes
+
+CFLAGS+=	`pkg-config --cflags libopenjp2` -I${WRKSRC}/include/mupdf -fPIC # pkg-config to avoid the conflict with openjpeg15
+LIBS+=		-L${LOCALBASE}/lib
 
 CPE_VENDOR=	artifex
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807150629.w6F6Tbnn049981>