FreeBSD Bugzilla – Attachment 162151 Details for
Bug 203837
[New port] emulators/unicorn-engine 0.9
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar-v1
unico.shar (text/plain), 9.91 KB, created by
Kurt Jaeger
on 2015-10-17 14:12:10 UTC
(
hide
)
Description:
shar-v1
Filename:
MIME Type:
Creator:
Kurt Jaeger
Created:
2015-10-17 14:12:10 UTC
Size:
9.91 KB
patch
obsolete
># 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: ># ># unicorn-engine ># unicorn-engine/files ># unicorn-engine/files/patch-Makefile ># unicorn-engine/files/patch-samples_Makefile ># unicorn-engine/files/patch-make.sh ># unicorn-engine/pkg-descr ># unicorn-engine/distinfo ># unicorn-engine/Makefile ># unicorn-engine/pkg-plist ># >echo c - unicorn-engine >mkdir -p unicorn-engine > /dev/null 2>&1 >echo c - unicorn-engine/files >mkdir -p unicorn-engine/files > /dev/null 2>&1 >echo x - unicorn-engine/files/patch-Makefile >sed 's/^X//' >unicorn-engine/files/patch-Makefile << 'f899d9094242139fdb217c3c5b2f5750' >X--- Makefile.orig 2015-10-15 16:22:04 UTC >X+++ Makefile >X@@ -64,18 +64,10 @@ else >X CFLAGS += -g >X endif >X >X-ifeq ($(CROSS),) >X-CC ?= cc >X-AR ?= ar >X-RANLIB ?= ranlib >X-STRIP ?= strip >X-else >X-CC ?= $(CROSS)-gcc >X-AR ?= $(CROSS)-ar >X-RANLIB ?= $(CROSS)-ranlib >X-STRIP ?= $(CROSS)-strip >X-GLIB="-L/usr/$(CROSS)/lib/ -lglib-2.0" >X-endif >X+CC = cc >X+AR = ar >X+RANLIB = ranlib >X+STRIP = strip >X >X # Find GLIB >X ifndef GLIB >X@@ -93,73 +85,33 @@ VERSION_EXT = >X >X BIN_EXT = >X >X-IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep __apple_build_version__ | wc -l | tr -d " ") >X-ifeq ($(IS_APPLE),1) >X-EXT = dylib >X-VERSION_EXT = $(API_MAJOR).$(EXT) >X-AR_EXT = a >X-UNICORN_CFLAGS += -fvisibility=hidden >X-else >X-# Cygwin? >X-IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l) >X-ifeq ($(IS_CYGWIN),1) >X-EXT = dll >X-AR_EXT = lib >X-BIN_EXT = .exe >X-else >X-# mingw? >X-IS_MINGW := $(shell $(CC) --version | grep -i mingw | wc -l) >X-ifeq ($(IS_MINGW),1) >X-EXT = dll >X-AR_EXT = lib >X-BIN_EXT = .exe >X-else >X # Linux, *BSD >X EXT = so >X VERSION_EXT = $(EXT).$(API_MAJOR) >X AR_EXT = a >X UNICORN_CFLAGS += -fvisibility=hidden >X-endif >X-endif >X-endif >X >X-ifeq ($(UNICORN_SHARED),yes) >X-ifeq ($(IS_MINGW),1) >X-LIBRARY = $(BLDIR)/$(LIBNAME).$(EXT) >X-else ifeq ($(IS_CYGWIN),1) >X-LIBRARY = $(BLDIR)/$(LIBNAME).$(EXT) >X-else # *nix >X LIBRARY = $(BLDIR)/lib$(LIBNAME).$(EXT) >X-endif >X-endif >X >X-ifeq ($(UNICORN_STATIC),yes) >X-ifeq ($(IS_MINGW),1) >X-ARCHIVE = $(BLDIR)/$(LIBNAME).$(AR_EXT) >X-else ifeq ($(IS_CYGWIN),1) >X-ARCHIVE = $(BLDIR)/$(LIBNAME).$(AR_EXT) >X-else >X ARCHIVE = $(BLDIR)/lib$(LIBNAME).$(AR_EXT) >X-endif >X-endif >X >X-INSTALL_BIN ?= install >X-INSTALL_DATA ?= $(INSTALL_BIN) -m0644 >X-INSTALL_LIB ?= $(INSTALL_BIN) -m0755 >X+INSTALL_BIN = install >X+INSTALL_DATA ?= $(INSTALL_BIN) >X+INSTALL_LIB ?= $(INSTALL_BIN) >X PKGCFGF = $(LIBNAME).pc >X-PREFIX ?= /usr >X+PREFIX = /usr/local >X DESTDIR ?= >X BLDIR = . >X OBJDIR = . >X UNAME_S := $(shell uname -s) >X >X-LIBDIRARCH ?= lib >X+LIBDIRARCH = lib >X # Uncomment the below line to installs x86_64 libs to lib64/ directory. >X # Or better, pass 'LIBDIRARCH=lib64' to 'make install/uninstall' via 'make.sh'. >X #LIBDIRARCH ?= lib64 >X >X-LIBDIR ?= $(DESTDIR)$(PREFIX)/$(LIBDIRARCH) >X-INCDIR ?= $(DESTDIR)$(PREFIX)/include >X+LIBDIR = $(DESTDIR)$(PREFIX)/$(LIBDIRARCH) >X+INCDIR = $(DESTDIR)$(PREFIX)/include >X >X LIBDATADIR ?= $(LIBDIR) >X >X@@ -183,13 +135,7 @@ endif >X >X all: compile_lib >X ifeq (,$(findstring yes,$(UNICORN_BUILD_CORE_ONLY))) >X-ifeq ($(UNICORN_SHARED),yes) >X-ifeq ($(V),0) >X- @$(INSTALL_DATA) $(LIBRARY) $(BLDIR)/samples/ >X-else >X $(INSTALL_DATA) $(LIBRARY) $(BLDIR)/samples/ >X-endif >X-endif >X >X ifndef BUILDDIR >X @cd samples && $(MAKE) >X@@ -204,7 +150,7 @@ config: >X qemu/config-host.h-timestamp: >X ifeq ($(UNICORN_DEBUG),yes) >X cd qemu && \ >X- ./configure --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" ${UNICORN_QEMU_FLAGS} >X+ ./configure --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" --python=/usr/local/bin/python2.7 ${UNICORN_QEMU_FLAGS} >X printf "$(UNICORN_ARCHS)" > config.log >X else >X cd qemu && \ >X@@ -220,14 +166,7 @@ compile_lib: config qemu/config-host.h-t >X unicorn: $(LIBRARY) $(ARCHIVE) >X >X $(LIBRARY): $(UC_TARGET_OBJ) uc.o hook.o >X-ifeq ($(UNICORN_SHARED),yes) >X-ifeq ($(V),0) >X- $(call log,GEN,$(LIBRARY)) >X- @$(CC) $(CFLAGS) -shared $^ -o $(LIBRARY) $(GLIB) -lm >X-else >X $(CC) $(CFLAGS) -shared $^ -o $(LIBRARY) $(GLIB) -lm >X-endif >X-endif >X >X $(ARCHIVE): $(UC_TARGET_OBJ) uc.o hook.o >X ifeq ($(UNICORN_STATIC),yes) >X@@ -241,13 +180,7 @@ endif >X >X >X $(PKGCFGF): >X-ifeq ($(V),0) >X- $(call log,GEN,$(@:$(BLDIR)/%=%)) >X- @$(generate-pkgcfg) >X-else >X $(generate-pkgcfg) >X-endif >X- >X >X .PHONY: test >X test: all >X@@ -256,17 +189,13 @@ test: all >X >X install: all $(PKGCFGF) >X mkdir -p $(LIBDIR) >X-ifeq ($(UNICORN_SHARED),yes) >X $(INSTALL_LIB) $(LIBRARY) $(LIBDIR) >X ifneq ($(VERSION_EXT),) >X cd $(LIBDIR) && \ >X mv lib$(LIBNAME).$(EXT) lib$(LIBNAME).$(VERSION_EXT) && \ >X ln -s lib$(LIBNAME).$(VERSION_EXT) lib$(LIBNAME).$(EXT) >X endif >X-endif >X-ifeq ($(UNICORN_STATIC),yes) >X $(INSTALL_DATA) $(ARCHIVE) $(LIBDIR) >X-endif >X mkdir -p $(INCDIR)/$(LIBNAME) >X $(INSTALL_DATA) include/unicorn/*.h $(INCDIR)/$(LIBNAME) >X mkdir -p $(PKGCFGDIR) >X@@ -303,10 +232,10 @@ clean: >X $(MAKE) -C qemu clean >X rm -rf *.d *.o >X rm -rf lib$(LIBNAME)* $(LIBNAME)*.lib $(LIBNAME)*.dll >X-ifeq (,$(findstring yes,$(UNICORN_BUILD_CORE_ONLY))) >X- cd samples && $(MAKE) clean >X- rm -f $(BLDIR)/samples/lib$(LIBNAME).$(EXT) >X-endif >X+#ifeq (,$(findstring yes,$(UNICORN_BUILD_CORE_ONLY))) >X+# cd samples && $(MAKE) clean >X+# rm -f $(BLDIR)/samples/lib$(LIBNAME).$(EXT) >X+#endif >X $(MAKE) -C tests/unit clean >X >X ifdef BUILDDIR >X@@ -318,8 +247,8 @@ define generate-pkgcfg >X echo 'Name: unicorn' > $(PKGCFGF) >X echo 'Description: Unicorn emulator engine' >> $(PKGCFGF) >X echo 'Version: $(PKG_VERSION)' >> $(PKGCFGF) >X- echo 'libdir=$(LIBDIR)' >> $(PKGCFGF) >X- echo 'includedir=$(INCDIR)' >> $(PKGCFGF) >X+ echo 'libdir=/usr/local/lib' >> $(PKGCFGF) >X+ echo 'includedir=/usr/local/include' >> $(PKGCFGF) >X echo 'archive=$${libdir}/libunicorn.a' >> $(PKGCFGF) >X echo 'Libs: -L$${libdir} -lunicorn' >> $(PKGCFGF) >X echo 'Cflags: -I$${includedir}' >> $(PKGCFGF) >f899d9094242139fdb217c3c5b2f5750 >echo x - unicorn-engine/files/patch-samples_Makefile >sed 's/^X//' >unicorn-engine/files/patch-samples_Makefile << '032fa75186b9bd05e8ce108f488102ce' >X--- samples/Makefile.orig 2015-10-15 16:22:04 UTC >X+++ samples/Makefile >X@@ -44,22 +44,6 @@ endif >X BIN_EXT = >X AR_EXT = a >X >X-# Cygwin? >X-IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l) >X-ifeq ($(IS_CYGWIN),1) >X-CFLAGS := $(CFLAGS:-fPIC=) >X-BIN_EXT = .exe >X-AR_EXT = lib >X-else >X-# mingw? >X-IS_MINGW := $(shell $(CC) --version | grep -i mingw | wc -l) >X-ifeq ($(IS_MINGW),1) >X-CFLAGS := $(CFLAGS:-fPIC=) >X-BIN_EXT = .exe >X-AR_EXT = lib >X-endif >X-endif >X- >X ifeq ($(UNICORN_STATIC),yes) >X ifeq ($(IS_MINGW),1) >X ARCHIVE = $(LIBDIR)/$(LIBNAME).$(AR_EXT) >032fa75186b9bd05e8ce108f488102ce >echo x - unicorn-engine/files/patch-make.sh >sed 's/^X//' >unicorn-engine/files/patch-make.sh << 'f85c9ce2e15559b187a0f8f33a694f84' >X--- make.sh.orig 2015-10-15 16:22:04 UTC >X+++ make.sh >X@@ -3,6 +3,8 @@ >X # Unicorn Engine >X # By Nguyen Anh Quynh <aquynh@gmail.com>, 2015 >X >X+set -x >X+ >X # Note: to cross-compile to Windows on Linux, Mingw-glib2 is required. >X # See README on how to install Mingw-glib2. >X >X@@ -84,7 +86,7 @@ if [ -n "`echo "$UNAME" | grep BSD`" ]; >X fi >X >X [ -z "${UNAME}" ] && UNAME=$(uname) >X-[ -z "${MAKE}" ] && MAKE=make >X+[ -z "${MAKE}" ] && MAKE=gmake >X #[ -n "${MAKE_JOBS}" ] && MAKE="$MAKE -j${MAKE_JOBS}" >X export CC INSTALL_BIN PREFIX PKGCFGDIR LIBDIRARCH LIBARCHS CFLAGS LDFLAGS >X >f85c9ce2e15559b187a0f8f33a694f84 >echo x - unicorn-engine/pkg-descr >sed 's/^X//' >unicorn-engine/pkg-descr << '98f1a07cafd94dbf794efb2fd3b974ce' >XLightweight multi-platform, multi-architecture CPU emulator framework. >X >XHighlight features: >X >X- Multi-architectures: Arm, Arm64 (Armv8), M68K, Mips, PowerPC, >X Sparc, & X86 (include X86_64). >X- Clean/simple/lightweight/intuitive architecture-neutral API. >X- Implemented in pure C language, with bindings for Python, >X Java, Go & .NET available. >X- Native support for Windows & *nix (with Mac OSX, Linux, *BSD & >X Solaris confirmed). >X- High performance by using Just-In-Time compiler technique. >X- Support fine-grained instrumentation at various levels. >X- Thread-safe by design. >X- Distributed under open source license. >X >XWWW: http://www.unicorn-engine.org/ >98f1a07cafd94dbf794efb2fd3b974ce >echo x - unicorn-engine/distinfo >sed 's/^X//' >unicorn-engine/distinfo << '52c6ece35679eb12bba3cb427c8b7ed0' >XSHA256 (unicorn-engine-unicorn-0.9_GH0.tar.gz) = 1ca03b1c8f6360335567b528210713461e839d47c4eb7c676ba3aa4f72b8cf10 >XSIZE (unicorn-engine-unicorn-0.9_GH0.tar.gz) = 2576109 >52c6ece35679eb12bba3cb427c8b7ed0 >echo x - unicorn-engine/Makefile >sed 's/^X//' >unicorn-engine/Makefile << '295094d37ec4097a776108689cd90444' >X# $FreeBSD$ >X >XPORTNAME= unicorn-engine >XPORTVERSION= 0.9 >XCATEGORIES= emulators >X >XMAINTAINER= pi@FreeBSD.org >XCOMMENT= Lightweight multi-platform, multi-architecture CPU emulator >X >XLICENSE= GPLv2 >X >X# TODO: unicorn-0.9/bindings/python, daraus port machen >X# TODO: unicorn-0.9/bindings/go, daraus port machen >X# TODO: unicorn-0.9/bindings/java, daraus port machen >XUSES= gmake pkgconfig python >XUSE_GNOME= glib20 >XUSE_GITHUB= yes >XGH_ACCOUNT= ${PORTNAME} >XGH_PROJECT= unicorn >X >XMAKE_ENV+= MAKE=gmake AR=ar V=1 >X#MAKE_JOBS_UNSAFE=yes >X >Xdo-build: >X cd ${WRKSRC} && ./make.sh >X >Xinstall: >X ${INSTALL_LIB} ${WRKSRC}/libunicorn.a ${STAGEDIR}${PREFIX}/lib/ >X ${INSTALL_LIB} ${WRKSRC}/libunicorn.so ${STAGEDIR}${PREFIX}/lib/ >X >Xpost-stage: >X ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libunicorn.so.0 >X >X.include <bsd.port.mk> >295094d37ec4097a776108689cd90444 >echo x - unicorn-engine/pkg-plist >sed 's/^X//' >unicorn-engine/pkg-plist << 'f0194c8d2fcf1deb9b4b9fabc5f1e9ae' >Xinclude/unicorn/arm.h >Xinclude/unicorn/arm64.h >Xinclude/unicorn/m68k.h >Xinclude/unicorn/mips.h >Xinclude/unicorn/platform.h >Xinclude/unicorn/sparc.h >Xinclude/unicorn/unicorn.h >Xinclude/unicorn/x86.h >Xlib/libunicorn.a >Xlib/libunicorn.so >Xlib/libunicorn.so.0 >Xlibdata/pkgconfig/unicorn.pc >f0194c8d2fcf1deb9b4b9fabc5f1e9ae >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 203837
: 162151