2006-05-12 15:45:14 +02:00
|
|
|
# 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
|
2008-07-20 20:40:24 +02:00
|
|
|
PORTVERSION= 0.7.3
|
2011-04-06 00:23:33 +02:00
|
|
|
PORTREVISION= 1
|
2006-05-12 15:45:14 +02:00
|
|
|
CATEGORIES= devel
|
2009-09-02 17:01:56 +02:00
|
|
|
MASTER_SITES= SF/ocaml-${PORTNAME}/ocaml-${PORTNAME}/0.7
|
2006-05-12 15:45:14 +02:00
|
|
|
PKGNAMEPREFIX= ocaml-
|
2011-04-07 22:04:02 +02:00
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
|
2006-05-12 15:45:14 +02:00
|
|
|
|
2010-02-23 19:03:45 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2006-05-12 15:45:14 +02:00
|
|
|
COMMENT= An OCaml binding for libmagic(3)
|
|
|
|
|
2008-07-20 20:40:24 +02:00
|
|
|
USE_OCAML= yes
|
|
|
|
USE_OCAML_FINDLIB= yes
|
|
|
|
USE_OCAML_LDCONFIG= yes
|
2006-05-12 15:45:14 +02:00
|
|
|
|
2008-07-20 20:40:24 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-05-12 15:45:14 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
ALL_TARGET+= doc
|
|
|
|
PORTDOCS= *
|
2008-07-20 20:40:24 +02:00
|
|
|
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
2006-05-12 15:45:14 +02:00
|
|
|
.endif
|
|
|
|
|
2008-07-20 20:40:24 +02:00
|
|
|
.ifndef(NOPORTEXAMPLES)
|
|
|
|
ALL_TARGET+= examples
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
|
|
|
|
.endif
|
2006-05-12 15:45:14 +02:00
|
|
|
|
2008-07-20 20:40:24 +02:00
|
|
|
# This really is overzealous but I work this way
|
|
|
|
.if !exists(/usr/lib/libmagic.so)
|
|
|
|
LIB_DEPENDS+= magic:${PORTSDIR}/sysutils/file
|
|
|
|
.endif
|
2006-05-12 15:45:14 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-07-20 20:40:24 +02:00
|
|
|
post-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.ifndef(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
|
|
.endif
|
2006-05-12 15:45:14 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|