Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2014 17:16:31 GMT
From:      Oliver Pinter <oliver.pntr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187582: [maintainer update] capstone 2.1.1
Message-ID:  <201403141716.s2EHGVdE033906@cgiserv.freebsd.org>
Resent-Message-ID: <201403141720.s2EHK0k2070437@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187582
>Category:       ports
>Synopsis:       [maintainer update] capstone 2.1.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 14 17:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Pinter
>Release:        
>Organization:
>Environment:
>Description:
New version of Capstone engine: 2.0 -> 2.1.1.

Redports build log: https://redports.org/~op/20140314170420-48057-186625/capstone-2.1.1.log
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	devel
#	devel/capstone
#	devel/capstone/files
#	devel/capstone/files/patch-Makefile
#	devel/capstone/files/patch-tests_Makefile
#	devel/capstone/pkg-plist
#	devel/capstone/Makefile
#	devel/capstone/distinfo
#	devel/capstone/pkg-descr
#
echo c - devel
mkdir -p devel > /dev/null 2>&1
echo c - devel/capstone
mkdir -p devel/capstone > /dev/null 2>&1
echo c - devel/capstone/files
mkdir -p devel/capstone/files > /dev/null 2>&1
echo x - devel/capstone/files/patch-Makefile
sed 's/^X//' >devel/capstone/files/patch-Makefile << '4d57b0d83fd4b7908946b8e1edd55333'
Xdiff -ru /Makefile /Makefile
X--- Makefile	2014-03-14 17:24:44.000000000 +0100
X+++ Makefile	2014-03-14 17:35:33.000000000 +0100
X@@ -16,7 +16,7 @@
X STRIP = $(CROSS)strip
X endif
X 
X-CFLAGS += -fPIC -O3 -Wall -Iinclude
X+CFLAGS += -fPIC -Wall -Iinclude
X 
X ifeq ($(USE_SYS_DYN_MEM),yes)
X CFLAGS += -DUSE_SYS_DYN_MEM
X@@ -39,9 +39,17 @@
X endif
X endif
X 
X+LIBDATADIR = $(LIBDIR)
X+UNAME_S := $(shell uname -s)
X+ifeq ($(UNAME_S), FreeBSD)
X+LIBDATADIR = $(DESTDIR)$(PREFIX)/libdata
X+else
X+LIBDATADIR = $(LIBDIR)
X+endif
X+
X INSTALL_BIN ?= install
X INSTALL_DATA ?= $(INSTALL_BIN) -m0644
X-INSTALL_LIBRARY ?= $(INSTALL_BIN) -m0755
X+INSTALL_LIB ?= $(INSTALL_BIN) -m0755
X 
X LIBNAME = capstone
X 
X@@ -138,8 +146,7 @@
X LIBOBJ += MCInst.o
X 
X 
X-UNAME_S := $(shell uname -s)
X-PKGCFCGDIR = $(LIBDIR)/pkgconfig
X+PKGCFCGDIR = $(LIBDATADIR)/pkgconfig
X 
X # OSX?
X ifeq ($(UNAME_S),Darwin)
X@@ -244,7 +251,7 @@
X 
X install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY)
X 	mkdir -p $(LIBDIR)
X-	$(INSTALL_LIBRARY) lib$(LIBNAME).$(EXT) $(LIBDIR)
X+	$(INSTALL_LIB) lib$(LIBNAME).$(EXT) $(LIBDIR)
X 	$(INSTALL_DATA) lib$(LIBNAME).$(AR_EXT) $(LIBDIR)
X 	mkdir -p $(INCDIR)/$(LIBNAME)
X 	$(INSTALL_DATA) include/*.h $(INCDIR)/$(LIBNAME)
4d57b0d83fd4b7908946b8e1edd55333
echo x - devel/capstone/files/patch-tests_Makefile
sed 's/^X//' >devel/capstone/files/patch-tests_Makefile << '96dd9a5a7164bba339efb6f879f5d89b'
Xdiff -ru work.orig/capstone-2.1.1/tests/Makefile work/capstone-2.1.1/tests/Makefile
X--- tests/Makefile	2014-03-14 17:24:44.000000000 +0100
X+++ tests/Makefile	2014-03-14 17:52:47.000000000 +0100
X@@ -13,7 +13,7 @@
X endif
X 
X 
X-CFLAGS += -fPIC -O3 -Wall -I$(INCDIR) -L$(LIBDIR)
X+CFLAGS += -fPIC -Wall -I$(INCDIR) -L$(LIBDIR)
X 
X LIBNAME = capstone
X 
X@@ -66,8 +66,8 @@
X $(BINARY): $(OBJS)
X 
X %$(BIN_EXT): %.o
X-	${CC} $(CFLAGS) $(LDFLAGS) $< -O3 -Wall -l$(LIBNAME) -o $@
X-	${CC} $(CFLAGS) $(LDFLAGS) $< -O3 -Wall ../lib$(LIBNAME).$(AR_EXT) -o $(subst $(BIN_EXT),,$@).static$(BIN_EXT)
X+	${CC} $(CFLAGS) $(LDFLAGS) $< -Wall -l$(LIBNAME) -o $@
X+	${CC} $(CFLAGS) $(LDFLAGS) $< -Wall ../lib$(LIBNAME).$(AR_EXT) -o $(subst $(BIN_EXT),,$@).static$(BIN_EXT)
X 
X %.o: %.c
X 	${CC} ${CFLAGS} -c $< -o $@
96dd9a5a7164bba339efb6f879f5d89b
echo x - devel/capstone/pkg-plist
sed 's/^X//' >devel/capstone/pkg-plist << '3163f3a81e98d4f80f6173734395927a'
Xinclude/capstone/arm.h
Xinclude/capstone/arm64.h
Xinclude/capstone/capstone.h
Xinclude/capstone/mips.h
Xinclude/capstone/ppc.h
Xinclude/capstone/x86.h
Xlib/libcapstone.a
Xlib/libcapstone.so
Xlibdata/pkgconfig/capstone.pc
X@dirrmtry include/capstone
3163f3a81e98d4f80f6173734395927a
echo x - devel/capstone/Makefile
sed 's/^X//' >devel/capstone/Makefile << 'eb923420b6ee5de6983a578dde37a05b'
X# $FreeBSD$
X
XPORTNAME=	capstone
XPORTVERSION=	2.1.1
XCATEGORIES=	devel
XMASTER_SITES=	http://capstone-engine.org/download/2.1/
X
XMAINTAINER=	oliver.pntr@gmail.com
XCOMMENT=	Multi-platform, multi-architecture disassembly framework
X
XLICENSE=	BSD3CLAUSE
X
XUSES=		gmake
XUSE_LDCONFIG=	yes
X
XMAKE_ENV+=	INSTALL_LIB="${INSTALL_LIB}" \
X		INSTALL_DATA="${INSTALL_DATA}"
X
Xpost-build:
X	# The pkgconfig file is generated and points to stagedir
X	${REINPLACE_CMD} -e '/libdir/s|\(libdir=\)\(.*\)\(devel/capstone/work/stage\)|\1|g' ${WRKSRC}/capstone.pc
X
X.include <bsd.port.mk>
eb923420b6ee5de6983a578dde37a05b
echo x - devel/capstone/distinfo
sed 's/^X//' >devel/capstone/distinfo << 'fe9d0ab735c25aa703cfeff373bb4d0d'
XSHA256 (capstone-2.1.1.tar.gz) = 8af3c0a0f439d516277f308938935003d072f34a34fcf2e8dcf07dd415b1ca65
XSIZE (capstone-2.1.1.tar.gz) = 1353194
fe9d0ab735c25aa703cfeff373bb4d0d
echo x - devel/capstone/pkg-descr
sed 's/^X//' >devel/capstone/pkg-descr << '24d703243c963978da49c5412a55e8ca'
XCapstone is a lightweight multi-platform, multi-architecture disassembly
Xframework.
X
XFeatures:
X * Supported architectures: ARM, ARM64 (aka ARMv8), Mips, PowerPC & X86
X * Clean/simple/lightweight/intuitive architecture-neutral API
X * Provide details on disassembled instruction (called "decomposer")
X * Provide some semantics of the disassembled instruction, such as list of
X   implicit registers read & written.
X * Implemented in pure C language, with bindings for Python, Ruby, C#, Java,
X   GO, OCaml & Vala available.
X * Native support for Windows & *nix (including MacOSX, Linux, *BSD & Solaris)
X * Thread-safe by design
X * Distributed under the open source BSD license
X
XWWW: http://capstone-engine.org/
24d703243c963978da49c5412a55e8ca
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403141716.s2EHGVdE033906>