aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ocaml-pxp/Makefile
blob: 9db64ff0f0e4be3b3cd388bf254413debe72527f (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
# Created by: Stephane Legrand <stephane@freebsd.org>
# $FreeBSD$

PORTNAME=   pxp
PORTVERSION=    1.2.4
CATEGORIES= textproc
MASTER_SITES=   http://download.camlcity.org/download/
PKGNAMEPREFIX=  ocaml-

MAINTAINER= johans@FreeBSD.org
COMMENT=    Validating XML parser for OCaml

BUILD_DEPENDS=  ${LOCALBASE}/${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net
RUN_DEPENDS=    ${LOCALBASE}/${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net

OPTIONS_DEFINE= ULEX
OPTIONS_DEFAULT=ULEX
ULEX_DESC=  Include UTF-8 lexical analyzer support

USE_OCAML=  true
USE_OCAML_FINDLIB=  true
USE_OCAML_LDCONFIG= true

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MULEX}
BUILD_DEPENDS+= ${LOCALBASE}/${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex
RUN_DEPENDS+=   ${LOCALBASE}/${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex
.endif

USE_GMAKE=  yes

HAS_CONFIGURE=  yes
CONFIGURE_ARGS+=-without-wlex-compat -without-wlex

ALL_TARGET= all opt

# to avoid a conflict with PACKAGES in bsd.port.mk
post-extract:
    ${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e 's/PACKAGES/PXP_PACKAGES/'

post-install:
    @${FIND} ${PREFIX}/lib/ocaml/site-lib/pxp* -type f | \
        ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
    @${FIND} ${PREFIX}/lib/ocaml/site-lib/ -type d -name 'pxp*' | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.mk>
ions'>-1/+1 * - update to jpeg-8dinoex2010-02-051-0/+1 * The KDE FreeBSD team is proud to announce the release of KOffice2 suite for F...fluffy2009-12-223-79/+38 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1 * - Update CATEGORIEStabthorpe2009-06-291-1/+1 * Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-042-5/+4 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-143-5/+4 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-203-4/+15 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-132-4/+4 * Update to KOffice 1.5.1lofi2006-05-272-4/+4 * Update to KOffice 1.5.0lofi2006-04-293-6/+59