blob: c87d11a6de11dbeb4cd0f78acb3c0b24cfa6077a (
plain)
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
104
105
106
|
# New ports collection makefile for: xrml
# Date created: 23 July 2002
# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
#
# $FreeBSD$
#
PORTNAME= xrml
PORTVERSION= 0.5.3
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.cs.kuleuven.ac.be/pub/graphics/software/RenderPark/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= RenderPark
MAINTAINER= ip@doom.homeunix.org
COMMENT= Extensible scene graph library based on VRML'97
WRKSRC= ${WRKDIR}/${PORTNAME:U}
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_GL= yes
USE_MOTIF= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
.if !defined(WITH_EXAMPLES)
PLIST_SUB= WITH_EXAMPLES="@comment "
.else
PLIST_SUB= WITH_EXAMPLES=""
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000
USE_GCC= 2.95
NOT_FOR_ARCHS= amd64 sparc64 ia64
.endif
.ifndef (WITH_EXAMPLES)
pre-everything::
@${ECHO_MSG} "You can define WITH_EXAMPLES=yes to install example VRML files"
.endif
pre-patch:
@${CP} -f ${WRKSRC}/Config.Linux ${WRKSRC}/Config.site
post-patch:
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
s|%%CXX%%|${CXX}|g ; \
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/Config.site
pre-build:
${GMAKE} -C ${WRKSRC}/FILTERS link_includes
${GMAKE} -C ${WRKSRC}/XRML link_includes
${GMAKE} -C ${WRKSRC}/PROGS/vrmldump clean
do-install:
@${MKDIR} ${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/include/*.[hH] ${PREFIX}/include/${PORTNAME}
.for i in cso mgf nff vrml2_utf8
@${MKDIR} ${PREFIX}/include/${PORTNAME}/${i}
${INSTALL_DATA} ${WRKSRC}/include/${i}/* \
${PREFIX}/include/${PORTNAME}/${i}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${PORTNAME}.so.0.5 \
${PREFIX}/lib/lib${PORTNAME}.so.0
${LN} -fs lib${PORTNAME}.so.0 ${PREFIX}/lib/lib${PORTNAME}.so
@${STRIP_CMD} ${WRKSRC}/lib/*.a
${INSTALL_DATA} ${WRKSRC}/lib/*.a ${PREFIX}/lib
.ifdef (WITH_EXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for i in wrl ppm gz mgf
${INSTALL_DATA} ${WRKSRC}/TEST/*.${i} ${EXAMPLESDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/TEST/plotfunc.c ${EXAMPLESDIR}
.endif
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/nodeapi ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/nodegen ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/status ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/PhBRML
${INSTALL_DATA} ${WRKSRC}/DOC/PhBRML/*.html ${DOCSDIR}/PhBRML
${INSTALL_DATA} ${WRKSRC}/DOC/PhBRML/2ndtextured.gif ${DOCSDIR}/PhBRML
${INSTALL_DATA} ${WRKSRC}/DOC/PhBRML/*.wrl ${DOCSDIR}/PhBRML
@${MKDIR} ${DOCSDIR}/VRML97
${INSTALL_DATA} ${WRKSRC}/DOC/VRML97/*.html ${DOCSDIR}/VRML97
@${MKDIR} ${DOCSDIR}/VRML97/Images
.for i in gif jpg
${INSTALL_DATA} ${WRKSRC}/DOC/VRML97/Images/*.${i} ${DOCSDIR}/VRML97/Images
.endfor
@${MKDIR} ${DOCSDIR}/VRML97/part1
.for i in html wrl wav
${INSTALL_DATA} ${WRKSRC}/DOC/VRML97/part1/*.${i} ${DOCSDIR}/VRML97/part1
.endfor
${LN} -sf VRML97 ${DOCSDIR}/VRML
.endif
.include <bsd.port.post.mk>
|