1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/math/py-basemap-data/Makefile
Nicola Vitale 46fb0d3e7e Map data for the py-basemap port.
WWW: http://matplotlib.sourceforge.net/matplotlib.toolkits.basemap.basemap.html

PR:		ports/104315
Submitted by:	mainland at apeiron.net
Approved by:	alexbl (mentor)
2006-12-24 09:31:31 +00:00

45 lines
962 B
Makefile

# ex:ts=8
# Ports collection makefile for: py-basemap-data
# Date created: April 21, 2006
# Whom: mainland@apeiron.net
#
# $FreeBSD$
#
PORTNAME= basemap-data
PORTVERSION= 0.9
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= matplotlib
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mainland@apeiron.net
COMMENT= Map data for py-basemap
USE_PYTHON= 2.2+
USE_PYDISTUTILS= yes
DATADIR= ${PREFIX}/share/py-${PORTNAME}
MAKE_ENV= BASEMAP_DATA_PATH=${DATADIR}
PLISTDIR= ${DATADIR}/*_[hi].txt
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 250
PLISTDIR+= ${PYTHON_SITELIBDIR}/basemap_data-0.9-py2.5.egg-info
.endif
post-install:
.for dir in ${PLISTDIR}
@${FIND} ${dir} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${dir} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endfor
@${ECHO} "@dirrm ${DATADIR:S,${PREFIX}/,,}" >> ${TMPPLIST}
.include <bsd.port.post.mk>