diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-07 13:36:30 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-07 13:36:30 +0800 |
commit | 96d3269942c97c645095f2d4a2d3e77745a83913 (patch) | |
tree | a895f0384450e1bd1dedbdbb98b52257a47b133e /misc | |
parent | 98c8021a6fe52f0e3a0b2a717588ddf37084540a (diff) | |
download | freebsd-ports-gnome-96d3269942c97c645095f2d4a2d3e77745a83913.tar.gz freebsd-ports-gnome-96d3269942c97c645095f2d4a2d3e77745a83913.tar.zst freebsd-ports-gnome-96d3269942c97c645095f2d4a2d3e77745a83913.zip |
Convert to new options framework
Diffstat (limited to 'misc')
-rw-r--r-- | misc/gnome2-reference/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/misc/gnome2-reference/Makefile b/misc/gnome2-reference/Makefile index b44a2c18f9f0..898c90fa1b1f 100644 --- a/misc/gnome2-reference/Makefile +++ b/misc/gnome2-reference/Makefile @@ -54,17 +54,21 @@ REF_LIST= accessibility/at-spi-reference \ NO_BUILD= yes +.MAKE.FreeBSD_UL= yes + REF_LIST_INC= ${.CURDIR}/Makefile.inc .include "${REF_LIST_INC}" -.include <bsd.port.pre.mk> - .for ref in ${_PORT_REF_LIST:C/^([^:]+).*/\1/} -OPTIONS+= ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U} "Install ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//} programing reference " on +OPTIONS_DEFINE+= ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U} +OPTIONS_DEFAULT+= ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U} +${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U}_DESC= Install ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//} programing reference .endfor +.include <bsd.port.options.mk> + .for ref in ${_PORT_REF_LIST} -.if !defined(WITHOUT_${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U:C/^([^:]+).*/\1/}) +.if ${PORT_OPTIONS:M${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U:C/^([^:]+).*/\1/}} RUN_DEPENDS+= ${ref:C|^[^:]+:([^:]+).*|\1|:C|^[^/]+/([^/]+).*|\1|}>0:${PORTSDIR}/${ref:C/^([^:]+).*/\1/} .endif .endfor @@ -78,4 +82,4 @@ create-ref-list: (cd ${PORTSDIR}/${port} && ${ECHO_CMD} "${port}:`${MAKE} -V PORTNAME` \\" >> ${REF_LIST_INC}) .endfor -.include <bsd.port.post.mk> +.include <bsd.port.mk> |