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
9 .
include "../../mk/bsd.options.mk"
12 ######################
14 ######################
16 .if
!empty
(PKG_OPTIONS
:Msyslog
)
17 CONFIGURE_ARGS
+= --enable-syslog
=yes
19 CONFIGURE_ARGS
+= --enable-syslog
=no
23 ######################
25 ######################
27 .if
!empty
(PKG_OPTIONS
:Msqlite
)
28 CONFIGURE_ARGS
+= --with-sqlite
=${PREFIX}
29 .
include "../../databases/sqlite3/buildlink3.mk"
33 ##########################
34 ## POSTGRESQL SUPPORT ##
35 ##########################
37 .if
!empty
(PKG_OPTIONS
:Mpgsql
)
38 CONFIGURE_ARGS
+= --with-postgresql
=${PREFIX}
39 .
include "../../databases/postgresql90-client/buildlink3.mk"
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
60 .
include "../../lang/python/pyversion.mk"
61 .
include "../../x11/py-gtk2/buildlink3.mk"
63 CONFIGURE_ARGS
+= --without-python
64 CONFIGURE_ARGS
+= --disable-pygtk