1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/www/ocaml-net/Makefile
Edwin Groothuis 8cb3fe9c6c Update port: www/ocaml-net (upgrade to the latest version)
Upgrade to the latest, 1.1.1, version. I've added lang/ocaml to
	RUN_DEPENDS for rebuild the port with portupgrade -r lang/ocaml.

PR:		ports/90212
Submitted by:	Denis Shaposhnikov <dsh@vlink.ru>
Approved by:	Stephane Legrand <stephane@freebsd.org>
2006-01-07 07:45:07 +00:00

84 lines
2.9 KiB
Makefile

# New ports collection makefile for: ocaml-net
# Date created: 01 March 2003
# Whom: Stephane Legrand <stephane@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= net
PORTVERSION= 1.1.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ocamlnet
PKGNAMEPREFIX= ocaml-
DISTNAME= ocaml${PORTNAME}-${PORTVERSION}
MAINTAINER= stephane@freebsd.org
COMMENT= OCaml modules for Internet applications
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
${LOCALBASE}/lib/ocaml/site-lib/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
${LOCALBASE}/lib/ocaml/site-lib/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
.if !defined(WITHOUT_NETHTTPD)
BUILD_DEPENDS+= ${LOCALBASE}/lib/ocaml/site-lib/equeue/equeue.a:${PORTSDIR}/devel/ocaml-equeue
RUN_DEPENDS+= ${LOCALBASE}/lib/ocaml/site-lib/equeue/equeue.a:${PORTSDIR}/devel/ocaml-equeue
.endif
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_GMAKE= yes
HAS_CONFIGURE= yes
# seems required to build www/ocaml-wdialog:
CONFIGURE_ARGS+= -enable-compatcgi
ALL_TARGET= all opt
.if !defined(NOPORTDOCS)
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= *
.endif
post-install:
@${FIND} ${PREFIX}/lib/ocaml/site-lib/cgi -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/cgi" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ocamlfind remove cgi 2>/dev/null || true" >> ${TMPPLIST}
@${FIND} ${PREFIX}/lib/ocaml/site-lib/netstring -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/netstring" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ocamlfind remove netstring 2>/dev/null || true" >> ${TMPPLIST}
@${FIND} ${PREFIX}/lib/ocaml/site-lib/pop -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/pop" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ocamlfind remove pop 2>/dev/null || true" >> ${TMPPLIST}
@${FIND} ${PREFIX}/lib/ocaml/site-lib/smtp -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/smtp" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ocamlfind remove smtp 2>/dev/null || true" >> ${TMPPLIST}
.if !defined(WITHOUT_NETHTTPD)
@${FIND} ${PREFIX}/lib/ocaml/site-lib/nethttpd -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/nethttpd" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ocamlfind remove nethttpd 2>/dev/null || true" >> ${TMPPLIST}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/../doc/ ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/../examples/ ${EXAMPLESDIR}
@${CHMOD} -R +r ${EXAMPLESDIR}
@${FIND} ${EXAMPLESDIR} -type f | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>