ports/net/unison/files/patch-Makefile.OCaml
Guido Falsi a5f16599ed net/unison: Update to 2.53.4
- Some cosmetic changes to the Makefile
- DOCS option now has TeX as a build dependencies, so users wanting
  to avoid heavy dependencies should disable it
- Port now installs a man page
2024-02-20 10:47:36 +01:00

21 lines
1 KiB
Text

--- Makefile.OCaml.orig 2024-02-18 15:03:04 UTC
+++ Makefile.OCaml
@@ -336,15 +336,9 @@ ifneq ($(findstring $(OSARCH),FreeBSD OpenBSD NetBSD D
ifneq ($(findstring $(OSARCH),FreeBSD OpenBSD NetBSD DragonFly),)
LIBINOTIFY_LIB:=-cclib '$(shell pkg-config --libs libinotify 2> /dev/null || printf ' -linotify')'
LIBINOTIFY_INC:=-ccopt '$(shell pkg-config --cflags libinotify 2> /dev/null)'
- FOUND_LIBINOTIFY := $(shell { printf '' > inotifytest__.ml ;\
- $(CAMLC) $(CAMLCFLAGS) $(CAMLLDFLAGS) $(LIBINOTIFY_LIB) \
- -o inotifytest__ inotifytest__.ml > /dev/null 2>&1 && printf true ; } ;\
- rm -f inotifytest__.ml inotifytest__.cm[oix] inotifytest__.o inotifytest__ > /dev/null 2>&1)
- ifeq ($(FOUND_LIBINOTIFY), true)
- FSMDIR = fsmonitor/inotify
- $(NAME_FSM)$(EXEC_EXT): CAMLCFLAGS += $(LIBINOTIFY_INC)
- $(NAME_FSM)$(EXEC_EXT): CLIBS += $(LIBINOTIFY_LIB)
- endif
+ FSMDIR = fsmonitor/inotify
+ $(NAME_FSM)$(EXEC_EXT): CAMLCFLAGS += $(LIBINOTIFY_INC)
+ $(NAME_FSM)$(EXEC_EXT): CLIBS += $(LIBINOTIFY_LIB)
endif
ifeq ($(OSARCH),SunOS)