mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
89e07f4a18
Approved by: portmgr (implicit)
42 lines
959 B
Makefile
42 lines
959 B
Makefile
# Created by: ijliao@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yaml
|
|
PORTVERSION= 3.11
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyYAML-${PORTVERSION}
|
|
|
|
MAINTAINER= jpaetzel@FreeBSD.org
|
|
COMMENT= Python YAML parser
|
|
|
|
LICENSE= MIT
|
|
|
|
OPTIONS_DEFINE= LIBYAML EXAMPLES
|
|
LIBYAML_DESC= Use textproc/libyaml for faster parsing
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
post-install:
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLIBYAML}
|
|
PYDISTUTILS_SETUP+= --with-libyaml
|
|
PYDISTUTILS_BUILD_TARGET= build_ext
|
|
PYDISTUTILS_BUILDARGS+= --include-dirs=${LOCALBASE}/include \
|
|
--library-dirs=${LOCALBASE}/lib
|
|
LIB_DEPENDS+= libyaml.so:${PORTSDIR}/textproc/libyaml
|
|
.else
|
|
PYDISTUTILS_SETUP+= --without-libyaml
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|