git: 1ad75926d58e - main - graphics/gliv: fix build on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 01 Feb 2022 16:03:05 UTC
The branch main has been updated by pkubaj:

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

commit 1ad75926d58e5c673572628c4dedc45975bdc94a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-02-01 15:54:19 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-01 15:54:19 +0000

    graphics/gliv: fix build on powerpc64
    
    For some reason, on powerpc64 -lSM is added.
---
 graphics/gliv/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/graphics/gliv/Makefile b/graphics/gliv/Makefile
index a522ab1c7bba..f44d7537e6e9 100644
--- a/graphics/gliv/Makefile
+++ b/graphics/gliv/Makefile
@@ -12,12 +12,14 @@ COMMENT=	Image viewer that uses Gdk-Pixbuf and OpenGL
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
+LIB_DEPENDS=	libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
+		libSM.so:x11/libSM
 
 USES=		compiler:c11 desktop-file-utils gettext gl gmake gnome \
-		localbase:ldflags pathfix pkgconfig tar:bzip2
+		localbase:ldflags pathfix pkgconfig tar:bzip2 xorg
 USE_GNOME=	gnomeprefix gtk20
 USE_GL=		gl glu
+USE_XORG=	sm
 GNU_CONFIGURE=	yes
 MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
 		AUTOHEADER="${TRUE}"