blob: 9f45925043cf05bdf200adaccc44f7ab68a12822 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# New ports collection makefile for: renderpark
# Date created: 24 July 2002
# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
#
# $FreeBSD$
#
PORTNAME= renderpark
PORTVERSION= 3.3
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.cs.kuleuven.ac.be/pub/graphics/software/RenderPark/
DISTNAME= RenderPark
.ifdef (WITH_SCENES)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} Scenes${EXTRACT_SUFX}
.endif
DIST_SUBDIR= ${DISTNAME}
MAINTAINER= ip@doom.homeunix.org
COMMENT= System for physically based photo-realistic image synthesis
.ifdef (WITH_XRML)
LIB_DEPENDS= xrml.0:${PORTSDIR}/graphics/xrml
.endif
WRKSRC= ${WRKDIR}/${DISTNAME}
WRKSRC2= ${WRKDIR}/Scenes
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_MESA= yes
USE_MOTIF= yes
USE_REINPLACE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
USE_GCC= 2.95
NOT_FOR_ARCHS= amd64 sparc64 ia64
.endif
.if !defined(WITH_SCENES)
PLIST_SUB= WITH_SCENES="@comment "
.else
PLIST_SUB= WITH_SCENES=""
.endif
pre-everything::
.ifndef (WITH_XRML)
@${ECHO_MSG} "Defining WITH_XRML=yes will allow you to read XRML input files"
.endif
.ifndef (WITH_SCENES)
@${ECHO_MSG} "Define WITH_SCENES=yes to install additional scenes package"
.endif
pre-patch:
@${RM} -f ${WRKSRC}/Config.site
@${CP} -f ${WRKSRC}/Config.FreeBSD ${WRKSRC}/Config.site
${SETENV} ${SCRIPTS_ENV} \
REINPLACE_CMD="${REINPLACE_CMD}" \
FIND="${FIND}" \
GREP="${GREP}" \
${SH} ${SCRIPTDIR}/cpp2c.sh
post-patch:
.ifdef (WITH_XRML)
@${ECHO_CMD} "" >> ${WRKSRC}/Config.site
@${ECHO_CMD} "####################################################" >> ${WRKSRC}/Config.site
@${ECHO_CMD} "# VRML input support (requires XRML library)" >> ${WRKSRC}/Config.site
@${ECHO_CMD} "VRMLHOME = ${X11BASE}" >> ${WRKSRC}/Config.site
@${ECHO_CMD} "VRMLFLAGS = -I${X11BASE}/include/xrml" >> ${WRKSRC}/Config.site
@${ECHO_CMD} "VRMLLIB = -L${X11BASE}/lib -lxrml" >> ${WRKSRC}/Config.site
.endif
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
s|%%CXX%%|${CXX}|g ;\
s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Config.site
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rpk ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${DISTNAME} ${PREFIX}/lib/X11/app-defaults
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/SCENES/*.mgf ${EXAMPLESDIR}
.ifdef (WITH_SCENES)
@${MKDIR} ${EXAMPLESDIR}/Scenes
${INSTALL_DATA} ${WRKSRC2}/*.mgf ${EXAMPLESDIR}/Scenes
${INSTALL_DATA} ${WRKSRC2}/README ${EXAMPLESDIR}/Scenes
@${MKDIR} ${EXAMPLESDIR}/Scenes/Hospital
${INSTALL_DATA} ${WRKSRC2}/Hospital/*.mgf ${EXAMPLESDIR}/Scenes/Hospital
@${MKDIR} ${EXAMPLESDIR}/Scenes/Materials
${INSTALL_DATA} ${WRKSRC2}/Materials/*.mgf ${EXAMPLESDIR}/Scenes/Materials
.endif
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/*.* ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/SourceCode
${INSTALL_DATA} ${WRKSRC}/DOC/SourceCode/* ${DOCSDIR}/SourceCode
@${MKDIR} ${DOCSDIR}/UserGuide
${INSTALL_DATA} ${WRKSRC}/DOC/UserGuide/* ${DOCSDIR}/UserGuide
.endif
.include <bsd.port.post.mk>
|