update Sat May 15 06:37:01 PDT 2010
[pkgsrc.git] / x11 / xterm / options.mk
1 # $NetBSD: options.mk,v 1.10 2009/08/05 17:10:37 drochner Exp $
2
3 PKG_OPTIONS_VAR=                PKG_OPTIONS.xterm
4 PKG_SUPPORTED_OPTIONS=          debug pcre freetype luit
5 PKG_SUGGESTED_OPTIONS=          freetype luit
6
7 .include "../../mk/bsd.options.mk"
8
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
14 .endif
15
16 .if !empty(PKG_OPTIONS:Mfreetype)
17 CONFIGURE_ARGS+= --enable-freetype
18 .  include "../../x11/libXft/buildlink3.mk"
19 .endif
20 ###
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.
25 ###
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"
30 .endif
31
32 .if !empty(PKG_OPTIONS:Mluit)
33 DEPENDS+=       luit-[0-9]*:../../x11/luit
34 CONFIGURE_ARGS+= --enable-luit --enable-mini-luit
35 .else
36 CONFIGURE_ARGS+= --disable-luit --disable-mini-luit
37 .endif