summaryrefslogtreecommitdiffstats
path: root/graphics/povray-meta/Makefile
blob: 40dfc782c2bed9b69ae6c3022d3667f2e5b8c77b (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
# $FreeBSD$

PORTNAME=	povray-meta
PORTVERSION=	0.1
CATEGORIES=	graphics
MASTER_SITES=	#
DISTFILES=	#

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Meta port for all povray ports

NO_BUILD=	yes
PLIST_FILES=	bin/povray

POV_VERSIONS_ALL=	31 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}}
PORT_OPTIONS+=	POVRAY${ver}
POV_VERSION=	${ver}
. endif
. if ${PORT_OPTIONS:MPOVRAY${ver}}
RUN_DEPENDS+=	${LOCALBASE}/bin/${POVRAY${ver}_BIN}:${PORTSDIR}/${POVRAY${ver}_PORT}
. endif
.endfor

do-install:
	${LN} -s ${POVRAY${POV_VERSION}_BIN} ${STAGEDIR}${PREFIX}/bin/povray

.include <bsd.port.mk>
OpenPOWER on IntegriCloud