aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/ocaml-bz2/Makefile
blob: 02b2f25855478af982f06ba42f05c04f069df941 (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
# Created by: Jaap Boender <jaapb@kerguelen.org>

PORTNAME=   bz2
PORTVERSION=    0.6.0
PORTREVISION=   2
CATEGORIES= archivers
MASTER_SITES=   http://forge.ocamlcore.org/frs/download.php/72/
PKGNAMEPREFIX=  ocaml-
DISTNAME=   caml${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    OCaml library to manipulate bz2 files

LICENSE=    LGPL21 LGPL3
LICENSE_COMB=   dual

OPTIONS_DEFINE= DOCS

DESTDIRNAME=    DONTUSEIT
GNU_CONFIGURE=  yes
MAKE_JOBS_UNSAFE=   yes
USE_OCAML=      yes
USE_OCAML_FINDLIB=  yes
USE_OCAML_LDCONFIG= yes
USE_OCAML_WASH=     yes
USE_OCAMLFIND_PLIST=    yes
USES=       gmake

PORTDOCS=   *
DOCSDIR=    ${OCAML_DOCSDIR}/${PORTNAME}

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/bz2/dllcamlbz2.so

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>