pkgsrc-wip/dmenu-git/options.mk

24 lines
630 B
Makefile

# $NetBSD: options.mk,v 1.3 2015/11/11 16:13:12 leot Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dmenu
PKG_SUPPORTED_OPTIONS= xinerama
PKG_SUGGESTED_OPTIONS= xinerama
.include "../../mk/bsd.options.mk"
#
# Xinerama support
#
# If we don't want the Xinerama support we delete XINERAMALIBS and
# XINERAMAFLAGS lines, otherwise the Xinerama support is the default.
#
.if !empty(PKG_OPTIONS:Mxinerama)
. include "../../x11/libXinerama/buildlink3.mk"
.else
SUBST_CLASSES+= options
SUBST_STAGE.options= pre-patch
SUBST_MESSAGE.options= Toggle the Xinerama support
SUBST_FILES.options= config.mk
SUBST_SED.options+= -e '/^XINERAMA/d'
.endif