either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
66 lines
1.5 KiB
Makefile
66 lines
1.5 KiB
Makefile
# $NetBSD: options.mk,v 1.7 2014/01/25 10:30:01 wiz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gps
|
|
PKG_SUPPORTED_OPTIONS= syslog sqlite readline python pgsql
|
|
PKG_SUGGESTED_OPTIONS= syslog sqlite readline python
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
################
|
|
## READLINE ##
|
|
################
|
|
|
|
.if !empty(PKG_OPTIONS:Mreadline)
|
|
CONFIGURE_ARGS+= --enable-gpl
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-readline
|
|
.endif
|
|
|
|
|
|
######################
|
|
## SYSLOG SUPPORT ##
|
|
######################
|
|
|
|
.if empty(PKG_OPTIONS:Msyslog)
|
|
CONFIGURE_ARGS+= --disable-syslog
|
|
.endif
|
|
|
|
|
|
######################
|
|
## SQLITE SUPPORT ##
|
|
######################
|
|
|
|
.if !empty(PKG_OPTIONS:Msqlite)
|
|
CONFIGURE_ARGS+= --with-sqlite=embedded
|
|
.else
|
|
CONFIGURE_ARGS+= --without-sqlite
|
|
.endif
|
|
|
|
|
|
##########################
|
|
## POSTGRESQL SUPPORT ##
|
|
##########################
|
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
CONFIGURE_ARGS+= --with-postgresql=${PREFIX}
|
|
.include "../../mk/pgsql.buildlink3.mk"
|
|
.endif
|
|
|
|
|
|
##############################
|
|
## PYTHON / PYGTK SUPPORT ##
|
|
##############################
|
|
|
|
# It appears that GPS can no longer be built without python
|
|
# Leave it as a (default) option until confirmed
|
|
.if empty(PKG_OPTIONS:Mpython)
|
|
CONFIGURE_ARGS+= --without-python --disable-pygtk --disable-pygobject
|
|
.else
|
|
MY_CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
|
|
CONFIGURE_ARGS+= --with-python=${PREFIX}
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-gtk2
|
|
.include "../../lang/python/pyversion.mk"
|
|
.include "../../x11/py-gtk2/buildlink3.mk"
|
|
.endif
|