Ignore:
Timestamp:
Mar 7, 2014, 5:09:28 AM (5 years ago)
Author:
ryandesign@…
Message:

capstone: update to 2.1 (#42724)

Location:
trunk/dports/devel/capstone
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/capstone/Portfile

    r117078 r117652  
    55
    66name                capstone
    7 version             2.0
    8 revision            1
     7version             2.1
    98categories          devel
    109platforms           darwin
     
    2019extract.suffix      .tgz
    2120
    22 checksums           sha256  5d871b1e52047d1b2882bbcc6f049205ba6acc8d55d746937d22af5d0b33fa9e \
    23                     rmd160  bb7551404e203fa99240b5e33c3d30ca8555830f
     21checksums           sha256  5ebc168212a159218a4454c72d0c060b8a8af78605b93b214b3d6c5e2a124896 \
     22                    rmd160  47b9a1949b7c82ec235dcb96a81d456f3b18eae6
    2423
    2524patchfiles          patch-Makefile.diff
  • trunk/dports/devel/capstone/files/patch-Makefile.diff

    r117077 r117652  
    1 --- Makefile.orig       2014-01-22 04:33:35.000000000 -0600
    2 +++ Makefile    2014-02-14 18:38:48.000000000 -0600
    3 @@ -21,20 +21,23 @@
     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 @@
    44 CFLAGS += -DUSE_SYS_DYN_MEM
    55 endif
     
    1111-INCDIR = $(DESTDIR)$(PREFIX)/include
    1212+INCDIR = $(PREFIX)/include
    13 +
     13 
     14-LIBDIR = $(DESTDIR)$(PREFIX)/lib
    1415+UNAME_S := $(shell uname -s)
    1516+ifeq ($(UNAME_S),Darwin)
     
    1819+LDFLAGS += -shared
    1920+endif
    20 
    21 -LIBDIR = $(DESTDIR)$(PREFIX)/lib
     21+
     22+
    2223+LIBDIR = $(PREFIX)/lib
    2324 # on x86_64, we might have /usr/lib64 directory instead of /usr/lib
     
    3435 endif
    3536 
    36 @@ -88,7 +91,6 @@
    37  
     37@@ -136,21 +140,10 @@
     38 LIBOBJ += $(LIBOBJ_ARM) $(LIBOBJ_ARM64) $(LIBOBJ_MIPS) $(LIBOBJ_PPC) $(LIBOBJ_X86)
    3839 LIBOBJ += MCInst.o
    3940 
     41-
    4042-UNAME_S := $(shell uname -s)
     43-PKGCFCGDIR = $(LIBDIR)/pkgconfig
     44-
    4145 # OSX?
    4246 ifeq ($(UNAME_S),Darwin)
    4347 EXT = dylib
    44 @@ -145,25 +147,25 @@
     48 AR_EXT = a
     49-# By default, suppose that Brew is installed & use Brew path for pkgconfig file
     50-PKGCFCGDIR = /usr/local/lib/pkgconfig
     51-# is Macport installed instead?
     52-ifneq (,$(wildcard /opt/local/bin/port))
     53-# then correct the path for pkgconfig file
     54-PKGCFCGDIR = /opt/local/lib/pkgconfig
     55-endif
     56 else
     57 # Cygwin?
     58 IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l)
     59@@ -228,25 +221,25 @@
    4560        echo 'Description: Capstone disassembler engine' >> $(PKGCFGF)
    4661        echo 'Version: $(VERSION)' >> $(PKGCFGF)
     
    5873-       mkdir -p $(INCDIR)/$(LIBNAME)
    5974-       $(INSTALL_DATA) include/*.h $(INCDIR)/$(LIBNAME)
    60 -       mkdir -p $(LIBDIR)/pkgconfig
    61 -       $(INSTALL_DATA) $(PKGCFGF) $(LIBDIR)/pkgconfig/
     75-       mkdir -p $(PKGCFCGDIR)
     76-       $(INSTALL_DATA) $(PKGCFGF) $(PKGCFCGDIR)/
    6277+       mkdir -p $(DESTDIR)$(LIBDIR)
    6378+       $(INSTALL_LIBRARY) lib$(LIBNAME).$(EXT) $(DESTDIR)$(LIBDIR)
     
    7287-       rm -f $(LIBDIR)/lib$(LIBNAME).$(EXT)
    7388-       rm -f $(LIBDIR)/lib$(LIBNAME).$(AR_EXT)
    74 -       rm -f $(LIBDIR)/pkgconfig/$(LIBNAME).pc
     89-       rm -f $(PKGCFCGDIR)/$(LIBNAME).pc
    7590+       rm -rf $(DESTDIR)$(INCDIR)/$(LIBNAME)
    7691+       rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).$(EXT)
Note: See TracChangeset for help on using the changeset viewer.