aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocaml-findlib/Makefile
blob: bb89b34a60d9a8b909a1c513b8eafdbb10d55f6d (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
# ex:ts=8
# Ports collection makefile for:    findlib
# Date created:         Jul 10, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   findlib
PORTVERSION=    1.1.1
CATEGORIES= devel
MASTER_SITES=   http://www.ocaml-programming.de/packages/
PKGNAMEPREFIX=  ocaml-

MAINTAINER= stephane@FreeBSD.org
COMMENT=    OCaml package manager

BUILD_DEPENDS=  ocamlc:${PORTSDIR}/lang/ocaml

HAS_CONFIGURE=  yes
USE_GMAKE=  yes
ALL_TARGET= all opt

PLIST_FILES=    bin/ocamlfind etc/findlib.conf

MAN1=   ocamlfind.1
MAN5=   META.5 findlib.conf.5 site-lib.5

# this list comes from the findlib configure script
OCAML_DIRS= dbm dynlink graphics num num-top str threads unix stdlib bigarray labltk camlp4

post-install:
    @${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type f | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}

.for D in ${OCAML_DIRS}
    @${FIND} ${PREFIX}/lib/ocaml/site-lib/$D -type f -name META | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
.endfor

    ${ECHO_CMD} 'lib/ocaml/site-lib/num-top/num_top.cma' >> ${TMPPLIST}
    ${ECHO_CMD} 'lib/ocaml/site-lib/num-top/num_top.cmi' >> ${TMPPLIST}
    ${ECHO_CMD} 'lib/ocaml/site-lib/num-top/num_top_printers.cmi' >> ${TMPPLIST}
    ${ECHO_CMD} 'lib/ocaml/topfind' >> ${TMPPLIST}

    @${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.for D in ${OCAML_DIRS}
    ${ECHO_CMD} "@dirrm lib/ocaml/site-lib/$D" >> ${TMPPLIST}
.endfor

    ${ECHO_CMD} '@dirrm lib/ocaml/site-lib' >> ${TMPPLIST}

.include <bsd.port.mk>