diff options
author | dinoex <dinoex@FreeBSD.org> | 2012-06-11 12:05:52 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2012-06-11 12:05:52 +0800 |
commit | fbcb7b84f94855e1697a41b5a2bd1efacfdaf33e (patch) | |
tree | 2bdc21a734b3f2e422334ac24bb603035792da8a /x11-toolkits | |
parent | 3f30bcbbf99e4b98d4e607b5eb5d2ecd188127b2 (diff) | |
download | freebsd-ports-graphics-fbcb7b84f94855e1697a41b5a2bd1efacfdaf33e.tar.gz freebsd-ports-graphics-fbcb7b84f94855e1697a41b5a2bd1efacfdaf33e.tar.zst freebsd-ports-graphics-fbcb7b84f94855e1697a41b5a2bd1efacfdaf33e.zip |
- use OPTIONS_DEFINE
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/tk82/Makefile | 11 | ||||
-rw-r--r-- | x11-toolkits/tk83/Makefile | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/x11-toolkits/tk82/Makefile b/x11-toolkits/tk82/Makefile index 22f33d30cc8..e38f5f70f8b 100644 --- a/x11-toolkits/tk82/Makefile +++ b/x11-toolkits/tk82/Makefile @@ -35,11 +35,12 @@ PLIST_SUB= TK_VER=${TK_VER} SHORT_TK_VER=${SHORT_TK_VER} TCL82_PORT?= lang/tcl82 MANCOMPRESSED= no -OPTIONS= TK82_MAN "Install tk 8.2 manpages" off +OPTIONS_DEFINE= TK82_MAN +TK82_MAN_DESC= Install tk 8.2 manpages -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK82_MAN) +.if !defined(NO_INSTALL_MANPAGES) && ${PORT_OPTIONS:MTK82_MAN} MAN1= wish.1 MAN3= 3DBorder.3 BindTable.3 CanvPsY.3 CanvTkwin.3 CanvTxtInfo.3 \ @@ -321,11 +322,11 @@ post-configure: post-install: ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/tk${TK_VER}/ -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK82_MAN) +.if !defined(NO_INSTALL_MANPAGES) && ${PORT_OPTIONS:MTK82_MAN} @cd ${WRKSRC} && ${MAKE} -f Makefile install-doc .endif test: cd ${WRKSRC}; make test -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/x11-toolkits/tk83/Makefile b/x11-toolkits/tk83/Makefile index 79cc4dc1eb1..a774d489866 100644 --- a/x11-toolkits/tk83/Makefile +++ b/x11-toolkits/tk83/Makefile @@ -36,11 +36,12 @@ NOPRECIOUSMAKEVARS= Too many _MLINKS for README.html TCL83_PORT?= lang/tcl83 MANCOMPRESSED= no -OPTIONS= TK83_MAN "Install tk 8.3 manpages" off +OPTIONS_DEFINE= TK83_MAN +TK82_MAN_DESC= Install tk 8.3 manpages -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK83_MAN) +.if !defined(NO_INSTALL_MANPAGES) && ${PORT_OPTIONS:MTK83_MAN} MAN1= wish.1 MAN3= 3DBorder.3 AddOption.3 BindTable.3 CanvPsY.3 CanvTkwin.3 \ @@ -338,11 +339,11 @@ post-configure: post-install: ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/tk${TK_VER}/ -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK83_MAN) +.if !defined(NO_INSTALL_MANPAGES) && ${PORT_OPTIONS:MTK83_MAN} @cd ${WRKSRC} && ${MAKE} -f Makefile install-doc .endif test: cd ${WRKSRC}; make test -.include <bsd.port.post.mk> +.include <bsd.port.mk> |