Skip to content

Commit

Permalink
Merge pull request #2 from bavc/flexible-make-process
Browse files Browse the repository at this point in the history
Flexible make process
  • Loading branch information
dericed committed Aug 18, 2021
2 parents 45eb6d7 + 39e7aa8 commit 1f0c1ee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deckcontrol
*.o
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 1f0c1ee

Please # to comment.