Skip to content

Commit

Permalink
move blackmagic sdk to a make variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dericed committed Aug 18, 2021
1 parent 26f1560 commit 39e7aa8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 39e7aa8

Please # to comment.