aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-4suite-xml/Makefile
blob: 759cfcbc0a7c38943969f706e7ddf645df578e90 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:    py-4Suite-XML
# Date created:             26 October 2005
# Whom:                 Mike Brown <mike@skew.org>
#
# $FreeBSD$
#

PORTNAME=   4Suite-XML
PORTVERSION=    1.0.2
CATEGORIES= textproc python
MASTER_SITES=   ftp://ftp.4suite.org/pub/4Suite/ \
        SF/foursuite/4Suite/XML-${PORTVERSION}      

PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= mike@skew.org
COMMENT=    A collection of Python tools for XML processing

USE_BZIP2=  yes
REINPLACE_ARGS= -i "" -E
USE_PYTHON= yes
USE_PYDISTUTILS=    yes

CONFLICTS=  py*-4suite-[01]*

.include <bsd.port.pre.mk>

BINDIR=     bin
SYSCONFDIR= etc/4Suite
LIBDIR=     lib/4Suite
LOCALSTATEDIR=  var/4Suite
DATADIR=    share/4Suite
DOCSDIR=    share/doc/4Suite
LOCALEDIR=  share/locale

PLIST_SUB+= PACKAGE_DIR=Ft BINDIR=${BINDIR} SYSCONFDIR=${SYSCONFDIR} \
        LIBDIR=${LIBDIR} LOCALSTATEDIR=${LOCALSTATEDIR} \
        DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} LOCALEDIR=${LOCALEDIR}

SUB_FILES=  pkg-message
SUB_LIST+=  PACKAGE_DIR=Ft BINDIR=${BINDIR} SYSCONFDIR=${SYSCONFDIR} \
        LIBDIR=${LIBDIR} LOCALSTATEDIR=${LOCALSTATEDIR} \
        DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} LOCALEDIR=${LOCALEDIR} \
        PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
        DISTVERSION=${DISTVERSION}

PYDISTUTILS_CONFIGUREARGS=  --bindir=${PREFIX}/${BINDIR} \
                --sysconfdir=${PREFIX}/${SYSCONFDIR} \
                --libdir=${PREFIX}/${LIBDIR} \
                --localstatedir=${PREFIX}/${LOCALSTATEDIR} \
                --datadir=${PREFIX}/${DATADIR} \
                --docdir=${PREFIX}/${DOCSDIR} \
                --localedir=${PREFIX}/${LOCALEDIR} \
                --pythonlibdir=${PYTHON_SITELIBDIR}

.if defined(NOPORTDOCS)
PYDISTUTILS_BUILDARGS=      --without-docs
PYDISTUTILS_INSTALLARGS=    --without-docs
.else
PYDISTUTILS_BUILDARGS=      --with-docs
PYDISTUTILS_INSTALLARGS=    --with-docs
.endif

.include <bsd.port.post.mk>