1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/databases/pyspatialite/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

45 lines
1.0 KiB
Makefile

# Created by: lbartoletti <coder@tuxfamily.org>
# $FreeBSD$
PORTNAME= pyspatialite
PORTVERSION= 3.0.1
DISTVERSIONSUFFIX= -alpha-0
PORTREVISION= 7
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP/source/p/${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= coder@tuxfamily.org
COMMENT= DB-API 2.0 interface for SQLite 3.x with Spatialite
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libspatialite.so:databases/spatialite \
libgeos_c.so:graphics/geos \
libproj.so:graphics/proj \
libfreexl.so:textproc/freexl
OPTIONS_DEFINE= DOCS
USES= iconv python
USE_PYTHON= autoplist concurrent distutils
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
ICONV_APPEND=
.else
ICONV_APPEND= ,iconv
.endif
post-patch:
@${REINPLACE_CMD} -e "s|pyspatialite-doc|${DOCSDIR}|g" ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
-e "s|%%ICONV%%|${ICONV_APPEND}|" ${WRKSRC}/setup.cfg
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyspatialite/_spatialite.so
.include <bsd.port.post.mk>