Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / devel / gps / options.mk
blobb3384b11ef5a4ab531f6170199f1a24224cba814
1 # $NetBSD: options.mk,v 1.3 2012/10/04 07:05:54 wiz Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.gps
4 PKG_SUPPORTED_OPTIONS= syslog python sqlite
5 PKG_SUGGESTED_OPTIONS= syslog sqlite
7 PLIST_VARS+= pysupport
9 .include "../../mk/bsd.options.mk"
12 ######################
13 ## SYSLOG SUPPORT ##
14 ######################
16 .if !empty(PKG_OPTIONS:Msyslog)
17 CONFIGURE_ARGS+= --enable-syslog=yes
18 .else
19 CONFIGURE_ARGS+= --enable-syslog=no
20 .endif
23 ######################
24 ## SQLITE SUPPORT ##
25 ######################
27 .if !empty(PKG_OPTIONS:Msqlite)
28 CONFIGURE_ARGS+= --with-sqlite=${PREFIX}
29 .include "../../databases/sqlite3/buildlink3.mk"
30 .endif
33 ##########################
34 ## POSTGRESQL SUPPORT ##
35 ##########################
37 .if !empty(PKG_OPTIONS:Mpgsql)
38 CONFIGURE_ARGS+= --with-postgresql=${PREFIX}
39 .include "../../databases/postgresql90-client/buildlink3.mk"
40 .endif
43 ##############################
44 ## PYTHON / PYGTK SUPPORT ##
45 ##############################
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.
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 .include "../../lang/python/pyversion.mk"
61 .include "../../x11/py-gtk2/buildlink3.mk"
62 .else
63 CONFIGURE_ARGS+= --without-python
64 CONFIGURE_ARGS+= --disable-pygtk
65 .endif