1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/textproc/py-ltxml/Makefile
Marcus von Appen 1fd066ebe5 - Convert textproc/ to USES=python
With hat:	python@
2014-12-07 10:01:36 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Johann Visagie <wjv@FreeBSD.org>
# $FreeBSD$
PORTNAME= ltxml
PORTVERSION= 1.3
PORTREVISION= 4
CATEGORIES= textproc python
MASTER_SITES= ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyLTXML-${PORTVERSION}
MAINTAINER= horia@racoviceanu.com
COMMENT= Python bindings to the LT XML toolkit
BUILD_DEPENDS= ${LOCALBASE}/include/ltxml12/lt-safe.h:${PORTSDIR}/textproc/ltxml
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= python
USE_PYTHON= distutils autoplist
USE_LDCONFIG= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= 00README
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
post-install:
${STRIP_CMD} \
${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/PyLTXML/LTXMLinter.so
@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>