aboutsummaryrefslogblamecommitdiff
path: root/devel/ocaml-findlib/Makefile
blob: a33191501c407390469477ffd8e6416ba33e4a04 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                               

                     



                                                         
                                    
                                     





                                             

                                              
                   

                                        


                                                                                               
             
                                                                 
                                                       
 
                       



                                                                       




                                                                                    

                                                                              
 





                                                                 
                      
# ex:ts=8
# Ports collection makefile for:	findlib
# Date created:			Jul 10, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	findlib
PORTVERSION=	1.0.3
PORTREVISION=	0
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

HAS_CONFIGURE=	yes
USE_GMAKE=	yes

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 labltk camlp4

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>