git: fac2bc519518 - main - graphics/libGLU: Switch to meson build

Kevin Bowling kbowling at FreeBSD.org
Thu Jul 15 06:54:45 UTC 2021


The branch main has been updated by kbowling:

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

commit fac2bc519518fc6072e1d042b12cca44afb63568
Author:     Kevin Bowling <kbowling at FreeBSD.org>
AuthorDate: 2021-07-15 06:53:16 +0000
Commit:     Kevin Bowling <kbowling at FreeBSD.org>
CommitDate: 2021-07-15 06:53:16 +0000

    graphics/libGLU: Switch to meson build
    
    Fixes an issue I caused with pkgconfig
    https://gitlab.freedesktop.org/mesa/glu/-/commit/225e00a14a9200f11253775a7c7778c1c29c8b23
    
    PR:             256997
---
 graphics/libGLU/Makefile                | 11 ++++++-----
 graphics/libGLU/files/patch-meson.build |  8 ++++++++
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/graphics/libGLU/Makefile b/graphics/libGLU/Makefile
index 3f332cd6d995..82797034880a 100644
--- a/graphics/libGLU/Makefile
+++ b/graphics/libGLU/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	libGLU
 PORTVERSION=	9.0.2
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/glu/ \
 		https://mesa.freedesktop.org/archive/glu/
@@ -10,12 +11,12 @@ DISTNAME=	glu-${PORTVERSION}
 MAINTAINER=	x11 at FreeBSD.org
 COMMENT=	OpenGL utility library
 
-USES=		gl libtool pathfix pkgconfig tar:xz
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--disable-static \
-		--enable-libglvnd
-INSTALL_TARGET=	install-strip
+USES=		gl libtool meson pathfix pkgconfig tar:xz
+
 USE_GL=		opengl
 USE_LDCONFIG=	yes
 
+INSTALL_TARGET=	install-strip
+MESON_ARGS=	-Ddefault_library=shared
+
 .include <bsd.port.mk>
diff --git a/graphics/libGLU/files/patch-meson.build b/graphics/libGLU/files/patch-meson.build
new file mode 100644
index 000000000000..8337df10f0fe
--- /dev/null
+++ b/graphics/libGLU/files/patch-meson.build
@@ -0,0 +1,8 @@
+--- meson.build.orig	2021-07-09 05:00:19 UTC
++++ meson.build
+@@ -34,4 +34,5 @@ pkgconf.generate(
+   libglu,
+   name : 'glu',
+   description : 'Mesa OpenGL Utility Library',
++  requires: dep_gl
+ )


More information about the dev-commits-ports-main mailing list