2016-09-03 13:58:01 +02:00
|
|
|
# $NetBSD: options.mk,v 1.5 2016/09/03 11:58:02 adam Exp $
|
2012-08-23 00:05:05 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.tk
|
2012-12-12 16:30:52 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= threads debug xft2
|
2013-05-31 22:15:04 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= threads
|
2012-08-23 00:05:05 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2013-05-31 22:15:04 +02:00
|
|
|
|
2014-10-31 22:11:18 +01:00
|
|
|
PLIST_VARS+= aqua
|
|
|
|
|
2013-05-31 22:15:04 +02:00
|
|
|
.if ${OPSYS} != "Darwin"
|
|
|
|
PKG_SUGGESTED_OPTIONS+= xft2
|
2014-10-31 22:11:18 +01:00
|
|
|
.else
|
|
|
|
PKG_SUPPORTED_OPTIONS+= aqua
|
2013-05-31 22:15:04 +02:00
|
|
|
.endif
|
|
|
|
|
2012-08-23 00:05:05 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2014-10-31 22:11:18 +01:00
|
|
|
# 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
|
|
|
|
|
2012-08-23 00:05:05 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
CONFIGURE_ARGS+= --enable-symbols
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mthreads)
|
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
2016-09-03 13:58:01 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2012-08-23 00:05:05 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
.endif
|
2012-12-12 16:30:52 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mxft2)
|
|
|
|
CONFIGURE_ARGS+= --enable-xft
|
|
|
|
USE_TOOLS+= pkg-config
|
2016-09-03 13:58:01 +02:00
|
|
|
.include "../../x11/libXft/buildlink3.mk"
|
2012-12-12 16:30:52 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-xft
|
|
|
|
.endif
|