aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-01-17 22:25:54 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-01-17 22:25:54 +0800
commitcc6f451148df3baaf039bf44d79df7fa71d91d41 (patch)
tree038e98f007ba74b2c8892a98561df66509d190f8
parent05149ed1f1d80121dfa91087f6bbed2774e09bc2 (diff)
downloadfreebsd-ports-gnome-cc6f451148df3baaf039bf44d79df7fa71d91d41.tar.gz
freebsd-ports-gnome-cc6f451148df3baaf039bf44d79df7fa71d91d41.tar.zst
freebsd-ports-gnome-cc6f451148df3baaf039bf44d79df7fa71d91d41.zip
Use new dependency macros based on options.
Submitted by: bapt
-rw-r--r--x11/xterm/Makefile55
1 files changed, 12 insertions, 43 deletions
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 <bsd.port.options.mk>
-
-.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 <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.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 <bsd.port.post.mk>
+.include <bsd.port.mk>