1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/graphics/tilecache/Makefile
Marcus von Appen ebb2c22391 - Enable stagedir support
- Remove easy_install dependency
- Convert to PYDISTUTILS_AUTOPLIST
- Bump PORTREVISION to enforce a cleanup for the easy_install references

With hat:	python@
Approved by:	portmgr (implicit)
2014-06-14 08:04:51 +00:00

40 lines
1.1 KiB
Makefile

# Created by: joris
# $FreeBSD$
PORTNAME= tilecache
PORTVERSION= 2.11
PORTREVISION= 1
CATEGORIES= graphics python geography www
MASTER_SITES= http://tilecache.org/
MAINTAINER= joris.dedieu@gmail.com
COMMENT= Python-based WMS-C/TMS server
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup \
${PYTHON_PKGNAMEPREFIX}Paste>0:${PORTSDIR}/www/py-paste
LICENSE= BSD
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
FILES_ETC= TileCache/Service.py setup.py tilecache_install_config.py
post-patch:
@cd ${WRKSRC}; \
${REINPLACE_CMD} -e 's|/etc|${ETCDIR}|' ${FILES_ETC};
pre-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/www/cgi-bin
${REINPLACE_CMD} -e 's|/usr/bin/python|/usr/bin/env python|' ${WRKSRC}/tilecache.cgi
${INSTALL_SCRIPT} ${WRKSRC}/tilecache.cgi ${STAGEDIR}${PREFIX}/www/cgi-bin/tilecache.cgi
${REINPLACE_CMD} -e 's|/usr/bin/python|/usr/bin/env python|' ${WRKSRC}/tilecache.fcgi
${INSTALL_SCRIPT} ${WRKSRC}/tilecache.fcgi ${STAGEDIR}${PREFIX}/www/cgi-bin/tilecache.fcgi
${INSTALL_DATA} ${WRKSRC}/tilecache.cfg ${STAGEDIR}${ETCDIR}/tilecache.cfg.sample
.include <bsd.port.mk>