summaryrefslogtreecommitdiffstats
path: root/comms/anyremote/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'comms/anyremote/Makefile')
-rw-r--r--comms/anyremote/Makefile19
1 files changed, 5 insertions, 14 deletions
diff --git a/comms/anyremote/Makefile b/comms/anyremote/Makefile
index 1cacd99..62a1993 100644
--- a/comms/anyremote/Makefile
+++ b/comms/anyremote/Makefile
@@ -23,27 +23,18 @@ LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
OPTIONS_DEFINE= DOCS DBUS X11
OPTIONS_DEFAULT= DBUS X11
-.include <bsd.port.options.mk>
+DBUS_CONFIGURE_ENABLE=dbus
+DBUS_LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
-.if ! ${PORT_OPTIONS:MDBUS}
-CONFIGURE_ARGS+=--disable-dbus
-.else
-LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
-.endif
-
-.if ! ${PORT_OPTIONS:MX11}
-CONFIGURE_ARGS+=--disable-xtest
-.else
-USE_XORG= x11 xtst
-.endif
+X11_CONFIGURE_ENABLE=xtest
+X11_USE= XORG=x11,xtst
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib"
post-patch:
@${REINPLACE_CMD} -e 's|(datadir)/man/man1|(mandir)/man1|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|xtext|xtest|g' ${WRKSRC}/configure
-.if ${PORT_OPTIONS:MDOCS}
+post-patch-DOCS-on:
@${REINPLACE_CMD} -e '/doc\/${PORTNAME}/d' ${WRKSRC}/Makefile.in
-.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud