Fixup fromcvs/togit conversion
[pkgsrcv2.git] / devel / gps / options.mk
1 # $NetBSD$
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.gps
4 PKG_SUPPORTED_OPTIONS=  syslog python sqlite 
5 PKG_SUGGESTED_OPTIONS=  syslog sqlite
6
7 PLIST_VARS+=    pysupport
8
9 .include "../../mk/bsd.options.mk"
10
11
12 ######################
13 ##  SYSLOG SUPPORT  ##
14 ######################
15
16 .if !empty(PKG_OPTIONS:Msyslog)
17 CONFIGURE_ARGS+= --enable-syslog=yes
18 .else
19 CONFIGURE_ARGS+= --enable-syslog=no
20 .endif
21
22
23 ######################
24 ##  SQLITE SUPPORT  ##
25 ######################
26
27 .if !empty(PKG_OPTIONS:Msqlite)
28 CONFIGURE_ARGS+= --with-sqlite=${PREFIX}
29 .include "../../databases/sqlite3/buildlink3.mk"
30 .endif
31
32
33 ##########################
34 ##  POSTGRESQL SUPPORT  ##
35 ##########################
36
37 .if !empty(PKG_OPTIONS:Mpgsql)
38 CONFIGURE_ARGS+= --with-postgresql=${PREFIX}
39 .include "../../databases/postgresql90-client/buildlink3.mk"
40 .endif
41
42
43 ##############################
44 ##  PYTHON / PYGTK SUPPORT  ##
45 ##############################
46
47 #
48 # Something is wrong with the pkgsrc versions of Python.  Both
49 # versions 2.6 and 2.7 will cause a core dump of gps because they
50 # contain undefined symbols in their dynamically loaded libraries.
51 # Since no version of Python < 3 can work with GPS, this option
52 # has been removed from the list.
53 #
54
55 .if !empty(PKG_OPTIONS:Mpython)
56 CONFIGURE_ARGS+= --with-python=${PREFIX}
57 CONFIGURE_ARGS+= --enable-shared-python=no
58 CONFIGURE_ARGS+= --enable-pygtk
59 PLIST.pysupport= yes
60 PYTHON_VERSIONS_ACCEPTED= 27 26
61 .include "../../lang/python/pyversion.mk"
62 .include "../../x11/py-gtk2/buildlink3.mk"
63 .else
64 CONFIGURE_ARGS+= --without-python
65 CONFIGURE_ARGS+= --disable-pygtk
66 .endif
67