View | Details | Raw Unified | Return to bug 162838
Collapse All | Expand All

(-)graphics/rayshade/Makefile (-20 / +28 lines)
Lines 7-53 Link Here
7
7
8
PORTNAME=	rayshade
8
PORTNAME=	rayshade
9
PORTVERSION=	4.0.6
9
PORTVERSION=	4.0.6
10
PORTREVISION=	4
10
PORTREVISION=	5
11
CATEGORIES=	graphics
11
CATEGORIES=	graphics
12
MASTER_SITES=	ftp://graphics.stanford.edu/pub/rayshade/	\
12
MASTER_SITES=	http://ccl.net/cca/software/SOURCES/C/rayshade/ \
13
		ftp://ftp.princeton.edu/pub/Graphics/rayshade.4.0/
13
		http://www.mirrorservice.org/sites/graphics.stanford.edu/pub/rayshade/ \
14
		ftp://graphics.stanford.edu/pub/rayshade/
14
DISTNAME=	${PORTNAME}.${PORTVERSION}
15
DISTNAME=	${PORTNAME}.${PORTVERSION}
15
EXTRACT_SUFX=	.tar.Z
16
EXTRACT_SUFX=	.tar.Z
16
.ifndef NOPORTDOCS
17
.if !defined(NOPORTDOCS)
17
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} guide.ps.Z
18
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} guide.ps.Z
18
.endif
19
.endif
19
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
20
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
21
DIST_SUBDIR=	rayshade
20
22
21
MAINTAINER=	ports@FreeBSD.org
23
MAINTAINER=	ports@FreeBSD.org
22
COMMENT=	An extensible system for creating ray-traced images
24
COMMENT=	An extensible system for creating ray-traced images
23
25
24
BUILD_DEPENDS=	$(LOCALBASE)/lib/librle.a:${PORTSDIR}/graphics/urt
26
BUILD_DEPENDS=	$(LOCALBASE)/lib/librle.a:${PORTSDIR}/graphics/urt
25
27
26
DIST_SUBDIR=	rayshade
27
28
WRKSRC=		${WRKDIR}/${PORTNAME}.4.0
28
WRKSRC=		${WRKDIR}/${PORTNAME}.4.0
29
29
HAS_CONFIGURE=	yes
30
HAS_CONFIGURE=	yes
30
CONFIGURE_SCRIPT=	Configure
31
CONFIGURE_SCRIPT=	Configure
31
ALL_TARGET=
32
ALL_TARGET=	# empty
33
34
PORTDOCS=	*
35
PORTEXAMPLE=	*
36
PLIST_FILES=	bin/rayshade
32
37
33
.if defined (BATCH) || defined(PACKAGE_BUILDING)
38
.if defined(BATCH) || defined(PACKAGE_BUILDING)
34
CONFIGURE_ARGS=	< ${WRKDIR}/config.ans
39
CONFIGURE_ARGS=	< ${WRKDIR}/config.ans
35
pre-configure:
36
	@${MKDIR} ${PREFIX}/bin
37
	${CP} ${FILESDIR}/config.ans ${WRKDIR}/config.ans
38
	${REINPLACE_CMD} -e "s,@CFLAGS@,${CFLAGS},g ; \
39
			     s,@CC@,${CC},g ; \
40
			     s,@LOCALBASE@,${LOCALBASE},g ; \
41
			     s,@PREFIX@,${PREFIX},g" ${WRKDIR}/config.ans
42
.endif
40
.endif
43
41
42
pre-configure:
43
	@${SED} -e \
44
		"s,@CFLAGS@,${CFLAGS},g ; \
45
		 s,@CC@,${CC},g ; \
46
		 s,@LOCALBASE@,${LOCALBASE},g ; \
47
		 s,@PREFIX@,${PREFIX},g" \
48
		< ${FILESDIR}/config.ans > ${WRKDIR}/config.ans
49
44
do-install:
50
do-install:
45
	$(INSTALL_PROGRAM) $(WRKSRC)/rayshade/rayshade $(PREFIX)/bin
51
	${INSTALL_PROGRAM} ${WRKSRC}/rayshade/rayshade ${PREFIX}/bin
46
.ifndef NOPORTDOCS
52
.if !defined(NOPORTDOCS)
47
	${MKDIR} ${DOCSDIR}
53
	@${MKDIR} ${DOCSDIR}
48
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/guide.ps.Z ${DOCSDIR}
54
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/guide.ps.Z ${DOCSDIR}
49
	$(MKDIR) $(PREFIX)/share/examples/rayshade
55
.endif
50
	$(INSTALL_DATA) $(WRKSRC)/Examples/* $(PREFIX)/share/examples/rayshade
56
.if !defined(NOPORTEXAMPLES)
57
	@${MKDIR} ${EXAMPLESDIR}
58
	${INSTALL_DATA} ${WRKSRC}/Examples/* ${EXAMPLESDIR}
51
.endif
59
.endif
52
60
53
.include <bsd.port.mk>
61
.include <bsd.port.mk>
(-)graphics/rayshade/files/config.ans (-1 / +1 lines)
Lines 4-10 Link Here
4
4
5
5
6
@CC@
6
@CC@
7
7
none
8
@CFLAGS@
8
@CFLAGS@
9
9
10
@LOCALBASE@/include
10
@LOCALBASE@/include
(-)graphics/rayshade/pkg-plist (-19 lines)
Lines 1-19 Link Here
1
bin/rayshade
2
%%PORTDOCS%%%%DOCSDIR%%/guide.ps.Z
3
%%PORTDOCS%%@dirrm %%DOCSDIR%%
4
%%PORTDOCS%%%%EXAMPLESDIR%%/ashtray.def.ray
5
%%PORTDOCS%%%%EXAMPLESDIR%%/ashtray.ray
6
%%PORTDOCS%%%%EXAMPLESDIR%%/balls.ray
7
%%PORTDOCS%%%%EXAMPLESDIR%%/blob.ray
8
%%PORTDOCS%%%%EXAMPLESDIR%%/boxball.ray
9
%%PORTDOCS%%%%EXAMPLESDIR%%/coin.ray
10
%%PORTDOCS%%%%EXAMPLESDIR%%/csg.ray
11
%%PORTDOCS%%%%EXAMPLESDIR%%/glass.def.ray
12
%%PORTDOCS%%%%EXAMPLESDIR%%/glass.ray
13
%%PORTDOCS%%%%EXAMPLESDIR%%/mtv.ray
14
%%PORTDOCS%%%%EXAMPLESDIR%%/planet.map
15
%%PORTDOCS%%%%EXAMPLESDIR%%/planet.ray
16
%%PORTDOCS%%%%EXAMPLESDIR%%/pool.ray
17
%%PORTDOCS%%%%EXAMPLESDIR%%/solids.ray
18
%%PORTDOCS%%%%EXAMPLESDIR%%/stripe.ray
19
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%

Return to bug 162838