aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/povray-meta
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2012-07-27 19:03:38 +0800
committermakc <makc@FreeBSD.org>2012-07-27 19:03:38 +0800
commit7e9888a561c1f2a53cfeca5bf54f5278294df386 (patch)
tree167ee4bd8c4cd737246cf4e2c40f36e42042084e /graphics/povray-meta
parent7c887ca2a204b4cd88ce46806edb8ea718e69d9e (diff)
downloadfreebsd-ports-gnome-7e9888a561c1f2a53cfeca5bf54f5278294df386.tar.gz
freebsd-ports-gnome-7e9888a561c1f2a53cfeca5bf54f5278294df386.tar.zst
freebsd-ports-gnome-7e9888a561c1f2a53cfeca5bf54f5278294df386.zip
- Convert my ports to new options framework
- use CONFLICTS_INSTALL - other minor changes
Diffstat (limited to 'graphics/povray-meta')
-rw-r--r--graphics/povray-meta/Makefile30
1 files changed, 13 insertions, 17 deletions
diff --git a/graphics/povray-meta/Makefile b/graphics/povray-meta/Makefile
index 9890f20d96d9..89fae748d4d4 100644
--- a/graphics/povray-meta/Makefile
+++ b/graphics/povray-meta/Makefile
@@ -25,38 +25,34 @@ DEFAULT_VER?= 36
#To change version linked by default define WITH_DEFAULT${ver}.
#Please, note that only one of WITH_DEFAULT* can be set at once.
-OPT_POVRAY${DEFAULT_VER}= on
-OPT_DEFAULT${DEFAULT_VER}= on
+OPTIONS_MULTI= POVRAY
+OPTIONS_SINGLE= DEFAULT
+
+OPTIONS_DEFAULT= POVRAY${DEFAULT_VER} DEFAULT${DEFAULT_VER}
.for ver in ${POV_VERSIONS_ALL}
POVRAY${ver}_BIN= ${LOCALBASE}/bin/povray${ver}
POVRAY${ver}_PORT= graphics/povray${ver}
-OPT_POVRAY${ver}?= off
-OPT_DEFAULT${ver}?= off
-OPTIONS+= POVRAY${ver} "Install graphics/povray${ver}" ${OPT_POVRAY${ver}}
-OPTIONS+= DEFAULT${ver} "Create link bin/povray -> bin/povray${ver}" ${OPT_DEFAULT${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 defined(WITH_DEFAULT${ver})
-WITH_POVRAY${ver}= yes
-. if defined(POV_VERSION)
-IGNORE= can't be build: only one default povray can be chosen
-. else
+. if ${PORT_OPTIONS:MDEFAULT${ver}}
+PORT_OPTIONS+= POVRAY${ver}
POV_VERSION= ${ver}
-. endif
. endif
-. if defined(WITH_POVRAY${ver})
+. if ${PORT_OPTIONS:MPOVRAY${ver}}
RUN_DEPENDS+= ${POVRAY${ver}_BIN}:${PORTSDIR}/${POVRAY${ver}_PORT}
. endif
.endfor
-.if !defined(POV_VERSION)
-IGNORE= can't be build: one default povray must be chosen
-.endif
-
do-install:
${LN} -s ${POVRAY${POV_VERSION}_BIN} ${PREFIX}/bin/povray