diff options
author | jaapb <jaapb@pkgsrc.org> | 2013-11-01 11:40:00 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2013-11-01 11:40:00 +0000 |
commit | b68293a847f28d5ecad245be04fc31cd097bca49 (patch) | |
tree | 483db15cf5bdb38240e741568678615ab2234ed2 /devel | |
parent | 32c5bc8aed0f73fceae4d73d90be141ab1e5fd0c (diff) | |
download | pkgsrc-b68293a847f28d5ecad245be04fc31cd097bca49.tar.gz |
Committed devel/optcomp, a cpp-like ocaml syntax extension for optional
compilation.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ocaml-optcomp/DESCR | 2 | ||||
-rw-r--r-- | devel/ocaml-optcomp/Makefile | 40 | ||||
-rw-r--r-- | devel/ocaml-optcomp/PLIST | 11 | ||||
-rw-r--r-- | devel/ocaml-optcomp/buildlink3.mk | 14 | ||||
-rw-r--r-- | devel/ocaml-optcomp/distinfo | 5 |
5 files changed, 72 insertions, 0 deletions
diff --git a/devel/ocaml-optcomp/DESCR b/devel/ocaml-optcomp/DESCR new file mode 100644 index 00000000000..bf24fccdc57 --- /dev/null +++ b/devel/ocaml-optcomp/DESCR @@ -0,0 +1,2 @@ +optcomp is an OCaml/Camlp4 syntax extension for optional compilation with +cpp-like directives. diff --git a/devel/ocaml-optcomp/Makefile b/devel/ocaml-optcomp/Makefile new file mode 100644 index 00000000000..a3e7e004275 --- /dev/null +++ b/devel/ocaml-optcomp/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2013/11/01 11:40:00 jaapb Exp $ + +DISTNAME= optcomp-1.4 +CATEGORIES= devel +MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1011/ + +MAINTAINER= jaapb@NetBSD.org +HOMEPAGE= http://optcomp.forge.ocamlcore.org/ +COMMENT= OCaml syntax extension for optional compilation +LICENSE= modified-bsd + +HAS_CONFIGURE= yes +CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}" +USE_LANGUAGES= c + +SUBST_CLASSES+= destdir +SUBST_STAGE.destdir= post-configure +SUBST_MESSAGE.destdir= Changing install location to DESTDIR +SUBST_FILES.destdir= setup.ml +SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' + +INSTALLATION_DIRS= lib/ocaml/site-lib/optcomp + +PLIST_VARS= opt +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") +PLIST.opt= yes +.endif + +do-configure: + cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ocaml setup.ml -build + +do-install: + cd ${WRKSRC} && ocaml setup.ml -install + +.include "../../lang/ocaml/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ocaml-optcomp/PLIST b/devel/ocaml-optcomp/PLIST new file mode 100644 index 00000000000..c3e922f04c1 --- /dev/null +++ b/devel/ocaml-optcomp/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2013/11/01 11:40:00 jaapb Exp $ +bin/optcomp-o +bin/optcomp-r +lib/ocaml/site-lib/optcomp/META +${PLIST.opt}lib/ocaml/site-lib/optcomp/optcomp.a +lib/ocaml/site-lib/optcomp/optcomp.cma +${PLIST.opt}lib/ocaml/site-lib/optcomp/optcomp.cmxa +${PLIST.opt}lib/ocaml/site-lib/optcomp/optcomp.cmxs +lib/ocaml/site-lib/optcomp/pa_optcomp.cmi +${PLIST.opt}lib/ocaml/site-lib/optcomp/pa_optcomp.cmx +lib/ocaml/site-lib/optcomp/pa_optcomp.mli diff --git a/devel/ocaml-optcomp/buildlink3.mk b/devel/ocaml-optcomp/buildlink3.mk new file mode 100644 index 00000000000..ee72442cf08 --- /dev/null +++ b/devel/ocaml-optcomp/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1 2013/11/01 11:40:00 jaapb Exp $ + +BUILDLINK_TREE+= optcomp + +.if !defined(OPTCOMP_BUILDLINK3_MK) +OPTCOMP_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.optcomp+= optcomp>=1.4 +BUILDLINK_PKGSRCDIR.optcomp?= ../../devel/ocaml-optcomp + +.include "../../lang/ocaml/buildlink3.mk" +.endif # OPTCOMP_BUILDLINK3_MK + +BUILDLINK_TREE+= -optcomp diff --git a/devel/ocaml-optcomp/distinfo b/devel/ocaml-optcomp/distinfo new file mode 100644 index 00000000000..6156d6a39ff --- /dev/null +++ b/devel/ocaml-optcomp/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2013/11/01 11:40:00 jaapb Exp $ + +SHA1 (optcomp-1.4.tar.gz) = 8b343d71c1dd475a3494ebc24a0cf4a1a4396f68 +RMD160 (optcomp-1.4.tar.gz) = dda976ff905d264192e6629f3b9ebe52e6a7de85 +Size (optcomp-1.4.tar.gz) = 53682 bytes |