Permalink
Browse files

dcled 2.2

  • Loading branch information...
jacknagel committed May 15, 2014
1 parent 8b88de9 commit 9b50ef1dd6bd643b32e839044d821db8fecfb9a5
Showing with 12 additions and 17 deletions.
  1. +11 −15 Formula/dcled.rb
  2. +1 −2 Formula/libhid.rb
View
@@ -1,22 +1,18 @@
require 'formula'
require "formula"
class Dcled < Formula
homepage 'http://www.jeffrika.com/~malakai/dcled/index.html'
url 'http://www.jeffrika.com/~malakai/dcled/dcled-2.0.tgz'
sha1 'db01658b44829a5f6d1eae7264648275bda406ed'
homepage "http://www.jeffrika.com/~malakai/dcled/index.html"
url "http://www.jeffrika.com/~malakai/dcled/dcled-2.2.tgz"
sha1 "7cc984d894a5d6a27a4a1e5b86444d85d2e1b565"
depends_on 'libhid'
depends_on "libhid"
depends_on "libusb"
def install
inreplace 'makefile' do |s|
s.change_make_var! 'INSTALLDIR', bin
s.change_make_var! 'FONTDIR', share+name
s.change_make_var! 'CC', ENV.cc
s.change_make_var! 'CFLAGS', "#{ENV.cflags} -I#{HOMEBREW_PREFIX}/include"
s.change_make_var! 'LDFLAGS', ENV.ldflags + ' -lm -lhid' unless ENV.ldflags.nil?
end
system "make"
system "make install"
system "make", "CC=#{ENV.cc}",
"LIBUSB_CFLAGS=-I#{Formula["libusb"].opt_include}/libusb-1.0"
system "make", "install",
"FONTDIR=#{share}/#{name}",
"INSTALLDIR=#{bin}"
end
end
View
@@ -2,8 +2,7 @@
class Libhid < Formula
homepage 'http://libhid.alioth.debian.org/'
url 'http://alioth.debian.org/frs/download.php/file/1958/libhid-0.2.16.tar.gz'
mirror 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/libhid-0.2.16.tar.gz'
url 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/libhid-0.2.16.tar.gz'
sha1 '9a25fef674e8f20f97fea6700eb91c21ebbbcc02'
depends_on 'libusb'

0 comments on commit 9b50ef1

Please sign in to comment.