aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/tk86/Makefile
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2016-03-01 18:37:34 +0800
committergahr <gahr@FreeBSD.org>2016-03-01 18:37:34 +0800
commit1aca723e8b2df53fb339945cdfeea6d39f0c994d (patch)
treecff42a84f130d0fb118b2b8b43d2ec6ab89da28d /x11-toolkits/tk86/Makefile
parent22d3da8f3a4ff5235e71899c04810e66a9871439 (diff)
downloadfreebsd-ports-gnome-1aca723e8b2df53fb339945cdfeea6d39f0c994d.tar.gz
freebsd-ports-gnome-1aca723e8b2df53fb339945cdfeea6d39f0c994d.tar.zst
freebsd-ports-gnome-1aca723e8b2df53fb339945cdfeea6d39f0c994d.zip
x11-toolkits/tk86: switch to OPTIONS helpers
Diffstat (limited to 'x11-toolkits/tk86/Makefile')
-rw-r--r--x11-toolkits/tk86/Makefile25
1 files changed, 4 insertions, 21 deletions
diff --git a/x11-toolkits/tk86/Makefile b/x11-toolkits/tk86/Makefile
index d96c205fdd6a..d32d171201ba 100644
--- a/x11-toolkits/tk86/Makefile
+++ b/x11-toolkits/tk86/Makefile
@@ -18,6 +18,7 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
OPTIONS_DEFINE= TKMAN DEMOS THREADS
OPTIONS_DEFAULT=THREADS
+OPTIONS_SUB= yes
TKMAN_DESC= Install Tk function manpages
DEMOS_DESC= Install demos
XSS_DESC= XScrnSaver support
@@ -52,27 +53,9 @@ MAKE_ENV= SHORT_TK_VER=${SHORT_TK_VER}
PLIST_SUB= TK_VER=${TK_VER} \
SHORT_TK_VER=${SHORT_TK_VER}
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDEMOS}
-INSTALL_TARGET+= install-demos
-PLIST_SUB+= DEMOS=""
-.else
-PLIST_SUB+= DEMOS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MTKMAN}
-INSTALL_TARGET+=install-doc
-PLIST_SUB+= MAN=""
-.else
-PLIST_SUB+= MAN="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MTHREADS}
-CONFIGURE_ARGS+=--enable-threads
-.else
-CONFIGURE_ARGS+=--disable-threads
-.endif
+DEMOS_INSTALL_TARGET= install-demos
+TKMAN_INSTALL_TARGET= install-doc
+THREADS_CONFIGURE_ENABLE= threads
post-patch:
${REINPLACE_CMD} -e \