aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Riley2014-02-21 14:58:59 -0500
committerAdam Vandenberg2014-04-07 21:31:58 -0700
commit2e014f9407c952fd72c7b0e32d6984b6ce077d6b (patch)
treeebd7595f27e89d04018480f44c14aeba6e7d42d3 /Library
parenta8be167345ffc7e3d0c990bf8f830fe14ef7ae52 (diff)
downloadhomebrew-2e014f9407c952fd72c7b0e32d6984b6ce077d6b.tar.bz2
opencbm 0.4.99.97: open Commodore device access
Provides disk and other device manipulation programs for Commodore Business Machine peripherals such as the 1541/1571 disk drives (often used with the Commodore 64/128) and printers. Added initial revision of opencbm tools for accessing Commodore disks, printers, etc. Tested to work under OS X 10.9/x86-64 and 10.4/ppc using tigerbrew. Closes #26905. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/opencbm.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/opencbm.rb b/Library/Formula/opencbm.rb
new file mode 100644
index 000000000..560c92318
--- /dev/null
+++ b/Library/Formula/opencbm.rb
@@ -0,0 +1,35 @@
+require "formula"
+
+class Opencbm < Formula
+ homepage "http://www.trikaliotis.net/opencbm-alpha"
+ url "http://www.trikaliotis.net/Download/opencbm-0.4.99.97/opencbm-0.4.99.97.tar.bz2"
+ sha1 "e0f4b6c3d134d77e3da66ce4e2e1d945fded5fb6"
+ head "git://git.code.sf.net/p/opencbm/code"
+
+ # cc65 is only used to build binary blobs included with the programs; it's
+ # not necessary in its own right.
+ depends_on "cc65" => :build
+ depends_on "libusb-compat"
+
+ def install
+ # This one definitely breaks with parallel build.
+ ENV.deparallelize
+
+ args = %W[
+ -fLINUX/Makefile
+ LIBUSB_CONFIG=#{Formula["libusb-compat"].bin}/libusb-config
+ PREFIX=#{prefix}
+ MANDIR=#{man1}
+ ]
+
+ # The build is buried one directory down.
+ cd "opencbm" do
+ system "make", *args
+ system "make", "install-all", *args
+ end
+ end
+
+ test do
+ system "#{bin}/cbmctrl", "--help"
+ end
+end