1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/graphics/povray-meta/Makefile
Max Brazhnikov 21646392b0 - Support staging
- Use new LIB_DEPENDS syntax
- Use options helpers
- Convert to USES
- Minor changes/fixes
2013-10-23 13:08:41 +00:00

55 lines
1.4 KiB
Makefile

# $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>