From owner-svn-ports-head@freebsd.org Tue Apr 17 13:35:47 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 7EB31FA3FA5; Tue, 17 Apr 2018 13:35:47 +0000 (UTC) (envelope-from amdmi3@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 33F336D61A; Tue, 17 Apr 2018 13:35:47 +0000 (UTC) (envelope-from amdmi3@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 2EB885392; Tue, 17 Apr 2018 13:35:47 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3HDZla4044241; Tue, 17 Apr 2018 13:35:47 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3HDZko5044239; Tue, 17 Apr 2018 13:35:46 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201804171335.w3HDZko5044239@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Tue, 17 Apr 2018 13:35:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467602 - head/devel/guichan X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: head/devel/guichan X-SVN-Commit-Revision: 467602 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.25 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: Tue, 17 Apr 2018 13:35:47 -0000 Author: amdmi3 Date: Tue Apr 17 13:35:46 2018 New Revision: 467602 URL: https://svnweb.freebsd.org/changeset/ports/467602 Log: - Add LICENSE_FILE - Switch to USES=localbase - Switch to options helpers - Cosmetic fixes - Install documentation Modified: head/devel/guichan/Makefile head/devel/guichan/pkg-plist Modified: head/devel/guichan/Makefile ============================================================================== --- head/devel/guichan/Makefile Tue Apr 17 13:34:49 2018 (r467601) +++ head/devel/guichan/Makefile Tue Apr 17 13:35:46 2018 (r467602) @@ -5,51 +5,36 @@ PORTNAME= guichan PORTVERSION= 0.8.2 PORTREVISION= 11 CATEGORIES= devel games -MASTER_SITES= http://pkgs.fedoraproject.org/repo/pkgs/guichan/guichan-0.8.2.tar.gz/af535d7f387e774e3197cef8023ea105/ +MASTER_SITES= http://pkgs.fedoraproject.org/repo/pkgs/guichan/${DISTFILES}/af535d7f387e774e3197cef8023ea105/ MAINTAINER= ports@FreeBSD.org COMMENT= Small, efficient C++ GUI library designed for games LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING +USES= gmake pathfix libtool localbase:ldflags GNU_CONFIGURE= yes USE_LDCONFIG= yes -USES= gmake pathfix libtool -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +PORTDOCS= AUTHORS ChangeLog NEWS README TODO -OPTIONS_DEFINE= SDL ALLEGRO OPENGL +OPTIONS_DEFINE= SDL ALLEGRO OPENGL DOCS OPTIONS_DEFAULT= SDL OPENGL -ALLEGRO_DESC= Allegro support +OPTIONS_SUB= yes -.include +SDL_USE= SDL=sdl,image +SDL_CONFIGURE_ENABLE= sdl sdlimage -.if ${PORT_OPTIONS:MSDL} -USE_SDL+= sdl image -CONFIGURE_ARGS+=--enable-sdl --enable-sdlimage -PLIST_SUB+= SDL="" -.else -CONFIGURE_ARGS+=--disable-sdl --disable-sdlimage -PLIST_SUB+= SDL="@comment " -.endif +ALLEGRO_DESC= Allegro support +ALLEGRO_LIB_DEPENDS= liballeg.so:devel/allegro +ALLEGRO_CONFIGURE_ENABLE=allegro -.if ${PORT_OPTIONS:MALLEGRO} -LIB_DEPENDS+= liballeg.so:devel/allegro -CONFIGURE_ARGS+=--enable-allegro -PLIST_SUB+= ALLEGRO="" -.else -CONFIGURE_ARGS+=--disable-allegro -PLIST_SUB+= ALLEGRO="@comment " -.endif +OPENGL_USE= GL=gl +OPENGL_CONFIGURE_ENABLE=opengl -.if ${PORT_OPTIONS:MOPENGL} -USE_GL= yes -CONFIGURE_ARGS+=--enable-opengl -PLIST_SUB+= GL="" -.else -CONFIGURE_ARGS+=--disable-opengl -PLIST_SUB+= GL="@comment " -.endif +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include Modified: head/devel/guichan/pkg-plist ============================================================================== --- head/devel/guichan/pkg-plist Tue Apr 17 13:34:49 2018 (r467601) +++ head/devel/guichan/pkg-plist Tue Apr 17 13:35:46 2018 (r467602) @@ -58,10 +58,10 @@ include/guichan/widgets/window.hpp %%ALLEGRO%%include/guichan/allegro/allegroimage.hpp %%ALLEGRO%%include/guichan/allegro/allegroimageloader.hpp %%ALLEGRO%%include/guichan/allegro/allegroinput.hpp -%%GL%%include/guichan/opengl/openglgraphics.hpp -%%GL%%include/guichan/opengl/openglimage.hpp -%%GL%%include/guichan/opengl/openglallegroimageloader.hpp -%%GL%%include/guichan/opengl/openglsdlimageloader.hpp +%%OPENGL%%include/guichan/opengl/openglgraphics.hpp +%%OPENGL%%include/guichan/opengl/openglimage.hpp +%%OPENGL%%include/guichan/opengl/openglallegroimageloader.hpp +%%OPENGL%%include/guichan/opengl/openglsdlimageloader.hpp %%SDL%%include/guichan/sdl/sdlgraphics.hpp %%SDL%%include/guichan/sdl/sdlimage.hpp %%SDL%%include/guichan/sdl/sdlimageloader.hpp @@ -76,11 +76,11 @@ libdata/pkgconfig/guichan-0.8.pc %%ALLEGRO%%lib/libguichan_allegro.so %%ALLEGRO%%lib/libguichan_allegro.so.1 %%ALLEGRO%%lib/libguichan_allegro.so.1.1.0 -%%GL%%lib/libguichan_opengl.a -%%GL%%lib/libguichan_opengl.so -%%GL%%lib/libguichan_opengl.so.1 -%%GL%%lib/libguichan_opengl.so.1.1.0 -%%GL%%libdata/pkgconfig/guichan_opengl-0.8.pc +%%OPENGL%%lib/libguichan_opengl.a +%%OPENGL%%lib/libguichan_opengl.so +%%OPENGL%%lib/libguichan_opengl.so.1 +%%OPENGL%%lib/libguichan_opengl.so.1.1.0 +%%OPENGL%%libdata/pkgconfig/guichan_opengl-0.8.pc %%SDL%%lib/libguichan_sdl.a %%SDL%%lib/libguichan_sdl.so %%SDL%%lib/libguichan_sdl.so.1