Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2019 08:01:17 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r491246 - in head/graphics/simpleviewer: . files
Message-ID:  <201901260801.x0Q81H4c069223@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Jan 26 08:01:17 2019
New Revision: 491246
URL: https://svnweb.freebsd.org/changeset/ports/491246

Log:
  graphics/simpleviewer: Install config.example
  
  PR:		217497
  Submitted by:	wjenkner@inode.at

Added:
  head/graphics/simpleviewer/files/
  head/graphics/simpleviewer/files/pkg-message.in   (contents, props changed)
Modified:
  head/graphics/simpleviewer/Makefile

Modified: head/graphics/simpleviewer/Makefile
==============================================================================
--- head/graphics/simpleviewer/Makefile	Sat Jan 26 07:19:32 2019	(r491245)
+++ head/graphics/simpleviewer/Makefile	Sat Jan 26 08:01:17 2019	(r491246)
@@ -3,7 +3,7 @@
 
 PORTNAME=	simpleviewer
 PORTVERSION=	2.92
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	graphics
 MASTER_SITES=	https://bitbucket.org/andreyu/simple-viewer-gl/get/
 DISTNAME=	v${PORTVERSION}	# version tag, thus no embedded ${PORTNAME}
@@ -32,8 +32,16 @@ USE_XORG=	ice sm x11 xcursor xext xinerama xrandr xxf8
 WRKSRC=		${WRKDIR}/andreyu-simple-viewer-gl-b3bd8710e176
 
 PLIST_FILES=	bin/sviewgl
+PORTEXAMPLES=	config.example
+SUB_FILES=	pkg-message
 
+OPTIONS_DEFINE=	EXAMPLES
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/sviewgl ${STAGEDIR}${PREFIX}/bin
+
+do-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/config.example ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Added: head/graphics/simpleviewer/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/simpleviewer/files/pkg-message.in	Sat Jan 26 08:01:17 2019	(r491246)
@@ -0,0 +1,3 @@
+You can put default command line switches into a configuration file,
+please see %%EXAMPLESDIR%%/config.example
+for how to do it.



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