diff --git a/README.md b/README.md index 87026e3..39485dd 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Toxic is a [Tox](https://tox.im)-based instant messenging client which formerly * You can add specific flags to the Makefile with `USER_CFLAGS=""` and/or `USER_LDFLAGS=""` * You can pass your own flags to the Makefile with `CFLAGS=""` and/or `LDFLAGS=""` (this will supersede the default ones) * Audio call support is automatically enabled if all dependencies are found +* If you want to build toxic without audio call support, you can use `make DISABLE_AV=1` ### Packaging * For packaging purpose, you can use `DESTDIR=""` to specify a directory where to store installed files diff --git a/build/Makefile b/build/Makefile index 0014392..ecf0777 100644 --- a/build/Makefile +++ b/build/Makefile @@ -35,6 +35,9 @@ UNAME_S = $(shell uname -s) ifeq ($(UNAME_S), Linux) -include $(CFG_DIR)/Linux.mk endif +ifeq ($(UNAME_S), FreeBSD) + -include $(CFG_DIR)/FreeBSD.mk +endif ifeq ($(UNAME_S), Darwin) -include $(CFG_DIR)/Darwin.mk endif diff --git a/cfg/FreeBSD.mk b/cfg/FreeBSD.mk new file mode 100644 index 0000000..a4c1e43 --- /dev/null +++ b/cfg/FreeBSD.mk @@ -0,0 +1,3 @@ +# Specials options for freebsd systems +LIBS := $(filter-out ncursesw, $(LIBS)) +LDFLAGS += -lncursesw