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
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})
32 .if
!empty
(PKG_OPTIONS
:Mgmalloc
)
33 CONFIGURE_ARGS
+= --with-gmalloc
36 .if
!empty
(PKG_OPTIONS
:Mffcall
)
37 CONFIGURE_ARGS
+= --with-dynamic-ffi
38 .
include "../../devel/ffcall/buildlink3.mk"
41 .if
!empty
(PKG_OPTIONS
:Mreadline
)
43 CONFIGURE_ARGS
+= --with-readline
44 .
include "../../devel/readline/buildlink3.mk"
48 # Options for those who wishes to build "static" CLISP:
50 #.if !empty(PKG_OPTIONS:Mwildcard)
51 #CONFIGURE_ARGS+= --with-module=wildcard
54 #.if !empty(PKG_OPTIONS:Mpari)
55 #CONFIGURE_ARGS+= --with-module=pari
56 #. include "../../math/pari/buildlink3.mk"
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"
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"
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"
78 # .if !empty(PKG_OPTIONS:Mpgsql)
79 # CONFIGURE_ARGS+= --with-module=postgresql
80 # . include "../../mk/pgsql.buildlink3.mk"
83 # .if !empty(PKG_OPTIONS:Mgdbm)
84 # CONFIGURE_ARGS+= --with-module=gdbm
85 # . include "../../databases/gdbm/buildlink3.mk"
88 # .if !empty(PKG_OPTIONS:Mpcre)
89 # CONFIGURE_ARGS+= --with-module=pcre
90 # . include "../../devel/pcre/buildlink3.mk"
93 # .if !empty(PKG_OPTIONS:Mrawsock)
94 # CONFIGURE_ARGS+= --with-module=rawsock
97 # .if !empty(PKG_OPTIONS:Mfastcgi)
98 # CONFIGURE_ARGS+= --with-module=fastcgi
99 # . include "../../www/fcgi/buildlink3.mk"
102 # .if !empty(PKG_OPTIONS:Mgtk2)
103 # CONFIGURE_ARGS+= --with-module=gtk2
104 # . include "../../devel/libglade/buildlink3.mk"
105 # . include "../../x11/gtk2/buildlink3.mk"
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"
114 ## ffcall is required for some other options to work:
115 # .if !empty(PKG_OPTIONS:Mpgsql) && empty(PKG_OPTIONS:Mffcall)
116 # PKG_OPTIONS+= ffcall