pkgsrc-wip/py-booktype/options.mk

31 lines
807 B
Makefile

# $NetBSD: options.mk,v 1.4 2014/05/09 07:38:45 thomasklausner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.booktype
PKG_SUPPORTED_OPTIONS= mysql pgsql sqlite3
PKG_SUGGESTED_OPTIONS= pgsql sqlite3
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= ${PYPKGPREFIX}-mysqldb-[0-9]*:../../databases/py-mysqldb
PYTHON_VERSIONS_ACCEPTED= 27 # py-mysqldb
PLIST.mysql= yes
.endif
.if !empty(PKG_OPTIONS:Moracle)
DEPENDS+= ${PYPKGPREFIX}-cx_Oracle-[0-9]*:../../databases/py-cx_Oracle
PLIST.oracle= yes
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2
PLIST.pgsql= yes
.endif
.if !empty(PKG_OPTIONS:Msqlite)
DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
PLIST.sqlite= yes
.endif