mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
36 lines
841 B
Makefile
36 lines
841 B
Makefile
# Created by: mainland@apeiron.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= basemap-data
|
|
PORTVERSION= 0.9
|
|
CATEGORIES= math python
|
|
MASTER_SITES= SF/matplotlib/matplotlib-toolkits/basemap-${PORTVERSION}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= mainland@apeiron.net
|
|
COMMENT= Map data for py-basemap
|
|
|
|
USE_PYTHON= 2.5+
|
|
USE_PYDISTUTILS= yes
|
|
|
|
DATADIR= ${PREFIX}/share/py-${PORTNAME}
|
|
|
|
MAKE_ENV= BASEMAP_DATA_PATH=${DATADIR}
|
|
|
|
PLISTDIR= ${DATADIR}/*_[hi].txt \
|
|
${PYTHON_SITELIBDIR}/basemap_data-0.9-py2.5.egg-info
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
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>
|