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> |