# $NetBSD: Makefile,v 1.14 2008/12/17 19:55:38 joerg Exp $ DJANGOVERS= 1.0.2 DISTNAME= Django-${DJANGOVERS}-final PKGNAME= ${PYPKGPREFIX}-django-${DJANGOVERS} CATEGORIES= www python MASTER_SITES= http://media.djangoproject.com/releases/${DJANGOVERS}/ MAINTAINER= joerg@NetBSD.org HOMEPAGE= http://www.djangoproject.com/ COMMENT= Django, a high-level Python Web framework PYDISTUTILSPKG= # yes PYTHON_VERSIONS_ACCEPTED= 25 24 PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} PKG_DESTDIR_SUPPORT= user-destdir DEPENDS+= ${PYPKGPREFIX}-flup-[0-9]*:../../www/py-flup .include "options.mk" post-extract: rm -r ${WRKSRC}/django/db/backends/oracle .if empty(PKG_OPTIONS:Mmysql) rm -r ${WRKSRC}/django/db/backends/mysql .endif .if empty(PKG_OPTIONS:Mpsycopg1) && empty(PKG_OPTIONS:Mpsycopg2) rm -r ${WRKSRC}/django/db/backends/postgresql .endif .if empty(PKG_OPTIONS:Mpsycopg2) rm -r ${WRKSRC}/django/db/backends/postgresql_psycopg2 .endif .if empty(PKG_OPTIONS:Msqlite) rm -r ${WRKSRC}/django/db/backends/sqlite3 .endif .include "../../lang/python/extension.mk" .include "../../mk/bsd.pkg.mk"