2014-05-18 18:48:55 +00:00
|
|
|
require "formula"
|
2010-08-26 21:07:02 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libhid < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Library to access and interact with USB HID devices"
|
2014-05-18 18:48:55 +00:00
|
|
|
homepage "http://libhid.alioth.debian.org/"
|
2014-06-04 21:24:58 +00:00
|
|
|
url "http://distcache.freebsd.org/ports-distfiles/libhid-0.2.16.tar.gz"
|
2014-05-18 18:48:55 +00:00
|
|
|
sha1 "9a25fef674e8f20f97fea6700eb91c21ebbbcc02"
|
2010-08-26 21:07:02 +00:00
|
|
|
|
2014-07-03 19:34:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-19 22:28:12 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "906bbdb53b10becc5fa7662513ac7ee98bef5b24" => :yosemite
|
|
|
|
sha1 "fcd7fdf048247a5ecb01abbd56f7c03e330c62ca" => :mavericks
|
2014-07-03 19:34:33 +00:00
|
|
|
end
|
|
|
|
|
2014-05-18 18:48:55 +00:00
|
|
|
depends_on "libusb"
|
|
|
|
depends_on "libusb-compat"
|
2010-08-26 21:07:02 +00:00
|
|
|
|
2014-01-02 17:58:01 +00:00
|
|
|
# Fix compilation error on 10.9
|
2014-05-18 18:48:55 +00:00
|
|
|
patch :DATA
|
2014-01-02 17:58:01 +00:00
|
|
|
|
2010-08-26 21:07:02 +00:00
|
|
|
def install
|
2013-01-29 05:25:46 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-swig"
|
2010-08-26 21:07:02 +00:00
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2014-01-02 17:58:01 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- libhid-0.2.16/src/Makefile.am.org 2014-01-02 19:20:33.000000000 +0200
|
|
|
|
+++ libhid-0.2.16/src/Makefile.am 2014-01-02 19:21:15.000000000 +0200
|
|
|
|
@@ -17,7 +17,7 @@ else
|
|
|
|
if OS_DARWIN
|
|
|
|
OS_SUPPORT_SOURCE = darwin.c
|
|
|
|
AM_CFLAGS += -no-cpp-precomp
|
|
|
|
-AM_LDFLAGS += -lIOKit -framework "CoreFoundation"
|
|
|
|
+AM_LDFLAGS += -framework IOKit -framework "CoreFoundation"
|
|
|
|
else
|
|
|
|
OS_SUPPORT =
|
|
|
|
endif
|
|
|
|
--- libhid-0.2.16/src/Makefile.in.org 2014-01-02 19:20:35.000000000 +0200
|
|
|
|
+++ libhid-0.2.16/src/Makefile.in 2014-01-02 19:21:24.000000000 +0200
|
|
|
|
@@ -39,7 +39,7 @@ POST_UNINSTALL = :
|
|
|
|
build_triplet = @build@
|
|
|
|
host_triplet = @host@
|
|
|
|
@OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_1 = -no-cpp-precomp
|
|
|
|
-@OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_2 = -lIOKit -framework "CoreFoundation"
|
|
|
|
+@OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_2 = -framework IOKit -framework "CoreFoundation"
|
|
|
|
bin_PROGRAMS = libhid-detach-device$(EXEEXT)
|
|
|
|
subdir = src
|
|
|
|
DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
|