aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ocaml-yaxi/Makefile
blob: 7f42dc3922835c3cb1cc220f0108a94ee94021b5 (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
# ex:ts=8
# Ports collection makefile for:    yaxi
# Date created:         Mar 17, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   yaxi
PORTVERSION=    0.5.3
CATEGORIES= textproc
MASTER_SITES=   http://mattam.org/soft/yaxi/releases/
PKGNAMEPREFIX=  ocaml-

MAINTAINER= ports@FreeBSD.org
COMMENT=    Yet Another X* Implementation for OCaml

BUILD_DEPENDS=  ocamlc:${PORTSDIR}/lang/ocaml \
        ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
        ${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
        ${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
        ${OCAML_SITELIBDIR}/camomile/camomile.a:${PORTSDIR}/devel/ocaml-camomile
RUN_DEPENDS=    ocamlc:${PORTSDIR}/lang/ocaml \
        ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
        ${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
        ${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
        ${OCAML_SITELIBDIR}/camomile/camomile.a:${PORTSDIR}/devel/ocaml-camomile

BROKEN=     Does not build

OCAML_SITELIBDIR=   ${LOCALBASE}/lib/ocaml/site-lib
USE_GMAKE=  yes

PLIST_FILES=    bin/yaxsltproc

PKGDEINSTALL=   ${PKGINSTALL}

.include <bsd.port.pre.mk>

pre-install:
    ${MKDIR} ${PREFIX}/lib/ocaml/site-lib

post-install:
    @${SETENV} PKG_PREFIX=${PREFIX} \
        ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
    @${FIND} ${PREFIX}/lib/ocaml/site-lib/${PORTNAME} -type f | \
        ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
    @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${PORTNAME}" >> ${TMPPLIST}
    @${ECHO_CMD} "@unexec ocamlfind remove ${PORTNAME} 2>/dev/null || true" >> ${TMPPLIST}

.include <bsd.port.post.mk>