pkgsrc/x11/tk/options.mk
adam d719101c50 Changes 8.6.2:
This is a bug-fix release.
2014-10-31 21:11:18 +00:00

46 lines
1.1 KiB
Makefile

# $NetBSD: options.mk,v 1.4 2014/10/31 21:11:18 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.tk
PKG_SUPPORTED_OPTIONS= threads debug xft2
PKG_SUGGESTED_OPTIONS= threads
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= aqua
.if ${OPSYS} != "Darwin"
PKG_SUGGESTED_OPTIONS+= xft2
.else
PKG_SUPPORTED_OPTIONS+= aqua
.endif
.include "../../mk/bsd.options.mk"
# IMPORTANT: This option should be enabled on a system without X11.
# Otherwise some X11 headers are installed and will break X11 compatibility.
.if !empty(PKG_OPTIONS:Maqua)
CONFIGURE_ARGS+= --enable-aqua
PLIST.aqua= yes
.else
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-symbols
.endif
.if !empty(PKG_OPTIONS:Mthreads)
CONFIGURE_ARGS+= --enable-threads
. include "../../mk/pthread.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-threads
.endif
.if !empty(PKG_OPTIONS:Mxft2)
CONFIGURE_ARGS+= --enable-xft
USE_TOOLS+= pkg-config
. include "../../x11/libXft/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-xft
.endif