blob: 77559f87b3d1f0da27fe6d3b7658056dfe149fa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $NetBSD: options.mk,v 1.2 2019/11/03 10:39:23 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocaml-git
PKG_SUPPORTED_OPTIONS= unix http
PKG_SUGGESTED_OPTIONS= unix http
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
PLIST_VARS+= unix http
###
### http support
###
.if !empty(PKG_OPTIONS:Mhttp)
.include "../../www/ocaml-cohttp/buildlink3.mk"
PLIST.http= yes
DUNE_BUILD_PACKAGES+= git-http
OPAM_INSTALL_FILES+= git-http
.endif
###
### unix support
###
.if !empty(PKG_OPTIONS:Munix)
. if !empty(PKG_OPTIONS:Mhttp) # unix needs http
.include "../../www/ocaml-cohttp/buildlink3.mk"
.include "../../time/ocaml-mtime/buildlink3.mk"
PLIST.unix= yes
DUNE_BUILD_PACKAGES+= git-unix
OPAM_INSTALL_FILES+= git-unix
. else
PKG_FAIL_REASON+= "unix option needs http"
. endif
.endif
|