Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 2016 12:02:03 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408389 - head/graphics/rayshade
Message-ID:  <201602071202.u17C23uY049193@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Feb  7 12:02:03 2016
New Revision: 408389
URL: https://svnweb.freebsd.org/changeset/ports/408389

Log:
  - Add LICENSE; commercial distribution is not allowed
  - Switch to options helpers

Modified:
  head/graphics/rayshade/Makefile

Modified: head/graphics/rayshade/Makefile
==============================================================================
--- head/graphics/rayshade/Makefile	Sun Feb  7 11:59:48 2016	(r408388)
+++ head/graphics/rayshade/Makefile	Sun Feb  7 12:02:03 2016	(r408389)
@@ -3,21 +3,24 @@
 
 PORTNAME=	rayshade
 PORTVERSION=	4.0.6
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	graphics
 MASTER_SITES=	http://ccl.net/cca/software/SOURCES/C/rayshade/ \
 		http://www.mirrorservice.org/sites/graphics.stanford.edu/pub/rayshade/ \
 		ftp://graphics.stanford.edu/pub/rayshade/
-DISTFILES=	${PORTNAME}.${PORTVERSION}.tar.Z ${GUIDE_PS_Z}
+DISTFILES=	${PORTNAME}.${PORTVERSION}.tar.Z
 DIST_SUBDIR=	rayshade
 EXTRACT_ONLY=	${PORTNAME}.${PORTVERSION}.tar.Z
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Extensible system for creating ray-traced images
 
-BUILD_DEPENDS=	$(LOCALBASE)/lib/librle.a:${PORTSDIR}/graphics/urt
+LICENSE=	rayshade
+LICENSE_NAME=	Rayshade license
+LICENSE_FILE=	${WRKSRC}/Doc/Copyright
+LICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
+BUILD_DEPENDS=	$(LOCALBASE)/lib/librle.a:${PORTSDIR}/graphics/urt
 
 WRKSRC=		${WRKDIR}/${PORTNAME}.${PORTVERSION:R}
 
@@ -29,11 +32,10 @@ PORTDOCS=	*
 PORTEXAMPLES=	*
 PLIST_FILES=	bin/rayshade
 
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES
+DOCS_DISTFILES=	guide.ps.Z
 
-.if ${PORT_OPTIONS:MDOCS}
-GUIDE_PS_Z=	guide.ps.Z
-.endif
+.include <bsd.port.options.mk>
 
 .if defined(BATCH) || defined(PACKAGE_BUILDING)
 CONFIGURE_ARGS=	< ${WRKDIR}/config.ans
@@ -48,15 +50,16 @@ pre-configure:
 		< ${FILESDIR}/config.ans > ${WRKDIR}/config.ans
 
 do-install:
-	(cd ${WRKSRC}/rayshade && ${INSTALL_PROGRAM} rayshade \
-		${STAGEDIR}${PREFIX}/bin)
-.if ${PORT_OPTIONS:MDOCS}
+	${INSTALL_PROGRAM} ${WRKSRC}/rayshade/rayshade \
+		${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	(cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${GUIDE_PS_Z} \
-		${STAGEDIR}${DOCSDIR})
-.endif
+	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/guide.ps.Z \
+		${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	(cd ${WRKSRC}/Examples && ${INSTALL_DATA} * \
-		${STAGEDIR}${EXAMPLESDIR})
+	${INSTALL_DATA} ${WRKSRC}/Examples/* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



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