From owner-svn-ports-head@freebsd.org Mon Sep 10 19:56:33 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C636F109A652; Mon, 10 Sep 2018 19:56:33 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C68E726E3; Mon, 10 Sep 2018 19:56:33 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 732B05656; Mon, 10 Sep 2018 19:56:33 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8AJuX5W086076; Mon, 10 Sep 2018 19:56:33 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8AJuWb5086074; Mon, 10 Sep 2018 19:56:32 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <201809101956.w8AJuWb5086074@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Mon, 10 Sep 2018 19:56:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479445 - in head: Mk Mk/Uses games/q3cellshading X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: in head: Mk Mk/Uses games/q3cellshading X-SVN-Commit-Revision: 479445 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2018 19:56:34 -0000 Author: zeising Date: Mon Sep 10 19:56:32 2018 New Revision: 479445 URL: https://svnweb.freebsd.org/changeset/ports/479445 Log: Change USE_GL to become USES=gl. Change USE_GL to become USES=gl. You still need to specify USE_GL as well, to specify which gl components you need, such as egl glesv2 glut glu glw gl. Only specifying USE_GL is supported for now, to ease in transition. It is however deprecated, and will be removed eventually. Specifying USES=gl without USE_GL is an error. USE_GL=yes is also deprecated, but supported for now. It implies USE_GL=glu. Fix fallout from this change. PR: 230692 Approved by: portmgr (antoine) exp-run by: antoine Reviewed by: mat Differential Revision: https://reviews.freebsd.org/D16774 Added: head/Mk/Uses/gl.mk (contents, props changed) Modified: head/Mk/bsd.port.mk head/games/q3cellshading/Makefile Added: head/Mk/Uses/gl.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/gl.mk Mon Sep 10 19:56:32 2018 (r479445) @@ -0,0 +1,50 @@ +# $FreeBSD$ +# +# Use OpenGL and related libraries and ports +# +# Feature: gl +# Usage: USES=gl +# USE_GL=egl glesv2 glut glu glw gl +# +# USE_GL specifies which GL components to add as dependencies. +# Not specifying USE_GL with USES=gl is an error. +# USE_GL=yes implies USE_GL=glu. This is deprecated +# +# MAINTAINER: x11@FreeBSD.org + +.if !defined(_INCLUDE_USES_GL_MK) +_INCLUDE_USES_GL_MK=yes + +_GL_gbm_LIB_DEPENDS= libgbm.so:graphics/mesa-libs +_GL_glesv2_LIB_DEPENDS= libGLESv2.so:graphics/mesa-libs +_GL_egl_LIB_DEPENDS= libEGL.so:graphics/mesa-libs +_GL_gl_LIB_DEPENDS= libGL.so:graphics/mesa-libs +_GL_gl_USE_XORG= xorgproto +_GL_glew_LIB_DEPENDS= libGLEW.so:graphics/glew +_GL_glu_LIB_DEPENDS= libGLU.so:graphics/libGLU +_GL_glu_USE_XORG= xorgproto +_GL_glw_LIB_DEPENDS= libGLw.so:graphics/libGLw +_GL_glut_LIB_DEPENDS= libglut.so:graphics/freeglut + +.if !empty(gl_ARGS) +IGNORE= USES=gl takes no arguments +.endif + +.if !defined(USE_GL) +IGNORE= need to specify gl component with USE_GL +.elif ${USE_GL:tl} == yes +DEV_WARNING+= "USE_GL=yes is deprecated, please add USE_GL=glu (default) or specify component" +USE_GL= glu +.endif + +.for _component in ${USE_GL} +.if !defined(_GL_${_component}_LIB_DEPENDS) +IGNORE= uses unknown GL component +.else +USE_XORG+= ${_GL_${_component}_USE_XORG} +LIB_DEPENDS+= ${_GL_${_component}_LIB_DEPENDS} +.endif +.endfor + +# _INCLUDE_USES_GL_MK +.endif Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Mon Sep 10 19:49:05 2018 (r479444) +++ head/Mk/bsd.port.mk Mon Sep 10 19:56:32 2018 (r479445) @@ -363,11 +363,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # CXXFLAGS_${ARCH} # Append the cxxflags to CXXFLAGS only on the specified architecture ## -# USE_GL - A list of Mesa or GL related dependencies needed by the port. -# Supported components are: egl, glesv2, glut, glu, glw, and gl. -# If set to "yes", this is equivalent to "glu". Note that -# glew and glut depend on glu, glw and glu depend on gl. -## # USE_SDL - If set, this port uses the sdl libraries. # See bsd.sdl.mk for more information. ## @@ -1426,6 +1421,11 @@ DEV_WARNING+= "Using USE_MATE alone is deprecated, ple USES+= mate .endif +.if defined(USE_GL) && (!defined(USES) || !${USES:Mgl}) +DEV_WARNING+= "Setting USE_GL without USES=gl is deprecated" +USES+= gl +.endif + .if defined(USE_MYSQL) USE_MYSQL:= ${USE_MYSQL:N[yY][eE][sS]:Nclient} .if defined(WANT_MYSQL_VER) @@ -1889,36 +1889,6 @@ IGNORE= has USE_LDCONFIG32 set to yes, which is not .endif PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' - -_GL_gbm_LIB_DEPENDS= libgbm.so:graphics/mesa-libs -_GL_glesv2_BUILD_DEPENDS= ${LOCALBASE}/lib/libGLESv2.so:graphics/mesa-libs -_GL_glesv2_RUN_DEPENDS= ${LOCALBASE}/lib/libGLESv2.so:graphics/mesa-libs -_GL_egl_BUILD_DEPENDS= ${LOCALBASE}/lib/libEGL.so:graphics/mesa-libs -_GL_egl_RUN_DEPENDS= ${LOCALBASE}/lib/libEGL.so:graphics/mesa-libs -_GL_gl_BUILD_DEPENDS= ${LOCALBASE}/lib/libGL.so:graphics/mesa-libs -_GL_gl_RUN_DEPENDS= ${LOCALBASE}/lib/libGL.so:graphics/mesa-libs -_GL_gl_USE_XORG= xorgproto -_GL_glew_LIB_DEPENDS= libGLEW.so:graphics/glew -_GL_glu_LIB_DEPENDS= libGLU.so:graphics/libGLU -_GL_glu_USE_XORG= xorgproto -_GL_glw_LIB_DEPENDS= libGLw.so:graphics/libGLw -_GL_glut_LIB_DEPENDS= libglut.so:graphics/freeglut -.if defined(USE_GL) -. if ${USE_GL:tl} == "yes" -USE_GL= glu -. endif -. for _component in ${USE_GL} -. if !defined(_GL_${_component}_LIB_DEPENDS) && \ - !defined(_GL_${_component}_RUN_DEPENDS) -IGNORE= uses unknown GL component -. else -USE_XORG+= ${_GL_${_component}_USE_XORG} -BUILD_DEPENDS+= ${_GL_${_component}_BUILD_DEPENDS} -LIB_DEPENDS+= ${_GL_${_component}_LIB_DEPENDS} -RUN_DEPENDS+= ${_GL_${_component}_RUN_DEPENDS} -. endif -. endfor -.endif .if defined(_DESTDIR_VIA_ENV) MAKE_ENV+= ${DESTDIRNAME}=${STAGEDIR} Modified: head/games/q3cellshading/Makefile ============================================================================== --- head/games/q3cellshading/Makefile Mon Sep 10 19:49:05 2018 (r479444) +++ head/games/q3cellshading/Makefile Mon Sep 10 19:56:32 2018 (r479445) @@ -36,7 +36,7 @@ DEDICATED_DESC= Build dedicated server GAMELIBS_DESC= Force building game libraries SMP_CLIENT_DESC= Build SMP (threaded) client -.include +.include .if ${ARCH} == "i386" BUILD_DEPENDS+= nasm:devel/nasm @@ -79,6 +79,8 @@ MAKE_ENV+= OPTIMIZED_CFLAGS=YES MAKE_ENV+= SMP=YES Q3BIN+= quake3-smp .endif + +.include post-patch: @${REINPLACE_CMD} -e 's|botlib\.log|/dev/null|' \