1 # $NetBSD: options.mk,v 1.10 2009/08/05 17:10:37 drochner Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.xterm
4 PKG_SUPPORTED_OPTIONS= debug pcre freetype luit
5 PKG_SUGGESTED_OPTIONS= freetype luit
7 .include "../../mk/bsd.options.mk"
9 .if !empty(PKG_OPTIONS:Mdebug)
10 CONFIGURE_ARGS+= --enable-trace
11 CONFIGURE_ARGS+= --enable-warnings
12 .elif defined(PKG_DEVELOPER) && !empty(PKG_DEVELOPER:M[Yy][Ee][Ss])
13 CONFIGURE_ARGS+= --enable-warnings
16 .if !empty(PKG_OPTIONS:Mfreetype)
17 CONFIGURE_ARGS+= --enable-freetype
18 . include "../../x11/libXft/buildlink3.mk"
21 ### XXX The configure test checks for pcreposix_regcomp in libpcreposix.
22 ### However, there is no such function [insofar as I can tell].
23 ### Moreover, libc's regex(3) functions are weak-aliased to those
24 ### within libc's namespace, so we should have no problems.
26 .if !empty(PKG_OPTIONS:Mpcre)
27 CONFIGURE_ARGS+= --with-pcre
28 CONFIGURE_ENV+= ac_cv_lib_pcreposix_pcreposix_regcomp=yes
29 . include "../../devel/pcre/buildlink3.mk"
32 .if !empty(PKG_OPTIONS:Mluit)
33 DEPENDS+= luit-[0-9]*:../../x11/luit
34 CONFIGURE_ARGS+= --enable-luit --enable-mini-luit
36 CONFIGURE_ARGS+= --disable-luit --disable-mini-luit