summaryrefslogtreecommitdiff
path: root/devel/gps/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gps/options.mk')
-rw-r--r--devel/gps/options.mk48
1 files changed, 44 insertions, 4 deletions
diff --git a/devel/gps/options.mk b/devel/gps/options.mk
index 8964196b8b3..b6e41f15c15 100644
--- a/devel/gps/options.mk
+++ b/devel/gps/options.mk
@@ -1,19 +1,32 @@
-# $NetBSD: options.mk,v 1.1.1.1 2011/02/08 18:32:23 drochner Exp $
+# $NetBSD: options.mk,v 1.2 2011/10/14 17:22:06 marino Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gps
-PKG_SUPPORTED_OPTIONS= sqlite pgsql
-PKG_SUGGESTED_OPTIONS=
+PKG_SUPPORTED_OPTIONS= syslog python sqlite
+PKG_SUGGESTED_OPTIONS= syslog sqlite
+
+PLIST_VARS+= pysupport
.include "../../mk/bsd.options.mk"
######################
+## SYSLOG SUPPORT ##
+######################
+
+.if !empty(PKG_OPTIONS:Msyslog)
+CONFIGURE_ARGS+= --enable-syslog=yes
+.else
+CONFIGURE_ARGS+= --enable-syslog=no
+.endif
+
+
+######################
## SQLITE SUPPORT ##
######################
.if !empty(PKG_OPTIONS:Msqlite)
CONFIGURE_ARGS+= --with-sqlite=${PREFIX}
-.include "../../databases/sqlite/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
.endif
@@ -25,3 +38,30 @@ CONFIGURE_ARGS+= --with-sqlite=${PREFIX}
CONFIGURE_ARGS+= --with-postgresql=${PREFIX}
.include "../../databases/postgresql90-client/buildlink3.mk"
.endif
+
+
+##############################
+## PYTHON / PYGTK SUPPORT ##
+##############################
+
+#
+# Something is wrong with the pkgsrc versions of Python. Both
+# versions 2.6 and 2.7 will cause a core dump of gps because they
+# contain undefined symbols in their dynamically loaded libraries.
+# Since no version of Python < 3 can work with GPS, this option
+# has been removed from the list.
+#
+
+.if !empty(PKG_OPTIONS:Mpython)
+CONFIGURE_ARGS+= --with-python=${PREFIX}
+CONFIGURE_ARGS+= --enable-shared-python=no
+CONFIGURE_ARGS+= --enable-pygtk
+PLIST.pysupport= yes
+PYTHON_VERSIONS_ACCEPTED= 27 26
+.include "../../lang/python/pyversion.mk"
+.include "../../x11/py-gtk2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-python
+CONFIGURE_ARGS+= --disable-pygtk
+.endif
+