# New ports collection makefile for: ocaml libmagic(3) # Date created: Fri May 12 12:52:15 UTC 2006 # Whom: Mario Sergio Fujikawa Ferreira # # $FreeBSD$ # PORTNAME= magic PORTVERSION= 0.7.3 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} PKGNAMEPREFIX= ocaml- DISTNAME= ${PKGNAME} MAINTAINER= johans@stack.nl 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 post-install: .ifndef(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR} .endif .ifndef(NOPORTEXAMPLES) ${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} .endif .include