Skip to content

Commit

Permalink
Merge pull request ocaml#24532 from kandu/fswatch
Browse files Browse the repository at this point in the history
[update] conf-fswatch 11-0.1.3 & fswatch 11-0.1.3 add support for bsd os-family
  • Loading branch information
mseri authored Sep 27, 2023
2 parents f018ffe + 38f68a5 commit 4725446
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/conf-fswatch/conf-fswatch.11-0.1.3/opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ bug-reports: "https://github.com/kandu/ocaml-fswatch/issues"
license: "MIT"

build: [
["sh" "-exec" "cc -I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c $CFLAGS test.c -lfswatch"] { !(os-distribution = "homebrew" & arch = "arm64") }
["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"}
["sh" "-exec" "cc -I$(brew --prefix)/include/libfswatch/c -L$(brew --prefix)/lib $CFLAGS test.c -lfswatch"] { os-distribution = "homebrew" & arch = "arm64" }
["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"}
]

depexts: [
Expand Down
7 changes: 5 additions & 2 deletions packages/fswatch/fswatch.11-0.1.3/opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ bug-reports: "https://github.com/kandu/ocaml-fswatch/issues"
license: "MIT"
dev-repo: "git+https://github.com/kandu/ocaml-fswatch"
build: [
["sh" "-exec" "echo \\(-I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c\\) > fswatch/src/inc_cflags"] { !(os-distribution = "homebrew" & arch = "arm64") }
["sh" "-exec" "echo -lfswatch > fswatch/src/inc_libs"] { !(os-distribution = "homebrew" & arch = "arm64") }
["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" }
["sh" "-exec" "echo -lfswatch > fswatch/src/inc_libs"] { !(os-distribution = "homebrew" & arch = "arm64") & os-family != "bsd" }

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

["sh" "-exec" "echo -I/usr/local/include/libfswatch/c > fswatch/src/inc_cflags"] { os-family = "bsd" }
["sh" "-exec" "echo \\(-L/usr/local/lib -lfswatch\\) > fswatch/src/inc_libs"] { os-family = "bsd" }

["dune" "build" "-p" name "-j" jobs]
]
depends: [
Expand Down

0 comments on commit 4725446

Please sign in to comment.