Skip to content

Commit 38f68a5

Browse files
committed
[update] conf-fswatch 11-0.1.3 & fswatch 11-0.1.3 add support for bsd os-family
1 parent 4194d0c commit 38f68a5

File tree

2 files changed

+7
-3
lines changed
  • packages
    • conf-fswatch/conf-fswatch.11-0.1.3
    • fswatch/fswatch.11-0.1.3

2 files changed

+7
-3
lines changed

packages/conf-fswatch/conf-fswatch.11-0.1.3/opam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ bug-reports: "https://github.com/kandu/ocaml-fswatch/issues"
66
license: "MIT"
77

88
build: [
9-
["sh" "-exec" "cc -I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c $CFLAGS test.c -lfswatch"] { !(os-distribution = "homebrew" & arch = "arm64") }
9+
["sh" "-exec" "cc -I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c $CFLAGS test.c -lfswatch"] { !(os-distribution = "homebrew" & arch = "arm64") & os-family != "bsd"}
1010
["sh" "-exec" "cc -I$(brew --prefix)/include/libfswatch/c -L$(brew --prefix)/lib $CFLAGS test.c -lfswatch"] { os-distribution = "homebrew" & arch = "arm64" }
11+
["sh" "-exec" "cc -I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c $CFLAGS test.c -L/usr/local/lib -lfswatch"] {os-family = "bsd"}
1112
]
1213

1314
depexts: [

packages/fswatch/fswatch.11-0.1.3/opam

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ bug-reports: "https://github.com/kandu/ocaml-fswatch/issues"
66
license: "MIT"
77
dev-repo: "git+https://github.com/kandu/ocaml-fswatch"
88
build: [
9-
["sh" "-exec" "echo \\(-I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c\\) > fswatch/src/inc_cflags"] { !(os-distribution = "homebrew" & arch = "arm64") }
10-
["sh" "-exec" "echo -lfswatch > fswatch/src/inc_libs"] { !(os-distribution = "homebrew" & arch = "arm64") }
9+
["sh" "-exec" "echo \\(-I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c\\) > fswatch/src/inc_cflags"] { !(os-distribution = "homebrew" & arch = "arm64") & os-family != "bsd" }
10+
["sh" "-exec" "echo -lfswatch > fswatch/src/inc_libs"] { !(os-distribution = "homebrew" & arch = "arm64") & os-family != "bsd" }
1111

1212
["sh" "-exec" "echo -I$(brew --prefix)/include/libfswatch/c > fswatch/src/inc_cflags"] { os-distribution = "homebrew" & arch = "arm64" }
1313
["sh" "-exec" "echo \\(-L$(brew --prefix)/lib -lfswatch\\) > fswatch/src/inc_libs"] { os-distribution = "homebrew" & arch = "arm64" }
1414

15+
["sh" "-exec" "echo -I/usr/local/include/libfswatch/c > fswatch/src/inc_cflags"] { os-family = "bsd" }
16+
["sh" "-exec" "echo \\(-L/usr/local/lib -lfswatch\\) > fswatch/src/inc_libs"] { os-family = "bsd" }
17+
1518
["dune" "build" "-p" name "-j" jobs]
1619
]
1720
depends: [

0 commit comments

Comments
 (0)