version 1.4, 2013/04/08 11:17:11 |
version 1.5, 2013/07/09 10:16:02 |
|
|
# $NetBSD$ |
# $NetBSD$ |
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gps |
PKG_OPTIONS_VAR= PKG_OPTIONS.gps |
PKG_SUPPORTED_OPTIONS= syslog python sqlite |
PKG_SUPPORTED_OPTIONS= syslog sqlite readline python pgsql |
PKG_SUGGESTED_OPTIONS= syslog sqlite |
PKG_SUGGESTED_OPTIONS= syslog sqlite readline python |
|
|
PLIST_VARS+= pysupport |
|
|
|
.include "../../mk/bsd.options.mk" |
.include "../../mk/bsd.options.mk" |
|
|
|
|
|
################ |
|
## READLINE ## |
|
################ |
|
|
|
.if !empty(PKG_OPTIONS:Mreadline) |
|
CONFIGURE_ARGS+= --enable-gpl |
|
.include "../../devel/readline/buildlink3.mk" |
|
.else |
|
CONFIGURE_ARGS+= --disable-readline |
|
.endif |
|
|
|
|
###################### |
###################### |
## SYSLOG SUPPORT ## |
## SYSLOG SUPPORT ## |
###################### |
###################### |
|
|
.if !empty(PKG_OPTIONS:Msyslog) |
.if empty(PKG_OPTIONS:Msyslog) |
CONFIGURE_ARGS+= --enable-syslog=yes |
CONFIGURE_ARGS+= --disable-syslog |
.else |
|
CONFIGURE_ARGS+= --enable-syslog=no |
|
.endif |
.endif |
|
|
|
|
Line 25 CONFIGURE_ARGS+= --enable-syslog=no |
|
Line 33 CONFIGURE_ARGS+= --enable-syslog=no |
|
###################### |
###################### |
|
|
.if !empty(PKG_OPTIONS:Msqlite) |
.if !empty(PKG_OPTIONS:Msqlite) |
CONFIGURE_ARGS+= --with-sqlite=${PREFIX} |
CONFIGURE_ARGS+= --with-sqlite=embedded |
.include "../../databases/sqlite3/buildlink3.mk" |
.else |
|
CONFIGURE_ARGS+= --without-sqlite |
.endif |
.endif |
|
|
|
|
Line 36 CONFIGURE_ARGS+= --with-sqlite=${PREFIX} |
|
Line 45 CONFIGURE_ARGS+= --with-sqlite=${PREFIX} |
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql) |
.if !empty(PKG_OPTIONS:Mpgsql) |
CONFIGURE_ARGS+= --with-postgresql=${PREFIX} |
CONFIGURE_ARGS+= --with-postgresql=${PREFIX} |
.include "../../databases/postgresql90-client/buildlink3.mk" |
.include "../../mk/pgsql.buildlink3.mk" |
.endif |
.endif |
|
|
|
|
Line 44 CONFIGURE_ARGS+= --with-postgresql=${PRE |
|
Line 53 CONFIGURE_ARGS+= --with-postgresql=${PRE |
|
## PYTHON / PYGTK SUPPORT ## |
## PYTHON / PYGTK SUPPORT ## |
############################## |
############################## |
|
|
# |
# It appears that GPS can no longer be built without python |
# Something is wrong with the pkgsrc versions of Python. Both |
# Leave it as a (default) option until confirmed |
# versions 2.6 and 2.7 will cause a core dump of gps because they |
.if empty(PKG_OPTIONS:Mpython) |
# contain undefined symbols in their dynamically loaded libraries. |
CONFIGURE_ARGS+= --without-python --disable-pygtk --disable-pygobject |
# Since no version of Python < 3 can work with GPS, this option |
.else |
# has been removed from the list. |
MY_CONFIGURE_ENV+= PYTHON=${PYTHONBIN} |
# |
CONFIGURE_ARGS+= --with-python=${PREFIX} |
|
|
.if !empty(PKG_OPTIONS:Mpython) |
|
CONFIGURE_ARGS+= --with-python=${PREFIX} |
|
CONFIGURE_ARGS+= --enable-shared-python=no |
|
CONFIGURE_ARGS+= --enable-pygtk |
|
PLIST.pysupport= yes |
|
.include "../../lang/python/pyversion.mk" |
.include "../../lang/python/pyversion.mk" |
.include "../../x11/py-gtk2/buildlink3.mk" |
.include "../../x11/py-gtk2/buildlink3.mk" |
.else |
|
CONFIGURE_ARGS+= --without-python |
|
CONFIGURE_ARGS+= --disable-pygtk |
|
.endif |
.endif |