Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Flexible make process #2

Merged
merged 2 commits into from
Aug 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```