Skip to content

Instantly share code, notes, and snippets.

@bastibeckr
Last active February 17, 2018 19:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bastibeckr/d698c5bccb320fe9af80 to your computer and use it in GitHub Desktop.
Save bastibeckr/d698c5bccb320fe9af80 to your computer and use it in GitHub Desktop.
bmdtools homebrew formula
# based on https://github.com/amiaopensource/homebrew-amiaos
require 'formula'
class Bmdtools < Formula
homepage 'http://github.com/lu-zero/bmdtools'
head 'https://github.com/lu-zero/bmdtools.git'
env :std
depends_on 'pkg-config' => :build
depends_on 'amiaopensource/amiaos/decklinksdk' => :build
depends_on 'libav' => :build
def install
system "make", "SDK_PATH=/usr/local/include", "SYS=Darwin"
bin.install 'bmdcapture'
bin.install 'bmdgenlock'
bin.install 'bmdplay'
end
end
# based on https://github.com/amiaopensource/homebrew-amiaos
require 'formula'
class Decklinksdk < Formula
homepage 'http://www.blackmagicdesign.com/support/sdks/'
url 'http://software.blackmagicdesign.com/SDK/Blackmagic_DeckLink_SDK_10.1.zip'
sha256 '9b7bd745c470c3710885f5a3128a8e6ee44052a6684813e30bf9196b863b84a2'
def install
bin.install 'Mac/Samples/bin/BypassControl'
bin.install 'Mac/Samples/bin/CaptureFromTape'
bin.install 'Mac/Samples/bin/DeckControl'
bin.install 'Mac/Samples/bin/DeviceList'
bin.install 'Mac/Samples/bin/ExportToTape'
include.install Dir['Mac/include/*']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment