aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xmerl/Makefile
blob: 08b825b39f34e954f0188eec20e4d4c185ccf3d8 (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
# New ports collection makefile for:    xmerl
# Date Created:             5 March 2003
# Whom:                 olgeni@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   xmerl
PORTVERSION=    0.19
PORTREVISION=   2
CATEGORIES= textproc
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sowap
DIST_SUBDIR=    erlang

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    A library for XML processing in Erlang

BUILD_DEPENDS=  erlc:${PORTSDIR}/lang/erlang
RUN_DEPENDS=    erl:${PORTSDIR}/lang/erlang

PLIST_SUB=  VERSION="${PORTVERSION}"

USE_GMAKE=  yes

XMERL=      ${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=     "Does not compile on !i386"
.endif

do-install:
    @${MKDIR} ${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${CP} -r ${WRKSRC}/doc/* ${DOCSDIR}
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
    @${LN} -s ${DOCSDIR} ${XMERL}/doc
.endif

    @for SUBDIR in ebin inc src; do \
        ${MKDIR} ${XMERL}/$${SUBDIR}; \
        ${CP} -r ${WRKSRC}/$${SUBDIR}/* ${XMERL}/$${SUBDIR}; \
        ${CHMOD} ${SHAREMODE} ${XMERL}/$${SUBDIR}/*; \
    done

    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${XMERL}
    @${LN} -sf ${PORTNAME}-${PORTVERSION} ${PREFIX}/lib/erlang/lib/${PORTNAME}

.include <bsd.port.post.mk>