diff --git a/devel/capstone/Portfile b/devel/capstone/Portfile
index e75cb9d..b2fec41 100644
a
|
b
|
|
4 | 4 | PortSystem 1.0 |
5 | 5 | |
6 | 6 | name capstone |
7 | | version 2.1 |
| 7 | version 2.1.1 |
8 | 8 | categories devel |
9 | 9 | platforms darwin |
10 | 10 | maintainers gmail.com:aquynh |
… |
… |
homepage http://www.capstone-engine.org/ |
18 | 18 | master_sites ${homepage}download/${version}/ |
19 | 19 | extract.suffix .tgz |
20 | 20 | |
21 | | checksums sha256 5ebc168212a159218a4454c72d0c060b8a8af78605b93b214b3d6c5e2a124896 \ |
22 | | rmd160 47b9a1949b7c82ec235dcb96a81d456f3b18eae6 |
| 21 | checksums sha256 8af3c0a0f439d516277f308938935003d072f34a34fcf2e8dcf07dd415b1ca65 \ |
| 22 | rmd160 ae65771d182feef575fd4a19bc597170ba42ebcf |
23 | 23 | |
24 | 24 | patchfiles patch-Makefile.diff |
25 | 25 | |
diff --git a/devel/capstone/files/patch-Makefile.diff b/devel/capstone/files/patch-Makefile.diff
index 7e081b6..bfcb18d 100644
a
|
b
|
|
1 | | --- Makefile.org 2014-03-04 18:18:25.000000000 -0800 |
2 | | +++ Makefile 2014-03-04 18:27:48.000000000 -0800 |
3 | | @@ -21,20 +21,24 @@ |
| 1 | --- Makefile.org 2014-03-10 23:12:11.000000000 -0700 |
| 2 | +++ Makefile 2014-03-10 23:33:10.000000000 -0700 |
| 3 | @@ -22,20 +22,24 @@ |
4 | 4 | CFLAGS += -DUSE_SYS_DYN_MEM |
5 | 5 | endif |
6 | 6 | |
… |
… |
|
22 | 22 | + |
23 | 23 | +LIBDIR = $(PREFIX)/lib |
24 | 24 | # on x86_64, we might have /usr/lib64 directory instead of /usr/lib |
25 | | -MACHINE := $(shell uname -m) |
26 | | -ifeq ($(MACHINE), x86_64) |
27 | | +UNAME_M := $(shell uname -m) |
28 | | +ifeq ($(UNAME_M),x86_64) |
| 25 | UNAME_M := $(shell uname -m) |
| 26 | ifeq ($(UNAME_M), x86_64) |
29 | 27 | ifeq (,$(wildcard $(LIBDIR))) |
30 | 28 | -LIBDIR = $(DESTDIR)$(PREFIX)/lib64 |
31 | 29 | -else |
… |
… |
|
34 | 32 | endif |
35 | 33 | endif |
36 | 34 | |
37 | | @@ -136,21 +140,10 @@ |
38 | | LIBOBJ += $(LIBOBJ_ARM) $(LIBOBJ_ARM64) $(LIBOBJ_MIPS) $(LIBOBJ_PPC) $(LIBOBJ_X86) |
| 35 | @@ -138,7 +142,6 @@ |
39 | 36 | LIBOBJ += MCInst.o |
40 | 37 | |
41 | | - |
| 38 | |
42 | 39 | -UNAME_S := $(shell uname -s) |
43 | | -PKGCFCGDIR = $(LIBDIR)/pkgconfig |
44 | | - |
| 40 | PKGCFCGDIR = $(LIBDIR)/pkgconfig |
| 41 | |
45 | 42 | # OSX? |
46 | | ifeq ($(UNAME_S),Darwin) |
47 | | EXT = dylib |
48 | | AR_EXT = a |
| 43 | @@ -149,13 +152,6 @@ |
| 44 | # remove string check because OSX kernel complains about missing symbols |
| 45 | CFLAGS += -D_FORTIFY_SOURCE=0 |
| 46 | endif |
49 | 47 | -# By default, suppose that Brew is installed & use Brew path for pkgconfig file |
50 | 48 | -PKGCFCGDIR = /usr/local/lib/pkgconfig |
51 | 49 | -# is Macport installed instead? |
… |
… |
|
56 | 54 | else |
57 | 55 | # Cygwin? |
58 | 56 | IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l) |
59 | | @@ -228,25 +221,25 @@ |
60 | | echo 'Description: Capstone disassembler engine' >> $(PKGCFGF) |
61 | | echo 'Version: $(VERSION)' >> $(PKGCFGF) |
| 57 | @@ -237,25 +233,25 @@ |
| 58 | echo 'Version: $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA)' >> $(PKGCFGF) |
| 59 | endif |
62 | 60 | echo 'libdir=$(LIBDIR)' >> $(PKGCFGF) |
63 | 61 | - echo 'includedir=$(PREFIX)/include/capstone' >> $(PKGCFGF) |
64 | 62 | + echo 'includedir=$(INCDIR)/capstone' >> $(PKGCFGF) |
… |
… |
|
79 | 77 | + $(INSTALL_DATA) lib$(LIBNAME).$(AR_EXT) $(DESTDIR)$(LIBDIR) |
80 | 78 | + mkdir -p $(DESTDIR)$(INCDIR)/$(LIBNAME) |
81 | 79 | + $(INSTALL_DATA) include/*.h $(DESTDIR)$(INCDIR)/$(LIBNAME) |
82 | | + mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig |
83 | | + $(INSTALL_DATA) $(PKGCFGF) $(DESTDIR)$(LIBDIR)/pkgconfig/ |
| 80 | + mkdir -p $(DESTDIR)$(PKGCFCGDIR) |
| 81 | + $(INSTALL_DATA) $(PKGCFGF) $(DESTDIR)$(PKGCFCGDIR)/ |
84 | 82 | |
85 | 83 | uninstall: |
86 | 84 | - rm -rf $(INCDIR)/$(LIBNAME) |
… |
… |
|
90 | 88 | + rm -rf $(DESTDIR)$(INCDIR)/$(LIBNAME) |
91 | 89 | + rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).$(EXT) |
92 | 90 | + rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).$(AR_EXT) |
93 | | + rm -f $(DESTDIR)$(LIBDIR)/pkgconfig/$(LIBNAME).pc |
| 91 | + rm -f $(DESTDIR)$(PKGCFCGDIR)/$(LIBNAME).pc |
94 | 92 | |
95 | 93 | clean: |
96 | 94 | rm -f $(LIBOBJ) lib$(LIBNAME).* |