freebsd-ports/databases/pyspatialite/Makefile
Pawel Pekala 134da7dfa5 pyspatialite is an interface to the SQLite 3.x embedded relational database
engine with spatialite extensions.
It is almost fully compliant with the Python database API version 2.0 also
exposes the unique features of SQLite and spatialite.

WWW: https://code.google.com/p/pyspatialite/

PR:		ports/173079
Submitted by:	lbartoletti <coder@tuxfamily.org>
2013-03-27 16:59:17 +00:00

29 lines
879 B
Makefile

# Created by: lbartoletti <coder@tuxfamily.org>
# $FreeBSD$
PORTNAME= pyspatialite
PORTVERSION= 3.0.1
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP:pyspatialite \
http://www.gaia-gis.it/gaia-sins/libspatialite-sources/:amalgam
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:pyspatialite \
${AMALGAMATION_NAME}${EXTRACT_SUFX}:amalgam
MAINTAINER= coder@tuxfamily.org
COMMENT= DB-API 2.0 interface for SQLite 3.x with Spatialite 3.x
LIB_DEPENDS= spatialite:${PORTSDIR}/databases/spatialite
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= pyspatialite
AMALGAMATION_NAME= libspatialite-amalgamation-${PORTVERSION}
post-patch:
@${REINPLACE_CMD} -e "s|pyspatialite-doc|${DOCSDIR}|g" \
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/setup.py
@${MV} ${WRKDIR}/${AMALGAMATION_NAME} ${WRKSRC}/amalgamation
.include <bsd.port.mk>