git: ccdb7b7b9e02 - main - multimedia/mplayer: use openjpeg15 includes in Right Way (tm)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 18 Feb 2022 09:34:59 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ccdb7b7b9e0272bfd830f72657ccb9eca01af225

commit ccdb7b7b9e0272bfd830f72657ccb9eca01af225
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-02-18 09:03:26 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-02-18 09:03:26 +0000

    multimedia/mplayer: use openjpeg15 includes in Right Way (tm)
    
    Sponsored by:   Netzkommune GmbH
---
 multimedia/mplayer/Makefile         | 1 +
 multimedia/mplayer/Makefile.optvars | 1 +
 2 files changed, 2 insertions(+)

diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile
index 09ddd828f6a4..d9cb87a4df7d 100644
--- a/multimedia/mplayer/Makefile
+++ b/multimedia/mplayer/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	mplayer
 PORTVERSION=	${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
+PORTREVISION=	1
 CATEGORIES=	multimedia audio
 
 MAINTAINER=	riggs@FreeBSD.org
diff --git a/multimedia/mplayer/Makefile.optvars b/multimedia/mplayer/Makefile.optvars
index bd6b33462aa4..3405dbe083df 100644
--- a/multimedia/mplayer/Makefile.optvars
+++ b/multimedia/mplayer/Makefile.optvars
@@ -87,6 +87,7 @@ OPENGL_USES=		gl
 OPENGL_CONFIGURE_OFF=	--disable-gl
 OPENGL_IMPLIES=		X11
 
+OPENJPEG_CFLAGS=	-I${LOCALBASE}/include/openjpeg-1.5
 OPENJPEG_LIB_DEPENDS=	libopenjpeg.so:graphics/openjpeg15
 OPENJPEG_CONFIGURE_OFF=	--disable-libopenjpeg