pkgsrc/editors/elvis/options.mk
2015-12-29 04:22:50 +00:00

21 lines
631 B
Makefile

# $NetBSD: options.mk,v 1.4 2015/12/29 04:22:50 dholland Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.elvis
PKG_SUPPORTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mx11)
BUILDLINK_DEPMETHOD.libXt= build
. include "../../x11/libXft/buildlink3.mk"
. include "../../graphics/freetype2/buildlink3.mk"
. include "../../x11/libXpm/buildlink3.mk"
. include "../../x11/libXt/buildlink3.mk"
CONFIGURE_ARGS+= --with-x
CONFIGURE_ARGS+= --with-xft
CONFIGURE_ARGS+= --x-includes=${X11BASE}/include
CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib
USE_TOOLS+= pkg-config
.else
CONFIGURE_ARGS+= --without-x
.endif