- Build native code module.

- Add buildlink3.mk.
This commit is contained in:
Hiramatsu Yoshifumi 2014-11-21 06:01:35 +00:00 committed by Thomas Klausner
parent 3dc7f07fa4
commit d91574991c
5 changed files with 49 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2014/11/17 11:48:22 jgoamakf Exp $
# $NetBSD: Makefile,v 1.3 2014/11/21 06:01:35 jgoamakf Exp $
PKGNAME= ocaml-${DISTNAME}
DISTNAME= biniou-1.0.9
@ -13,6 +13,7 @@ LICENSE= modified-bsd
USE_TOOLS+= gmake
OCAML_USE_FINDLIB= yes
BUILD_TARGET+= opt
.include "../../wip/ocaml-easy-format/buildlink3.mk"
.include "../../mk/ocaml.mk"

View file

@ -1,26 +1,36 @@
@comment $NetBSD: PLIST,v 1.1 2014/07/02 05:06:57 jgoamakf Exp $
@comment $NetBSD: PLIST,v 1.2 2014/11/21 06:01:35 jgoamakf Exp $
lib/ocaml/site-lib/biniou/META
lib/ocaml/site-lib/biniou/bi_dump.cmi
lib/ocaml/site-lib/biniou/bi_dump.cmo
lib/ocaml/site-lib/biniou/bi_dump.cmx
lib/ocaml/site-lib/biniou/bi_dump.o
lib/ocaml/site-lib/biniou/bi_inbuf.cmi
lib/ocaml/site-lib/biniou/bi_inbuf.cmo
lib/ocaml/site-lib/biniou/bi_inbuf.cmx
lib/ocaml/site-lib/biniou/bi_inbuf.mli
lib/ocaml/site-lib/biniou/bi_inbuf.o
lib/ocaml/site-lib/biniou/bi_io.cmi
lib/ocaml/site-lib/biniou/bi_io.cmo
lib/ocaml/site-lib/biniou/bi_io.cmx
lib/ocaml/site-lib/biniou/bi_io.mli
lib/ocaml/site-lib/biniou/bi_io.o
lib/ocaml/site-lib/biniou/bi_outbuf.cmi
lib/ocaml/site-lib/biniou/bi_outbuf.cmo
lib/ocaml/site-lib/biniou/bi_outbuf.cmx
lib/ocaml/site-lib/biniou/bi_outbuf.mli
lib/ocaml/site-lib/biniou/bi_outbuf.o
lib/ocaml/site-lib/biniou/bi_share.cmi
lib/ocaml/site-lib/biniou/bi_share.cmo
lib/ocaml/site-lib/biniou/bi_share.cmx
lib/ocaml/site-lib/biniou/bi_share.mli
lib/ocaml/site-lib/biniou/bi_share.o
lib/ocaml/site-lib/biniou/bi_stream.cmi
lib/ocaml/site-lib/biniou/bi_stream.cmo
lib/ocaml/site-lib/biniou/bi_stream.cmx
lib/ocaml/site-lib/biniou/bi_stream.mli
lib/ocaml/site-lib/biniou/bi_stream.o
lib/ocaml/site-lib/biniou/bi_util.cmi
lib/ocaml/site-lib/biniou/bi_util.cmo
lib/ocaml/site-lib/biniou/bi_util.cmx
lib/ocaml/site-lib/biniou/bi_util.mli
lib/ocaml/site-lib/biniou/bi_util.o
lib/ocaml/site-lib/biniou/bi_vint.cmi
lib/ocaml/site-lib/biniou/bi_vint.cmo
lib/ocaml/site-lib/biniou/bi_vint.cmx
lib/ocaml/site-lib/biniou/bi_vint.mli
lib/ocaml/site-lib/biniou/biniou.cma
lib/ocaml/site-lib/biniou/bi_vint.o
lib/ocaml/site-lib/biniou/biniou.a
lib/ocaml/site-lib/biniou/biniou.cmxa
lib/ocaml/site-lib/biniou/biniou.cmxs

View file

@ -0,0 +1,11 @@
# $NetBSD: buildlink3.mk,v 1.1 2014/11/21 06:01:35 jgoamakf Exp $
BUILDLINK_TREE+= ocaml-biniou
.if !defined(OCAML_BINIOU_BUILDLINK3_MK)
OCAML_BINIOU_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ocaml-biniou+= ocaml-biniou>=1.0.9
BUILDLINK_PKGSRCDIR.ocaml-biniou?= ../../wip/ocaml-biniou
.endif # OCAML_BINIOU_BUILDLINK3_MK
BUILDLINK_TREE+= -ocaml-biniou

View file

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.1 2014/07/02 05:06:57 jgoamakf Exp $
$NetBSD: distinfo,v 1.2 2014/11/21 06:01:35 jgoamakf Exp $
SHA1 (biniou-1.0.9.tar.gz) = 39f4f3ed7e5669aff6f11c37c9d47d22ee0a2577
RMD160 (biniou-1.0.9.tar.gz) = bc5b528014363259ac2cb19be131a653845cf227
Size (biniou-1.0.9.tar.gz) = 23963 bytes
SHA1 (patch-Makefile) = 2ff1f6d79335f96c7d5633132809da0bd070abc8

View file

@ -0,0 +1,14 @@
--- Makefile.orig 2014-01-19 17:18:17.000000000 +0900
+++ Makefile 2014-11-18 12:13:42.000000000 +0900
@@ -76,8 +76,9 @@
ocamlfind ocamldoc -d doc -html -package easy-format $(MLI)
install: META
- test ! -f bdump || cp bdump $(BINDIR)/
- test ! -f bdump.exe || cp bdump.exe $(BINDIR)/
+ $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDIR)
+ test ! -f bdpmp || $(BSD_INSTALL_PROGRAM) bdump $(DESTDIR)$(BINDIR)/
+ test ! -f bdump.exe || $(BSD_INSTALL_PROGRAM) bdump.exe $(DESTDIR)$(BINDIR)/
ocamlfind install biniou META \
$$(ls $(MLI) $(CMI) $(CMO) $(CMX) $(O) \
biniou.cma biniou.cmxa biniou.cmxs biniou.a)