Skip to content
Permalink
Browse files

capstone: Build for the right archs

Closes: https://trac.macports.org/ticket/57229

Also add maintainer's GitHub handle.
  • Loading branch information
ryandesign authored and pmetzger committed Oct 6, 2018
1 parent 7bf07eb commit a1a4c4133169073f82ebfe1b40b131a9beac9dec
Showing with 11 additions and 5 deletions.
  1. +11 −5 devel/capstone/Portfile
@@ -4,9 +4,10 @@ PortSystem 1.0
PortGroup github 1.0

github.setup aquynh capstone 3.0.5
revision 1
categories devel
platforms darwin
maintainers gmail.com:aquynh
maintainers {gmail.com:aquynh @aquynh}
license BSD

description Capstone disassembly engine
@@ -22,16 +23,21 @@ checksums rmd160 a10436a751acd5f78aba6279787d46a22bd4a744 \
patch.pre_args -p1
patchfiles patch-Makefile.diff

variant universal {}

use_configure no

universal_variant yes

build.env CC=${configure.cc} \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
CFLAGS="${configure.cflags}" \
LDFLAGS="${configure.ldflags}" \
PREFIX=${prefix} \
V=1

pre-build {
build.args-append \
LIBARCHS="[get_canonical_archs]"
}

eval destroot.env ${build.env}

github.livecheck.regex {([0-9.]+)}

0 comments on commit a1a4c41

Please sign in to comment.
You can’t perform that action at this time.