ports/162838: Update port: graphics/rayshade

KATO Tsuguru tkato432 at yahoo.com
Thu Nov 24 18:20:15 UTC 2011


>Number:         162838
>Category:       ports
>Synopsis:       Update port: graphics/rayshade
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 24 18:20:15 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Support CFLAGS properly
- Support PORTDOCS/PORTEXAMPLES/PLIST_FILES

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/rayshade/Makefile graphics/rayshade/Makefile
--- /usr/ports/graphics/rayshade/Makefile	2010-03-28 17:39:17.000000000 +0900
+++ graphics/rayshade/Makefile	2011-09-26 14:07:46.000000000 +0900
@@ -7,47 +7,55 @@
 
 PORTNAME=	rayshade
 PORTVERSION=	4.0.6
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	graphics
-MASTER_SITES=	ftp://graphics.stanford.edu/pub/rayshade/	\
-		ftp://ftp.princeton.edu/pub/Graphics/rayshade.4.0/
+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/
 DISTNAME=	${PORTNAME}.${PORTVERSION}
 EXTRACT_SUFX=	.tar.Z
-.ifndef NOPORTDOCS
+.if !defined(NOPORTDOCS)
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} guide.ps.Z
 .endif
 EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+DIST_SUBDIR=	rayshade
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	An extensible system for creating ray-traced images
 
 BUILD_DEPENDS=	$(LOCALBASE)/lib/librle.a:${PORTSDIR}/graphics/urt
 
-DIST_SUBDIR=	rayshade
-
 WRKSRC=		${WRKDIR}/${PORTNAME}.4.0
+
 HAS_CONFIGURE=	yes
 CONFIGURE_SCRIPT=	Configure
-ALL_TARGET=
+ALL_TARGET=	# empty
+
+PORTDOCS=	*
+PORTEXAMPLE=	*
+PLIST_FILES=	bin/rayshade
 
-.if defined (BATCH) || defined(PACKAGE_BUILDING)
+.if defined(BATCH) || defined(PACKAGE_BUILDING)
 CONFIGURE_ARGS=	< ${WRKDIR}/config.ans
-pre-configure:
-	@${MKDIR} ${PREFIX}/bin
-	${CP} ${FILESDIR}/config.ans ${WRKDIR}/config.ans
-	${REINPLACE_CMD} -e "s, at CFLAGS@,${CFLAGS},g ; \
-			     s, at CC@,${CC},g ; \
-			     s, at LOCALBASE@,${LOCALBASE},g ; \
-			     s, at PREFIX@,${PREFIX},g" ${WRKDIR}/config.ans
 .endif
 
+pre-configure:
+	@${SED} -e \
+		"s, at CFLAGS@,${CFLAGS},g ; \
+		 s, at CC@,${CC},g ; \
+		 s, at LOCALBASE@,${LOCALBASE},g ; \
+		 s, at PREFIX@,${PREFIX},g" \
+		< ${FILESDIR}/config.ans > ${WRKDIR}/config.ans
+
 do-install:
-	$(INSTALL_PROGRAM) $(WRKSRC)/rayshade/rayshade $(PREFIX)/bin
-.ifndef NOPORTDOCS
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/rayshade/rayshade ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/guide.ps.Z ${DOCSDIR}
-	$(MKDIR) $(PREFIX)/share/examples/rayshade
-	$(INSTALL_DATA) $(WRKSRC)/Examples/* $(PREFIX)/share/examples/rayshade
+.endif
+.if !defined(NOPORTEXAMPLES)
+	@${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/Examples/* ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/rayshade/files/config.ans graphics/rayshade/files/config.ans
--- /usr/ports/graphics/rayshade/files/config.ans	2003-07-29 21:32:25.000000000 +0900
+++ graphics/rayshade/files/config.ans	2011-09-12 19:51:39.000000000 +0900
@@ -4,7 +4,7 @@
 
 
 @CC@
-
+none
 @CFLAGS@
 
 @LOCALBASE@/include
diff -urN /usr/ports/graphics/rayshade/pkg-plist graphics/rayshade/pkg-plist
--- /usr/ports/graphics/rayshade/pkg-plist	2003-07-29 21:32:25.000000000 +0900
+++ graphics/rayshade/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,19 +0,0 @@
-bin/rayshade
-%%PORTDOCS%%%%DOCSDIR%%/guide.ps.Z
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%%%EXAMPLESDIR%%/ashtray.def.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/ashtray.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/balls.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/blob.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/boxball.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/coin.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/csg.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/glass.def.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/glass.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/mtv.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/planet.map
-%%PORTDOCS%%%%EXAMPLESDIR%%/planet.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/pool.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/solids.ray
-%%PORTDOCS%%%%EXAMPLESDIR%%/stripe.ray
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list