summaryrefslogtreecommitdiff
path: root/lang/smalltalk/options.mk
blob: 20484101bf97971d1fddc1923cae9773b4001bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# $NetBSD: options.mk,v 1.2 2015/02/05 17:32:20 dholland Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.smalltalk
PKG_SUPPORTED_OPTIONS=	cairo curses expat gdbm gtk opengl readline sdl sqlite tk
PKG_SUGGESTED_OPTIONS=	cairo curses expat gdbm gtk opengl readline tk

PLIST_VARS+=		${PKG_SUPPORTED_OPTIONS}
PLIST_VARS+=		blox

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mcairo)
PLIST.cairo=		yes
.  include "../../graphics/cairo/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-cairo
.endif

.if !empty(PKG_OPTIONS:Mcurses)
PLIST.curses=		yes
# it only searches for ncurses but seems to be ok with at least netbsd's curses
FAKE_NCURSES=		yes
.include "../../mk/curses.buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-ncurses
.endif

.if !empty(PKG_OPTIONS:Mexpat)
PLIST.expat=		yes
.include "../../textproc/expat/buildlink3.mk"
.else
CONFIGURE_ENV+=		ac_cv_header_expat_h=no
.endif

# XXX: there are mysql, postgres modules too
.if !empty(PKG_OPTIONS:Mgdbm)
PLIST.gdbm=		yes
CONFIGURE_ARGS+=	--with-gdbm=${BUILDLINK_PREFIX.gdbm}/lib
.  include "../../databases/gdbm/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-gdbm
.endif

.if !empty(PKG_OPTIONS:Mgtk)
PLIST.gtk=		yes
PLIST.blox=		yes
.  include "../../devel/atk/buildlink3.mk"
.  include "../../devel/glib2/buildlink3.mk"
.  include "../../devel/pango/buildlink3.mk"
.  include "../../x11/gtk2/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-glib --without-gtk
.endif

.if !empty(PKG_OPTIONS:Mopengl)
PLIST.opengl=		yes
.  include "../../graphics/MesaLib/buildlink3.mk"
.  include "../../graphics/glu/buildlink3.mk"
.  include "../../graphics/glut/buildlink3.mk"
.  include "../../x11/libICE/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-opengl
CONFIGURE_ARGS+=	--disable-glut
.endif

.if !empty(PKG_OPTIONS:Mreadline)
PLIST.readline=		yes
CONFIGURE_ARGS+=	--with-readline=${BUILDLINK_PREFIX.readline}/lib
.  include "../../devel/readline/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-readline
.endif

.if !empty(PKG_OPTIONS:Msdl)
PLIST.sdl=		yes
.  include "../../devel/SDL/buildlink3.mk"
.  include "../../graphics/SDL_image/buildlink3.mk"
.  include "../../audio/SDL_mixer/buildlink3.mk"
.  include "../../audio/SDL_sound/buildlink3.mk"
.  include "../../devel/SDL_ttf/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-SDL
.endif

.if !empty(PKG_OPTIONS:Msqlite)
PLIST.sqlite=		yes
.  include "../../databases/sqlite3/buildlink3.mk"
.else
CONFIGURE_ENV+=		ac_cv_header_sqlite3_h=no
.endif

.if !empty(PKG_OPTIONS:Mtk)
PLIST.tk=		yes
PLIST.blox=		yes
CONFIGURE_ARGS+=	--with-tcl=${BUILDLINK_PREFIX.tcl}/lib
CONFIGURE_ARGS+=	--with-tk=${BUILDLINK_PREFIX.tk}/lib
.  include "../../lang/tcl/buildlink3.mk"
.  include "../../x11/tk/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-tcl
CONFIGURE_ARGS+=	--without-tk
.endif