blob: 6fc1253674ab25101ac38b1050a038402a0f81d6 (
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
|
# New ports collection makefile for: ocaml libmagic(3)
# Date created: Fri May 12 12:52:15 UTC 2006
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= magic
PORTVERSION= 0.7.3
CATEGORIES= devel
MASTER_SITES= SF/ocaml-${PORTNAME}/ocaml-${PORTNAME}/0.7
PKGNAMEPREFIX= ocaml-
DISTNAME= ${PKGNAME}
MAINTAINER= johans@FreeBSD.org
COMMENT= An OCaml binding for libmagic(3)
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
.ifndef(NOPORTDOCS)
ALL_TARGET+= doc
PORTDOCS= *
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
.endif
.ifndef(NOPORTEXAMPLES)
ALL_TARGET+= examples
PORTEXAMPLES= *
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
.endif
# This really is overzealous but I work this way
.if !exists(/usr/lib/libmagic.so)
LIB_DEPENDS+= magic:${PORTSDIR}/sysutils/file
.endif
.include <bsd.port.pre.mk>
post-install:
.ifndef(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}
.endif
.ifndef(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|