1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/devel/py-pyshapelib/Makefile
Wen Heping c4e44979d9 - Update to 1.0
PR:		209410
Submitted by:	fmysh@iijmio-mail.jp(maintainer)
2016-05-10 08:18:28 +00:00

57 lines
1.2 KiB
Makefile

# Created by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
# $FreeBSD$
PORTNAME= pyshapelib
PORTVERSION= 1.0
CATEGORIES= devel python geography
MASTER_SITES= http://wald.intevation.org/frs/download.php/899/:py \
http://download.osgeo.org/shapelib/:c
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:py ${SHAPELIB}${EXTRACT_SUFX}:c
MAINTAINER= fmysh@iijmio-mail.jp
COMMENT= Python bindings for Shapelib
LICENSE= LGPL20
USES= python
USE_LDCONFIG= yes
USE_PYTHON= distutils
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_SUB= yes
PORTDOCS= NEWS README
PORTEXAMPLES= pytest.py
# pyshapelib requires shapelib source to build
SHAPELIB= shapelib-1.3.0
post-extract:
${LN} -s ${WRKDIR}/${SHAPELIB} ${WRKDIR}/shapelib
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${EXAMPLESDIR}
.endfor
.endif
.include <bsd.port.pre.mk>
.if ${PYTHON_MAJOR_VER} != 2
IGNORE= does not work with ${PYTHON_VERSION}
.endif
.include <bsd.port.post.mk>