summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2016-09-18 07:15:08 +0000
committerdholland <dholland@pkgsrc.org>2016-09-18 07:15:08 +0000
commit40597304665c982b41d49516b3c63cd7151f5b51 (patch)
tree8cc5fb5e218c4e283f8212554d8a2382919ccd04 /textproc
parentbc618663d5b209964244eda5ad639eee0e758c83 (diff)
downloadpkgsrc-40597304665c982b41d49516b3c63cd7151f5b51.tar.gz
Switch to ocaml.mk framework and use ocamlbuild.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hevea/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/textproc/hevea/Makefile b/textproc/hevea/Makefile
index ed4382416a4..ea7f3b9e9ec 100644
--- a/textproc/hevea/Makefile
+++ b/textproc/hevea/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2015/05/06 20:45:43 tonio Exp $
+# $NetBSD: Makefile,v 1.22 2016/09/18 07:15:08 dholland Exp $
DISTNAME= hevea-2.23
CATEGORIES= textproc
@@ -11,14 +11,12 @@ LICENSE= qpl-v1.0
MAKE_ENV+= DESTDIR=${DESTDIR}
-.include "../../mk/bsd.prefs.mk"
-
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc")
-BUILD_DEPENDS+= ocaml>=3.12:../../lang/ocaml
+.include "../../mk/ocaml.mk"
+.if !empty(OCAML_USE_OPT_COMPILER:M[Yy][Ee][Ss])
MAKE_ENV+= TARGET=opt
.else
-DEPENDS+= ocaml>=3.12:../../lang/ocaml
MAKE_ENV+= TARGET=byte
.endif
+.include "../../devel/ocamlbuild/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"