Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 21:15:12 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r434991 - head/graphics/glfw
Message-ID:  <201702272115.v1RLFCwh075114@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Feb 27 21:15:12 2017
New Revision: 434991
URL: https://svnweb.freebsd.org/changeset/ports/434991

Log:
  - Prefer to build and install shared library rather than static one
  - Convert explicit LIB_DEPENDS to their USE_XORG equivalents
  - Utilize USES+=localbase instead of manually amending CPPFLAGS/LDFLAGS
  - Drop USE_GCC=yes: the port builds fine with both Clang and GCC 4.2.1
    (e.g. on PowerPC)

Modified:
  head/graphics/glfw/Makefile
  head/graphics/glfw/pkg-plist

Modified: head/graphics/glfw/Makefile
==============================================================================
--- head/graphics/glfw/Makefile	Mon Feb 27 21:13:51 2017	(r434990)
+++ head/graphics/glfw/Makefile	Mon Feb 27 21:15:12 2017	(r434991)
@@ -3,6 +3,7 @@
 
 PORTNAME=	glfw
 PORTVERSION=	3.2.1
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 
@@ -11,17 +12,11 @@ COMMENT=	Portable framework for OpenGL d
 
 LICENSE=	ZLIB
 
-LIB_DEPENDS=	libXinerama.so:x11/libXinerama \
-		libXcursor.so:x11/libXcursor
-
-USES=		cmake zip
-USE_XORG=	xi xrandr
+USES=		cmake localbase zip
+USE_XORG=	x11 xcursor xinerama xrandr xxf86vm
 USE_GL=		glu
-USE_GCC=	yes
 USE_LDCONFIG=	yes
-
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+CMAKE_ARGS=	-DBUILD_SHARED_LIBS:BOOL=ON
 
 PORTDOCS=	*
 

Modified: head/graphics/glfw/pkg-plist
==============================================================================
--- head/graphics/glfw/pkg-plist	Mon Feb 27 21:13:51 2017	(r434990)
+++ head/graphics/glfw/pkg-plist	Mon Feb 27 21:15:12 2017	(r434991)
@@ -4,5 +4,7 @@ lib/cmake/glfw3/glfw3Config.cmake
 lib/cmake/glfw3/glfw3ConfigVersion.cmake
 lib/cmake/glfw3/glfw3Targets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/glfw3/glfw3Targets.cmake
-lib/libglfw3.a
+lib/libglfw.so
+lib/libglfw.so.3
+lib/libglfw.so.3.2
 libdata/pkgconfig/glfw3.pc



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