mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
New port ocaml-magic version 0.6: An OCaml binding for libmagic(3)
This commit is contained in:
parent
e7023f9093
commit
731703aac0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162174
@ -671,6 +671,7 @@
|
||||
SUBDIR += ocaml-event
|
||||
SUBDIR += ocaml-extlib
|
||||
SUBDIR += ocaml-findlib
|
||||
SUBDIR += ocaml-magic
|
||||
SUBDIR += ocaml-pcre
|
||||
SUBDIR += ocaml-sdl
|
||||
SUBDIR += ocaml-sem
|
||||
|
64
devel/ocaml-magic/Makefile
Normal file
64
devel/ocaml-magic/Makefile
Normal file
@ -0,0 +1,64 @@
|
||||
# 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.6
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
||||
MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
|
||||
PKGNAMEPREFIX= ocaml-
|
||||
DISTNAME= OCaml-Magic-${PORTVERSION}
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= An OCaml binding for libmagic(3)
|
||||
|
||||
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
||||
|
||||
ALL_TARGET= opt
|
||||
INSTALL_TARGET= install-opt
|
||||
USE_GMAKE= yes
|
||||
|
||||
# This really is overzealous but I work this way
|
||||
.if !exists(/usr/lib/libmagic.so)
|
||||
LIB_DEPENDS+= magic:${PORTSDIR}/sysutils/file
|
||||
.endif
|
||||
|
||||
.ifndef(NOPORTDOCS)
|
||||
ALL_TARGET+= doc
|
||||
INSTALL_TARGET+= install-doc
|
||||
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
LIB_STUB_FILES= \
|
||||
dllmagic_stub.so
|
||||
|
||||
post-configure:
|
||||
# LIB safeness
|
||||
${REINPLACE_CMD} -E \
|
||||
-e's|(-lmagic[[:space:]]+)|\1 -lz |' \
|
||||
${WRKSRC}/Makefile
|
||||
# CFLAGS,PREFIX safeness
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|^PREFIX.+$$||' \
|
||||
-e 's|\$$\(shell[[:space:]]+ocamlc[[:space:]]+-version\)||' \
|
||||
-e 's|^(DOCDIR).*$$|\1 = ${DOCSDIR}|' \
|
||||
-e 's,^((OCAMLC|OCAMLOPT|OCAMLDEP|OCAMLDOC|OCAMLMKLIB)[^=]*)[[:space:]]*=[[:space:]]*(.+)$$,\1 = ${LOCALBASE}/bin/\3,' \
|
||||
${WRKSRC}/Makefile.config
|
||||
|
||||
post-install:
|
||||
# stub files
|
||||
@${MKDIR} ${PREFIX}/lib/ocaml/stublibs
|
||||
.for file in ${LIB_STUB_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/lib/ocaml/stublibs
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/ocaml-magic/distinfo
Normal file
3
devel/ocaml-magic/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (OCaml-Magic-0.6.tar.gz) = 121f0e66ff30fe3cf2e2907c674a54b9
|
||||
SHA256 (OCaml-Magic-0.6.tar.gz) = 58bf09f68e52c0031ed4fd83162767456d8fe021969f456b269afeb9ae84d78f
|
||||
SIZE (OCaml-Magic-0.6.tar.gz) = 16577
|
9
devel/ocaml-magic/pkg-descr
Normal file
9
devel/ocaml-magic/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
[ excerpt from developer's www site ]
|
||||
|
||||
An ocaml wrapper for the libmagic(3) API. The libmagic API consults
|
||||
on a magic(5) database file in order to provide information to
|
||||
identify the type of a given file.
|
||||
|
||||
WWW: http://sourceforge.net/projects/ocaml-magic/
|
||||
|
||||
-- lioux@FreeBSD.org
|
6
devel/ocaml-magic/pkg-plist
Normal file
6
devel/ocaml-magic/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
lib/ocaml/magic.cmi
|
||||
lib/ocaml/magic.cmxa
|
||||
lib/ocaml/magic.mli
|
||||
lib/ocaml/stublibs/dllmagic_stub.so
|
||||
@dirrmtry lib/ocaml/stublibs
|
||||
@dirrmtry lib/ocaml
|
Loading…
Reference in New Issue
Block a user