Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / clisp / options.mk
blob2fcf6e2a7bfe048db83ccfb2c7def181f8f09c7a
1 # $NetBSD: options.mk,v 1.8 2011/04/20 18:44:56 hans Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.clisp
5 # this option is essential for some others to work:
6 PKG_SUPPORTED_OPTIONS+= ffcall
8 PKG_SUPPORTED_OPTIONS+= readline
10 PKG_SUPPORTED_OPTIONS+= gmalloc
12 PKG_SUGGESTED_OPTIONS+= ffcall readline
14 # CLISP doesn't work with jemalloc:
15 .if ${OPSYS} == "NetBSD"
16 PKG_SUGGESTED_OPTIONS+= gmalloc
17 .elif ${OPSYS} == "FreeBSD" && !empty(OS_VERSION:N[0-6].*)
18 PKG_SUGGESTED_OPTIONS+= gmalloc
19 .endif
21 .include "../../mk/bsd.prefs.mk"
22 .include "../../mk/bsd.options.mk"
24 PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
26 .for option in ${PKG_SUPPORTED_OPTIONS}
27 . if !empty(PKG_OPTIONS:M${option})
28 PLIST.${option}= yes
29 . endif
30 .endfor
32 .if !empty(PKG_OPTIONS:Mgmalloc)
33 CONFIGURE_ARGS+= --with-gmalloc
34 .endif
36 .if !empty(PKG_OPTIONS:Mffcall)
37 CONFIGURE_ARGS+= --with-dynamic-ffi
38 . include "../../devel/ffcall/buildlink3.mk"
39 .endif
41 .if !empty(PKG_OPTIONS:Mreadline)
42 USE_GNU_READLINE= YES
43 CONFIGURE_ARGS+= --with-readline
44 .include "../../devel/readline/buildlink3.mk"
45 .endif
48 # Options for those who wishes to build "static" CLISP:
50 #.if !empty(PKG_OPTIONS:Mwildcard)
51 #CONFIGURE_ARGS+= --with-module=wildcard
52 #.endif
54 #.if !empty(PKG_OPTIONS:Mpari)
55 #CONFIGURE_ARGS+= --with-module=pari
56 #. include "../../math/pari/buildlink3.mk"
57 #.endif
59 #.if !empty(PKG_OPTIONS:Mmit-clx)
60 #CONFIGURE_ARGS+= --with-module=clx/mit-clx
61 #. include "../../x11/libX11/buildlink3.mk"
62 #. include "../../x11/libXau/buildlink3.mk"
63 #.endif
65 #.if !empty(PKG_OPTIONS:Mnew-clx)
66 #CONFIGURE_ARGS+= --with-module=clx/new-clx
67 #. include "../../x11/libX11/buildlink3.mk"
68 #. include "../../x11/libXau/buildlink3.mk"
69 #.endif
71 #.if !empty(PKG_OPTIONS:Mbdb)
72 # it requires version 4, not anything older
73 #CONFIGURE_ARGS+= --with-module=berkeley-db
74 #BUILDLINK_TRANSFORM+= l:db:db46
75 #. include "../../databases/db46/buildlink3.mk"
76 #.endif
78 # .if !empty(PKG_OPTIONS:Mpgsql)
79 # CONFIGURE_ARGS+= --with-module=postgresql
80 # . include "../../mk/pgsql.buildlink3.mk"
81 # .endif
83 # .if !empty(PKG_OPTIONS:Mgdbm)
84 # CONFIGURE_ARGS+= --with-module=gdbm
85 # . include "../../databases/gdbm/buildlink3.mk"
86 # .endif
88 # .if !empty(PKG_OPTIONS:Mpcre)
89 # CONFIGURE_ARGS+= --with-module=pcre
90 # . include "../../devel/pcre/buildlink3.mk"
91 # .endif
93 # .if !empty(PKG_OPTIONS:Mrawsock)
94 # CONFIGURE_ARGS+= --with-module=rawsock
95 # .endif
97 # .if !empty(PKG_OPTIONS:Mfastcgi)
98 # CONFIGURE_ARGS+= --with-module=fastcgi
99 # . include "../../www/fcgi/buildlink3.mk"
100 # .endif
102 # .if !empty(PKG_OPTIONS:Mgtk2)
103 # CONFIGURE_ARGS+= --with-module=gtk2
104 # . include "../../devel/libglade/buildlink3.mk"
105 # . include "../../x11/gtk2/buildlink3.mk"
106 # .endif
108 # .if !empty(PKG_OPTIONS:Mzlib)
109 # CONFIGURE_ARGS+= --with-module=zlib
110 # BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2
111 # .include "../../devel/zlib/buildlink3.mk"
112 # .endif
114 ## ffcall is required for some other options to work:
115 # .if !empty(PKG_OPTIONS:Mpgsql) && empty(PKG_OPTIONS:Mffcall)
116 # PKG_OPTIONS+= ffcall
117 # .endif