aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2012-08-03 17:20:39 +0800
committermm <mm@FreeBSD.org>2012-08-03 17:20:39 +0800
commit017668bebf98d9e1ff971596cb798ccd5292816c (patch)
treea36b85d301d59c22c9abae2f3c1ad5843d890721 /x11-toolkits
parentb06433da21b36da7d3f920cd3fe4ac70c5a23a78 (diff)
downloadfreebsd-ports-gnome-017668bebf98d9e1ff971596cb798ccd5292816c.tar.gz
freebsd-ports-gnome-017668bebf98d9e1ff971596cb798ccd5292816c.tar.zst
freebsd-ports-gnome-017668bebf98d9e1ff971596cb798ccd5292816c.zip
Fix OPTIONS knobs to match new options framework
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/tk85/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/x11-toolkits/tk85/Makefile b/x11-toolkits/tk85/Makefile
index 151f0a3b8ae4..2c693a541d8c 100644
--- a/x11-toolkits/tk85/Makefile
+++ b/x11-toolkits/tk85/Makefile
@@ -57,14 +57,14 @@ SUB_LIST+= THREADS_SUFFIX="${THREADS_SUFFIX}" \
DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER}
-.if !defined(WITHOUT_XFT)
+.if ${PORT_OPTIONS:MXFT}
CONFIGURE_ARGS+= --enable-xft
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
.else
CONFIGURE_ARGS+= --disable-xft
.endif
-.if !defined(NO_INSTALL_MANPAGES)
+.if ${PORT_OPTIONS:MDOCS}
MAN1= wish${TCL_VER}${THREADS_SUFFIX}.1
.endif
@@ -80,14 +80,14 @@ CONFIGURE_ARGS+= --disable-threads --with-tcl=${LOCALBASE}/lib/tcl${TK_VER} \
SUB_LIST+= TK_PROVIDE=""
-.if defined(WITH_DEMOS)
+.if ${PORT_OPTIONS:MDEMOS}
INSTALL_TARGET+= install install-demos
PLIST_SUB+= DEMOS=""
.else
PLIST_SUB+= DEMOS="@comment "
.endif
-.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK85_MAN)
+.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MTK85_MAN}
MAN3= 3DBorder.3 AddOption.3 BindTable.3 CanvPsY.3 CanvTkwin.3 \
CanvTxtInfo.3 Clipboard.3 ClrSelect.3 ConfigWidg.3 ConfigWind.3 \
@@ -403,7 +403,7 @@ MLINKS= 3DBorder.3 Tk_Alloc3DBorderFromObj.3 \
text.n tk_textCut.n \
text.n tk_textPaste.n
-.endif #!defined(NO_INSTALL_MANPAGES) && defined(WITH_TK85_MAN)
+.endif # ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MTK85_MAN}
.endif # defined(BUILDING_TK_THREADS)
@@ -453,18 +453,18 @@ post-install:
${INSTALL_DATA} ${WRKDIR}/pkgIndex.tcl ${PREFIX}/lib/tk${TK_VER}${THREADS_SUFFIX}/
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR}
-.if !defined(NO_INSTALL_MANPAGES)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/../doc/wish.1 ${MANPREFIX}/man/man1/wish${TCL_VER}${THREADS_SUFFIX}.1
-.if !defined(BUILDING_TK_THREADS) && defined(WITH_TK85_MAN)
+.if !defined(BUILDING_TK_THREADS) && ${PORT_OPTIONS:MTK85_MAN}
. for mp in ${MAN3} ${MANN}
@${REINPLACE_CMD} -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \
${WRKSRC}/../doc/${mp}
. endfor
@cd ${WRKSRC} && ${MAKE} -f Makefile install-doc ${MAKE_ENV}
-.endif # !defined(BUILDING_TK_THREADS) && defined(WITH_TK85_MAN)
+.endif # !defined(BUILDING_TK_THREADS) && ${PORT_OPTIONS:MTK85_MAN}
-.endif # !defined(NO_INSTALL_MANPAGES)
+.endif # ${PORT_OPTIONS:MDOCS}
regression-test: build
cd ${WRKSRC}; ${MAKE} test