packages: update homebrew formula
This commit is contained in:
parent
aca71c0714
commit
c7d7884cf7
|
@ -2,43 +2,15 @@ require 'formula'
|
||||||
|
|
||||||
class Capstone < Formula
|
class Capstone < Formula
|
||||||
homepage 'http://capstone-engine.org'
|
homepage 'http://capstone-engine.org'
|
||||||
url 'http://capstone-engine.org/download/2.1/capstone-2.1.1.tgz'
|
url 'http://capstone-engine.org/download/2.1.2/capstone-2.1.2.tgz'
|
||||||
sha1 'f4b114aba2626832f1c217191faaa748245d76a8'
|
sha1 'b6bc29593b0d4ca11473f879b6229d01efca408b'
|
||||||
|
|
||||||
def patches
|
|
||||||
# Fix pkgconfig path. Fixed upstream:
|
|
||||||
# https://github.com/aquynh/capstone/commit/xxx
|
|
||||||
DATA
|
|
||||||
end
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Fixed upstream in next version:
|
# Fixed upstream in next version:
|
||||||
# https://github.com/aquynh/capstone/commit/dc0d04
|
# https://github.com/aquynh/capstone/commit/dc0d04
|
||||||
inreplace 'Makefile', 'lib64', 'lib'
|
|
||||||
system "./make.sh"
|
|
||||||
ENV["PREFIX"] = prefix
|
ENV["PREFIX"] = prefix
|
||||||
|
ENV["HOMEBREW_CAPSTONE"] = "1"
|
||||||
|
system "./make.sh"
|
||||||
system "./make.sh", "install"
|
system "./make.sh", "install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
__END__
|
|
||||||
--- Makefile.org 2014-03-11 16:41:54.000000000 +0800
|
|
||||||
+++ Makefile 2014-03-11 16:43:12.000000000 +0800
|
|
||||||
@@ -145,17 +145,6 @@
|
|
||||||
ifeq ($(UNAME_S),Darwin)
|
|
||||||
EXT = dylib
|
|
||||||
AR_EXT = a
|
|
||||||
-ifneq ($(USE_SYS_DYN_MEM),yes)
|
|
||||||
-# remove string check because OSX kernel complains about missing symbols
|
|
||||||
-CFLAGS += -D_FORTIFY_SOURCE=0
|
|
||||||
-endif
|
|
||||||
-# By default, suppose that Brew is installed & use Brew path for pkgconfig file
|
|
||||||
-PKGCFCGDIR = /usr/local/lib/pkgconfig
|
|
||||||
-# is Macport installed instead?
|
|
||||||
-ifneq (,$(wildcard /opt/local/bin/port))
|
|
||||||
-# then correct the path for pkgconfig file
|
|
||||||
-PKGCFCGDIR = /opt/local/lib/pkgconfig
|
|
||||||
-endif
|
|
||||||
else
|
|
||||||
# Cygwin?
|
|
||||||
IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l)
|
|
||||||
|
|
Loading…
Reference in New Issue