2004-03-19 01:56:37 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: ulex
|
|
|
|
# Date created: Mar 17, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ulex
|
2006-01-02 20:09:56 +00:00
|
|
|
PORTVERSION= 0.8
|
2004-03-19 01:56:37 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.cduce.org/download/
|
|
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
|
2004-08-08 17:05:49 +00:00
|
|
|
MAINTAINER= marwan.burelle@lri.fr
|
2004-03-19 01:56:37 +00:00
|
|
|
COMMENT= A lexer generator for Unicode and OCaml
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
|
|
|
|
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
|
|
|
|
RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
|
|
|
|
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
|
|
|
|
|
|
|
|
ALL_TARGET= all all.opt
|
|
|
|
|
2005-06-09 17:15:24 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2005-06-08 21:18:02 +00:00
|
|
|
MAKE_ENV= OCAMLFIND_DESTDIR="${PREFIX}/lib/ocaml/site-lib"
|
|
|
|
|
2004-03-19 01:56:37 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
ALL_TARGET+= doc
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${FIND} ${PREFIX}/lib/ocaml/site-lib/${PORTNAME} -type f | \
|
|
|
|
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${PORTNAME}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec ocamlfind remove ${PORTNAME} 2>/dev/null || true" >> ${TMPPLIST}
|
2005-06-08 21:18:02 +00:00
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2004-03-19 01:56:37 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${WRKSRC}/*.css ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|