blob: 6105d991241c32439a33537bc0f8ce8e4855e3ce (
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
|
PORTNAME= povray-meta
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= #
DISTFILES= #
MAINTAINER= ports@FreeBSD.org
COMMENT= Meta port for all povray ports
NO_BUILD= yes
NO_ARCH= yes
PLIST_FILES= bin/povray
POV_VERSIONS_ALL= 36 37
#By default only the following version will be installed and
#link bin/povray -> bin/povray${DEFAULT_VER} will be created.
DEFAULT_VER?= 36
#Additional version can be installed by defining WITH_POVRAY${ver}.
#To change version linked by default define WITH_DEFAULT${ver}.
#Please, note that only one of WITH_DEFAULT* can be set at once.
OPTIONS_MULTI= POVRAY
OPTIONS_SINGLE= DEFAULT
OPTIONS_DEFAULT= POVRAY${DEFAULT_VER} DEFAULT${DEFAULT_VER}
.for ver in ${POV_VERSIONS_ALL}
POVRAY${ver}_BIN= povray${ver}
POVRAY${ver}_PORT= graphics/povray${ver}
OPTIONS_MULTI_POVRAY+= POVRAY${ver}
OPTIONS_SINGLE_DEFAULT+= DEFAULT${ver}
POVRAY${ver}_DESC= Install graphics/povray${ver}
DEFAULT${ver}_DESC= Create link bin/povray -> bin/povray${ver}
.endfor
.include <bsd.port.options.mk>
.for ver in ${POV_VERSIONS_ALL}
. if ${PORT_OPTIONS:MDEFAULT${ver}}
. if !${PORT_OPTIONS:MPOVRAY${ver}}
PORT_OPTIONS+= POVRAY${ver}
. endif
POV_VERSION= ${ver}
. endif
. if ${PORT_OPTIONS:MPOVRAY${ver}}
RUN_DEPENDS+= ${LOCALBASE}/bin/${POVRAY${ver}_BIN}:${POVRAY${ver}_PORT}
. endif
.endfor
do-install:
${LN} -s ${POVRAY${POV_VERSION}_BIN} ${STAGEDIR}${PREFIX}/bin/povray
.include <bsd.port.mk>
|