aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-ltxml/Makefile
blob: 9cb19ce9b063d09183c71589a0b0498b9cd71eac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:    py-ltxml
# Date created:     31 January 2002
# Whom:             Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   ltxml
PORTVERSION=    1.3
PORTREVISION=   2
CATEGORIES= textproc python
MASTER_SITES=   ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   PyLTXML-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Python bindings to the LT XML toolkit

BUILD_DEPENDS=  ${LOCALBASE}/include/ltxml12/lt-safe.h:${PORTSDIR}/textproc/ltxml
RUN_DEPENDS=    ${BUILD_DEPENDS}

BROKEN=     Size mismatch

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
INSTALLS_SHLIB= yes
DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}
USE_REINPLACE=  yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
BROKEN=     "Does not build on ia64 or amd64 (tries to link non-shared with shared libraries)"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/projects/ltg/projects/lcontrib|${LOCALBASE}|' ${WRKSRC}/setup.py

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/00README ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/example/* ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>