aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-08-24 00:14:19 +0800
committermarino <marino@FreeBSD.org>2014-08-24 00:14:19 +0800
commit32b492b55324753b0458839e70361090eeeef60c (patch)
treedb0aaf33611a5af99aa7759b5027e412f0fbf513
parent9dcf0a93312c62cffe36f0bee0e542534793323b (diff)
downloadfreebsd-ports-gnome-32b492b55324753b0458839e70361090eeeef60c.tar.gz
freebsd-ports-gnome-32b492b55324753b0458839e70361090eeeef60c.tar.zst
freebsd-ports-gnome-32b492b55324753b0458839e70361090eeeef60c.zip
Stage devel/ocaml-equeue and assign maintainship to submitter
PR: 192841 Submitted by: Michael Gruenewald
-rw-r--r--devel/ocaml-equeue/Makefile55
1 files changed, 38 insertions, 17 deletions
diff --git a/devel/ocaml-equeue/Makefile b/devel/ocaml-equeue/Makefile
index 46c45dbb0e8d..31fea78ce094 100644
--- a/devel/ocaml-equeue/Makefile
+++ b/devel/ocaml-equeue/Makefile
@@ -3,46 +3,67 @@
PORTNAME= equeue
PORTVERSION= 2.1.4
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= http://www.ocaml-programming.de/packages/
PKGNAMEPREFIX= ocaml-
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= michipili@gmail.com
COMMENT= The Equeue library for OCaml
+LICENSE= EULA
+LICENSE_NAME= End User License Agreement
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
+
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
+DEPRECATED= Superseded by www/ocaml-net
+EXPIRATION_DATE=2015-08-20
+
WRKSRC= ${WRKDIR}/${DISTNAME}
-USES= gmake
-MAKE_FLAGS= PACKAGES= # If defined, would be used by ocamlfind
-HAS_CONFIGURE= yes
+USES= gmake
+USE_OCAML= YES
+USE_OCAML_FINDLIB= YES
+USE_OCAML_LDCONFIG= YES
+MAKE_FLAGS= PACKAGES= # If defined, would be used by ocamlfind
+HAS_CONFIGURE= YES
+
+OCAML_LDLIBS= ${OCAML_SITELIBDIR}/${PORTNAME}
+OCAML_LDLIBS+= ${OCAML_SITELIBDIR}/shell
-ALL_TARGET= all opt
+ALL_TARGET= all opt
MAKE_JOBS_UNSAFE= yes
-PKGDEINSTALL= ${PKGINSTALL}
+OPTIONS_DEFINE= DOCS EQUEUE_TCL
+
+EQUEUE_TCL_DESC= Integration with the labltk event system
+
+.include <bsd.port.options.mk>
-.if defined(WITH_EQUEUE_TCL)
-USES+= tcl
-CONFIGURE_ARGS+= -with-equeue-tcl -equeue-tcl-defs "-I${TCL_INCLUDEDIR}" -equeue-tcl-libs "-L${LOCALBASE}/lib -ltcl${TCL_SHLIB_VER}"
+.if ${PORT_OPTIONS:MEQUEUE_TCL}
+USES+= tcl
+CONFIGURE_ARGS+= -with-equeue-tcl
+CONFIGURE_ARGS+= -equeue-tcl-defs
+CONFIGURE_ARGS+= "-I${TCL_INCLUDEDIR}"
+CONFIGURE_ARGS+= -equeue-tcl-libs
+CONFIGURE_ARGS+= "-L${LOCALBASE}/lib -ltcl${TCL_SHLIB_VER}"
PLIST_SUB+= TCL=""
+OCAML_LDLIBS+= ${OCAML_SITELIBDIR}/${PORTNAME}-tcl
.else
PLIST_SUB+= TCL="@comment "
.endif
-NO_STAGE= yes
post-install:
- PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
- @${MKDIR} ${EXAMPLESDIR}
- ${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC}/examples/ && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.endif
.include <bsd.port.mk>