[128890] trunk/dports/devel/capstone
khindenburg at macports.org
khindenburg at macports.org
Sat Nov 29 05:44:13 PST 2014
Revision: 128890
https://trac.macports.org/changeset/128890
Author: khindenburg at macports.org
Date: 2014-11-29 05:44:13 -0800 (Sat, 29 Nov 2014)
Log Message:
-----------
capstone: update to 3.0 per maintainer #45939
Modified Paths:
--------------
trunk/dports/devel/capstone/Portfile
trunk/dports/devel/capstone/files/patch-Makefile.diff
Modified: trunk/dports/devel/capstone/Portfile
===================================================================
--- trunk/dports/devel/capstone/Portfile 2014-11-29 13:30:08 UTC (rev 128889)
+++ trunk/dports/devel/capstone/Portfile 2014-11-29 13:44:13 UTC (rev 128890)
@@ -4,7 +4,7 @@
PortSystem 1.0
name capstone
-version 2.1.2
+version 3.0
categories devel
platforms darwin
maintainers gmail.com:aquynh
@@ -18,8 +18,8 @@
master_sites ${homepage}download/${version}/
extract.suffix .tgz
-checksums sha256 49e41d662c5ed4dcd391ec4cfce75fb31ca4bfd245eba9e8f0cb69d6f6e8d7cc \
- rmd160 c4a542752c1ffc6262507a799f96470e076429b9
+checksums rmd160 351ee783d2d18679d3db23e4b5e2ebe2b4d15f12 \
+ sha256 1deacc204f1b0b9df01b543cb1735bf8e857bc0783e6e4749c3760c62e0e7bf0
patchfiles patch-Makefile.diff
Modified: trunk/dports/devel/capstone/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/capstone/files/patch-Makefile.diff 2014-11-29 13:30:08 UTC (rev 128889)
+++ trunk/dports/devel/capstone/files/patch-Makefile.diff 2014-11-29 13:44:13 UTC (rev 128890)
@@ -1,39 +1,17 @@
---- Makefile.org 2014-04-01 06:08:49.000000000 -0700
-+++ Makefile 2014-04-01 06:27:43.000000000 -0700
-@@ -163,19 +163,6 @@
+--- Makefile
++++ Makefile
+@@ -246,14 +246,6 @@ EXT = dylib
VERSION_EXT = $(API_MAJOR).$(EXT)
- LDFLAGS += -dynamiclib -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA) -compatibility_version $(PKG_MAJOR).$(PKG_MINOR)
+ $(LIBNAME)_LDFLAGS += -dynamiclib -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA) -compatibility_version $(PKG_MAJOR).$(PKG_MINOR)
AR_EXT = a
+-# Homebrew wants to make sure its formula does not disable FORTIFY_SOURCE
+-# However, this is not really necessary because 'CAPSTONE_USE_SYS_DYN_MEM=yes' by default
-ifneq ($(HOMEBREW_CAPSTONE),1)
--ifneq ($(USE_SYS_DYN_MEM),yes)
+-ifneq ($(CAPSTONE_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
--endif
else
+ $(LIBNAME)_LDFLAGS += -shared
# Cygwin?
- IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l)
-@@ -239,15 +226,13 @@
- echo 'Version: $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA)' >> $(PKGCFGF)
- endif
- echo 'libdir=$(LIBDIR)' >> $(PKGCFGF)
-- echo 'includedir=$(PREFIX)/include/capstone' >> $(PKGCFGF)
-+ echo 'includedir=$(INCDIR)/capstone' >> $(PKGCFGF)
- echo 'archive=$${libdir}/libcapstone.a' >> $(PKGCFGF)
- echo 'Libs: -L$${libdir} -lcapstone' >> $(PKGCFGF)
- echo 'Cflags: -I$${includedir}' >> $(PKGCFGF)
-
- install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY)
- mkdir -p $(LIBDIR)
-- # remove potential broken old libs
-- rm -f $(LIBDIR)/lib$(LIBNAME).*
- $(INSTALL_LIB) lib$(LIBNAME).$(EXT) $(LIBDIR)
- ifneq ($(VERSION_EXT),)
- cd $(LIBDIR) && \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141129/dc03f701/attachment-0001.html>
More information about the macports-changes
mailing list