blob: ae9e4a3da4de1c15add5e36d4c9b333bad038eb6 (
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
|
# New ports collection makefile for: linux-bmrt
# Date created: 4 May 2000
# Whom: R Joseph Wright
#
# $FreeBSD$
#
PORTNAME= linux-bmrt
PORTVERSION= 2.6beta
CATEGORIES= graphics linux
MASTER_SITES= #fetch manually
DISTNAME= BMRT${PORTVERSION}.linux-glibc2
MAINTAINER= rjoseph@mammalia.org
RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base \
/compat/linux/usr/X11R6/lib/libGL.so:${PORTSDIR}/graphics/linux_mesa3
WRKSRC= ${WRKDIR}/BMRT2.6
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
NO_CDROM= "See the License"
# Linux binary should not be stripped by INSTALL_PROGRAM as it uses
# /usr/bin/strip which then brands the binary as a FreeBSD ELF one.
STRIP=
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= may not be automatically fetched due to licensing \
restrictions. You must manually fetch the Linux version at \
http://www.exluna.com/bmrt/download/index.html. \
Once you have read and agreed to the license and \
${DISTFILES} has been downloaded, move it to \
${DISTDIR} and then restart this build.
.endif
INC_DIR= ${PREFIX}/include/bmrt
LIB_DIR= ${PREFIX}/lib/bmrt
DOC_DIR= ${PREFIX}/share/doc/bmrt
PROGRAM= composite iv mkmip mkmosaic rendrib rgl slc slctell
SCRIPT= farm frankenrender
pre-install:
${MV} ${WRKSRC}/bin/frankenrender ${WRKSRC}/bin/frankenrender.old
${SED} 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/' ${WRKSRC}/bin/frankenrender.old > ${WRKSRC}/bin/frankenrender
do-install:
${MKDIR} ${LIB_DIR}
${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/lib/bmrt
${MKDIR} ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/doc/bmrtdoc.pdf ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/Changes ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/License ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOC_DIR}
${MKDIR} ${DOC_DIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOC_DIR}/html
${MKDIR} ${INC_DIR}
${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/bmrt
${MKDIR} ${PREFIX}/share/examples/bmrt
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/bmrt
${MKDIR} ${PREFIX}/share/bmrt ${PREFIX}/share/bmrt/shaders
${INSTALL_DATA} ${WRKSRC}/.rendribrc ${PREFIX}/share/bmrt/rendribrc.sample
${INSTALL_DATA} ${WRKSRC}/shaders/* ${PREFIX}/share/bmrt/shaders
.for i in ${SCRIPT}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${PREFIX}/bin
.endfor
.for i in ${PROGRAM}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${i} ${PREFIX}/bin
/usr/bin/brandelf -t Linux ${PREFIX}/bin/${i}
.endfor
post-install:
@${ECHO} "";
@${ECHO} "************************************************************************";
@${ECHO} "";
@${ECHO} " Before using these programs, add the following";
@${ECHO} " path to your shell environment:";
@${ECHO} "";
@${ECHO} " If using sh (or derivative),";
@${ECHO} " export SHADERS=.:${PREFIX}/share/bmrt/shaders";
@${ECHO} "";
@${ECHO} " If using csh (or derivative),";
@${ECHO} " setenv .:${PREFIX}/share/bmrt/shaders";
@${ECHO} "";
@${ECHO} " Also, copy ${PREFIX}/share/examples/bmrt/rendribrc.sample";
@${ECHO} " to your home directory as .rendribrc, where it may be modified.";
@${ECHO} "";
@${ECHO} "************************************************************************";
@${ECHO} "";
.include <bsd.port.post.mk>
|