From cc6f451148df3baaf039bf44d79df7fa71d91d41 Mon Sep 17 00:00:00 2001 From: ehaupt Date: Fri, 17 Jan 2014 14:25:54 +0000 Subject: Use new dependency macros based on options. Submitted by: bapt --- x11/xterm/Makefile | 55 ++++++++++++------------------------------------------ 1 file changed, 12 insertions(+), 43 deletions(-) (limited to 'x11') diff --git a/x11/xterm/Makefile b/x11/xterm/Makefile index bcd76bcb8301..982699a6508f 100644 --- a/x11/xterm/Makefile +++ b/x11/xterm/Makefile @@ -37,46 +37,18 @@ WCHAR_DESC= Enable wide-character support OPTIONS_DEFAULT=WCHAR LUIT 256COLOR -.include - -.if ${PORT_OPTIONS:M256COLOR} -CONFIGURE_ARGS+= --enable-256-color -.endif - -.if ${PORT_OPTIONS:MLUIT} -CONFIGURE_ARGS+= --enable-luit -BUILD_DEPENDS= luit:${PORTSDIR}/x11/luit -.endif - -.if ${PORT_OPTIONS:MWCHAR} -CONFIGURE_ARGS+= --enable-wide-chars -.endif - -.if ${PORT_OPTIONS:MDECTERM} -CONFIGURE_ARGS+= --enable-dec-locator -.endif +256COLOR_CONFIGURE_ENABLE= 256-color +LUIT_BUILD_DEPENDS= libluit.so:${PORTSDIR}/x11/luit +LUIT_CONFIGURE_ENABLE= luit +WCHAR_CONFIGURE_ENABLE= wide-chars +DECTERM_CONFIGURE_ENABLE= dec-locator +PCRE_CONFIGURE_WITH= pcre +PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre +DABBREV_CONFIGURE_ENABLE= dabbrev +SIXEL_CONFIGURE_ENABLE= sixel-graphics +GNOME_USES= desktop-file-utils -.if ${PORT_OPTIONS:MPCRE} -CONFIGURE_ARGS+= --with-pcre -LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre -.endif - -.if ${PORT_OPTIONS:MDABBREV} -CONFIGURE_ARGS+= --enable-dabbrev -.endif - -.if ${PORT_OPTIONS:MSIXEL} -CONFIGURE_ARGS+= --enable-sixel-graphics -.endif - -.if ${PORT_OPTIONS:MGNOME} -USE_GNOME= desktopfileutils -PLIST_SUB+= GNOME="" -.else -PLIST_SUB+= GNOME="@comment " -.endif - -.include +.include .if ${OSVERSION} < 900004 LIB_DEPENDS+= utempter:${PORTSDIR}/sysutils/libutempter @@ -91,12 +63,9 @@ post-install: @${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/bin/${f} .endfor @${INSTALL_DATA} ${WRKSRC}/xterm.desktop ${STAGEDIR}${PREFIX}/share/applications/ -.if ${PORT_OPTIONS:MGNOME} - @-update-desktop-database -.endif .if ${PORT_OPTIONS:MWCHAR} @${CAT} ${PKGMESSAGE} .endif -.include +.include -- cgit