From 26f1560c51686e056d0d3452c2ac2edda3808e74 Mon Sep 17 00:00:00 2001 From: Dave Rice Date: Wed, 18 Aug 2021 16:57:36 -0400 Subject: [PATCH 1/2] ignore some files from make process --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f0f1a8f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +deckcontrol +*.o From 39e7aa89f068eae825872af1559dee11be555842 Mon Sep 17 00:00:00 2001 From: Dave Rice Date: Wed, 18 Aug 2021 17:06:31 -0400 Subject: [PATCH 2/2] move blackmagic sdk to a make variable --- Makefile | 11 ----------- README.md | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index d537336..86c9b76 100644 --- a/Makefile +++ b/Makefile @@ -2,18 +2,7 @@ CC = gcc CFLAGS = -g LDFLAGS = -lstdc++ -lpthread -ldl -g -BMSDK = /usr/local/include - UNAME_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') -ifeq ($(UNAME_S),Linux) - ifneq ("$(wildcard /home/linuxbrew/.linuxbrew/include/DeckLinkAPIDispatch.cpp)","") - BMSDK = /home/linuxbrew/.linuxbrew/include - else - ifneq ("$(wildcard ~/.linuxbrew/include/DeckLinkAPIDispatch.cpp)","") - BMSDK = ~/.linuxbrew/include - endif - endif -endif ifeq ($(UNAME_S),Darwin) LDFLAGS += -framework CoreFoundation endif diff --git a/README.md b/README.md index 783c280..e9d4369 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,19 @@ A utility to facilitate deck control via Blackmagic SDK. maintainer: @dericed. + +## installation + +### via homebrew + +Homebrew is recommended to install deckcontrol: + +`brew install amiaopensource/amioas/deckcontrol` + +### to build from source + +The BMDSK variable must be set to the path of the Blackmagic Decklink SDK. The SDK is available at https://www.blackmagicdesign.com/support/ as "Desktop Video #{version} SDK". + +``` +make BMDSK=/path/to/decklink/sdk +```