802acce8c9
A number of ports failed on the DragonFly package builder when theoretically all of them should build. They had errors in logs indicating that was parallel building issue. Rerunning through again with -j1 resulted in a good build. There were more than 7, but these seven are the ports that I'm confident are not 100% jobs safe based on the errors seen.
40 lines
976 B
Makefile
40 lines
976 B
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= magic
|
|
PORTVERSION= 0.7.3
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/ocaml-${PORTNAME}/ocaml-${PORTNAME}/0.7
|
|
PKGNAMEPREFIX= ocaml-
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
COMMENT= OCaml binding for libmagic(3)
|
|
|
|
USE_OCAML= yes
|
|
USE_OCAML_FINDLIB= yes
|
|
USE_OCAML_LDCONFIG= yes
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
USES= gmake
|
|
GNU_CONFIGURE= yes
|
|
|
|
ALL_TARGET+= doc examples
|
|
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
|
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
# This really is overzealous but I work this way
|
|
.if !exists(/usr/lib/libmagic.so)
|
|
LIB_DEPENDS+= libmagic.so:${PORTSDIR}/sysutils/file
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|