mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
d9b6f18b86
Approved by: portmgr (implicit)
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: findlib
|
|
# Date created: Jul 10, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= findlib
|
|
PORTVERSION= 1.1.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.ocaml-programming.de/packages/
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= stephane@FreeBSD.org
|
|
COMMENT= OCaml package manager
|
|
|
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
|
RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
|
|
|
HAS_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
ALL_TARGET= all opt
|
|
|
|
PLIST_FILES= bin/ocamlfind etc/findlib.conf
|
|
|
|
MAN1= ocamlfind.1
|
|
MAN5= META.5 findlib.conf.5 site-lib.5
|
|
|
|
# this list comes from the findlib configure script
|
|
OCAML_DIRS= dbm dynlink graphics num num-top str threads unix stdlib bigarray camlp4
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
OCAML_DIRS+= labltk
|
|
.endif
|
|
|
|
post-install:
|
|
@${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type f | \
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
.for D in ${OCAML_DIRS}
|
|
@${FIND} ${PREFIX}/lib/ocaml/site-lib/$D -type f -name META | \
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
.endfor
|
|
|
|
${ECHO_CMD} 'lib/ocaml/site-lib/num-top/num_top.cma' >> ${TMPPLIST}
|
|
${ECHO_CMD} 'lib/ocaml/site-lib/num-top/num_top.cmi' >> ${TMPPLIST}
|
|
${ECHO_CMD} 'lib/ocaml/site-lib/num-top/num_top_printers.cmi' >> ${TMPPLIST}
|
|
${ECHO_CMD} 'lib/ocaml/topfind' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/lib/ocaml/site-lib/findlib -type d | ${SORT} -r | \
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.for D in ${OCAML_DIRS}
|
|
${ECHO_CMD} "@dirrm lib/ocaml/site-lib/$D" >> ${TMPPLIST}
|
|
.endfor
|
|
|
|
${ECHO_CMD} '@dirrm lib/ocaml/site-lib' >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|