diff options
author | jaapb <jaapb@pkgsrc.org> | 2012-10-10 11:25:57 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2012-10-10 11:25:57 +0000 |
commit | 4f8ac4c7f9c4382cb7c9377db459bf13a3d86f4f (patch) | |
tree | e5ff5850db8241258e87ef7a9a3a7aac40f97d6d /textproc/ocaml-expat | |
parent | 018f7110390828663598b63a334d5595aee3a355 (diff) | |
download | pkgsrc-4f8ac4c7f9c4382cb7c9377db459bf13a3d86f4f.tar.gz |
Initial commit of ocaml-expat package, version 0.9.1.
OCaml-expat is an OCaml binding for the expat XML library.
Diffstat (limited to 'textproc/ocaml-expat')
-rw-r--r-- | textproc/ocaml-expat/DESCR | 1 | ||||
-rw-r--r-- | textproc/ocaml-expat/Makefile | 29 | ||||
-rw-r--r-- | textproc/ocaml-expat/PLIST | 11 | ||||
-rw-r--r-- | textproc/ocaml-expat/distinfo | 6 | ||||
-rw-r--r-- | textproc/ocaml-expat/patches/patch-Makefile | 26 |
5 files changed, 73 insertions, 0 deletions
diff --git a/textproc/ocaml-expat/DESCR b/textproc/ocaml-expat/DESCR new file mode 100644 index 00000000000..dd58212981b --- /dev/null +++ b/textproc/ocaml-expat/DESCR @@ -0,0 +1 @@ +OCaml-expat is an OCaml binding for the expat XML library. diff --git a/textproc/ocaml-expat/Makefile b/textproc/ocaml-expat/Makefile new file mode 100644 index 00000000000..a88d0277427 --- /dev/null +++ b/textproc/ocaml-expat/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2012/10/10 11:25:57 jaapb Exp $ +# + +DISTNAME= ocaml-expat-0.9.1 +CATEGORIES= textproc +MASTER_SITES= http://mmzeeman.home.xs4all.nl/ocaml/ + +MAINTAINER= jaapb@NetBSD.org +HOMEPAGE= http://mmzeeman.home.xs4all.nl/ocaml/ +COMMENT= OCaml bindings for the expat library +LICENSE= mit + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= gmake +BUILD_TARGET= all + +PLIST_VARS+= opt +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") || \ + (${MACHINE_ARCH} == "arm") +PLIST.opt= yes +BUILD_TARGET+= allopt +.endif + +.include "../../textproc/expat/buildlink3.mk" +.include "../../lang/ocaml/buildlink3.mk" +.include "../../devel/ocaml-findlib/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ocaml-expat/PLIST b/textproc/ocaml-expat/PLIST new file mode 100644 index 00000000000..c7dbb154d34 --- /dev/null +++ b/textproc/ocaml-expat/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2012/10/10 11:25:57 jaapb Exp $ +@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/expat +lib/ocaml/site-lib/expat/META +lib/ocaml/site-lib/expat/dllmlexpat.so +${PLIST.opt}lib/ocaml/site-lib/expat/expat.a +lib/ocaml/site-lib/expat/expat.cma +${PLIST.opt}lib/ocaml/site-lib/expat/expat.cmxa +lib/ocaml/site-lib/expat/expat.cmi +lib/ocaml/site-lib/expat/expat.mli +lib/ocaml/site-lib/expat/libmlexpat.a +@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/expat diff --git a/textproc/ocaml-expat/distinfo b/textproc/ocaml-expat/distinfo new file mode 100644 index 00000000000..a9ae3893899 --- /dev/null +++ b/textproc/ocaml-expat/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2012/10/10 11:25:57 jaapb Exp $ + +SHA1 (ocaml-expat-0.9.1.tar.gz) = c0a65558cf996ac727fe5c61224d3e19dfd7d02a +RMD160 (ocaml-expat-0.9.1.tar.gz) = be731eacff0a114d948cfaedfafe9b9fc6dc54e7 +Size (ocaml-expat-0.9.1.tar.gz) = 25223 bytes +SHA1 (patch-Makefile) = 2b57503d9548d3d7c8334c48469140c963cbb346 diff --git a/textproc/ocaml-expat/patches/patch-Makefile b/textproc/ocaml-expat/patches/patch-Makefile new file mode 100644 index 00000000000..302bcd48b70 --- /dev/null +++ b/textproc/ocaml-expat/patches/patch-Makefile @@ -0,0 +1,26 @@ +$NetBSD: patch-Makefile,v 1.1 2012/10/10 11:25:57 jaapb Exp $ + +Correct location for expat and add DESTDIR support +--- Makefile.orig 2005-03-13 14:00:29.000000000 +0000 ++++ Makefile +@@ -3,8 +3,8 @@ + + # Change this to match your expat installation. + EXPAT_LIB=-lexpat +-EXPAT_LIBDIR=/usr/local/lib +-EXPAT_INCDIR=/usr/local/include ++EXPAT_LIBDIR=${PREFIX}/lib ++EXPAT_INCDIR=${PREFIX}/include + + NAME=expat + OBJECTS=expat.cmo +@@ -50,7 +50,8 @@ $(XARCHIVE): $(CARCHIVE) $(XOBJECTS) + .PHONY: install + install: all + { test ! -f $(XARCHIVE) || extra="$(XARCHIVE) $(NAME).a"; }; \ +- $(OCAMLFIND) install $(NAME) META $(NAME).cmi $(NAME).mli $(ARCHIVE) \ ++ $(OCAMLFIND) install -destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib \ ++ -ldconf ignore $(NAME) META $(NAME).cmi $(NAME).mli $(ARCHIVE) \ + dll$(CARCHIVE_NAME).so lib$(CARCHIVE_NAME).a $$extra + + .PHONY: uninstall |