Index: head/emulators/Makefile =================================================================== --- head/emulators/Makefile (revision 428644) +++ head/emulators/Makefile (revision 428645) @@ -1,189 +1,190 @@ # $FreeBSD$ # COMMENT = Emulators for other operating systems SUBDIR += adamem SUBDIR += advancemame SUBDIR += advancemenu SUBDIR += advancemess SUBDIR += aftp SUBDIR += aqemu SUBDIR += atari800 SUBDIR += bfe SUBDIR += bochs SUBDIR += bsvc SUBDIR += catapult SUBDIR += cinc SUBDIR += cingb SUBDIR += citra SUBDIR += citra-qt5 SUBDIR += cpmemu SUBDIR += cpmtools SUBDIR += cpmtools2 SUBDIR += darcnes SUBDIR += dboxfe SUBDIR += desmume SUBDIR += dgen-sdl SUBDIR += dolphin-emu SUBDIR += dosbox SUBDIR += doscmd SUBDIR += dtcyber SUBDIR += dynagen SUBDIR += dynagui SUBDIR += dynamips-community SUBDIR += e-uae SUBDIR += fceux SUBDIR += fmsx SUBDIR += frodo SUBDIR += fs-uae SUBDIR += fs-uae-launcher SUBDIR += fuse SUBDIR += fuse-roms SUBDIR += fuse-utils SUBDIR += gbe SUBDIR += gem5 SUBDIR += generator SUBDIR += generator-cbiere SUBDIR += gens SUBDIR += gngb SUBDIR += gngeo SUBDIR += gns3 SUBDIR += gnuboy SUBDIR += gxemul SUBDIR += hatari SUBDIR += hercules SUBDIR += higan SUBDIR += hugo SUBDIR += hyperv-is SUBDIR += i386-wine SUBDIR += i386-wine-devel SUBDIR += i386-wine-staging SUBDIR += ia64sim SUBDIR += ines SUBDIR += javatari SUBDIR += joytran SUBDIR += jzintv SUBDIR += kcemu SUBDIR += klh10 SUBDIR += lib765 SUBDIR += libdsk SUBDIR += libspectrum SUBDIR += linux-c6 SUBDIR += linux-c7 SUBDIR += linux-f10 SUBDIR += linux_base-c6 SUBDIR += linux_base-c7 SUBDIR += linux_base-f10 SUBDIR += lisaem SUBDIR += loemu SUBDIR += m2000 SUBDIR += mame SUBDIR += mastergear SUBDIR += mednafen SUBDIR += mess SUBDIR += mtools SUBDIR += mupen64plus SUBDIR += mupen64plus-audio-sdl SUBDIR += mupen64plus-core SUBDIR += mupen64plus-input-sdl SUBDIR += mupen64plus-plugins SUBDIR += mupen64plus-rsp-cxd4 SUBDIR += mupen64plus-rsp-hle SUBDIR += mupen64plus-rsp-z64 SUBDIR += mupen64plus-ui-console SUBDIR += mupen64plus-video-arachnoid SUBDIR += mupen64plus-video-glide64 SUBDIR += mupen64plus-video-glide64mk2 SUBDIR += mupen64plus-video-rice SUBDIR += mupen64plus-video-z64 SUBDIR += nestopia SUBDIR += nonpareil SUBDIR += o2em SUBDIR += ods2reader SUBDIR += open-vm-tools SUBDIR += open-vm-tools-nox11 SUBDIR += openmsx SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools SUBDIR += pcemu SUBDIR += pcsxr SUBDIR += pearpc SUBDIR += pipelight SUBDIR += playonbsd SUBDIR += ppsspp SUBDIR += ppsspp-qt4 SUBDIR += ppsspp-qt5 SUBDIR += py-gns3-converter SUBDIR += q4wine SUBDIR += qemu SUBDIR += qemu-cheri SUBDIR += qemu-cheri128 SUBDIR += qemu-cheri128m SUBDIR += qemu-devel SUBDIR += qemu-launcher SUBDIR += qemu-sbruno SUBDIR += qemu-user-static SUBDIR += qemu-utils SUBDIR += qmc2 SUBDIR += qtemu SUBDIR += quasi88 SUBDIR += raine SUBDIR += rtc SUBDIR += rubygem-fission SUBDIR += simh SUBDIR += skyeye SUBDIR += snes9express SUBDIR += snes9x SUBDIR += snes9x-gtk SUBDIR += spim SUBDIR += stella SUBDIR += stonx SUBDIR += swine SUBDIR += tiemu3 SUBDIR += tilem SUBDIR += tme SUBDIR += tpm-emulator SUBDIR += tuxnes SUBDIR += uae SUBDIR += ucon64 + SUBDIR += unicorn SUBDIR += vba SUBDIR += vboxtool SUBDIR += vgb-bin SUBDIR += vgba-bin SUBDIR += vice SUBDIR += virtio-kmod SUBDIR += virtualbox-ose SUBDIR += virtualbox-ose-additions SUBDIR += virtualbox-ose-additions-nox11 SUBDIR += virtualbox-ose-kmod SUBDIR += virtualbox-ose-nox11 SUBDIR += visualboyadvance-m SUBDIR += vmips SUBDIR += vmsbackup SUBDIR += vmw SUBDIR += vpcs SUBDIR += vxtools SUBDIR += wine SUBDIR += wine-devel SUBDIR += wine-gecko SUBDIR += wine-gecko-devel SUBDIR += wine-mono SUBDIR += wine-mono-devel SUBDIR += wine-staging SUBDIR += winetricks SUBDIR += wxmupen64plus SUBDIR += x48 SUBDIR += x49gp SUBDIR += xbraitenberg SUBDIR += xcpc SUBDIR += xen SUBDIR += xen-kernel SUBDIR += xhomer SUBDIR += xsystem35 SUBDIR += xzx SUBDIR += yabause SUBDIR += yape SUBDIR += zsnes .include Index: head/emulators/unicorn/Makefile =================================================================== --- head/emulators/unicorn/Makefile (nonexistent) +++ head/emulators/unicorn/Makefile (revision 428645) @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= unicorn +PORTVERSION= 0.9 +CATEGORIES= emulators + +MAINTAINER= antoine@FreeBSD.org +COMMENT= Unicorn CPU emulator framework + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +TEST_DEPENDS= cmocka>0:sysutils/cmocka + +USE_GITHUB= yes +GH_ACCOUNT= unicorn-engine + +USES= gmake pkgconfig python:2.7,build +USE_GNOME= glib20 +USE_LDCONFIG= yes +MAKE_ENV= INSTALL_LIB="${INSTALL_LIB}" \ + UNICORN_QEMU_FLAGS=--python=${PYTHON_CMD} \ + V=1 +TEST_TARGET= test +TEST_WRKSRC= ${WRKSRC}/tests/unit +BROKEN_FreeBSD_9_i386= fails to link + +.include Property changes on: head/emulators/unicorn/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/unicorn/distinfo =================================================================== --- head/emulators/unicorn/distinfo (nonexistent) +++ head/emulators/unicorn/distinfo (revision 428645) @@ -0,0 +1,3 @@ +TIMESTAMP = 1481841704 +SHA256 (unicorn-engine-unicorn-0.9_GH0.tar.gz) = 1ca03b1c8f6360335567b528210713461e839d47c4eb7c676ba3aa4f72b8cf10 +SIZE (unicorn-engine-unicorn-0.9_GH0.tar.gz) = 2576109 Property changes on: head/emulators/unicorn/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/unicorn/files/patch-Makefile =================================================================== --- head/emulators/unicorn/files/patch-Makefile (nonexistent) +++ head/emulators/unicorn/files/patch-Makefile (revision 428645) @@ -0,0 +1,61 @@ +--- Makefile.orig 2015-10-15 16:22:04 UTC ++++ Makefile +@@ -59,9 +59,9 @@ UNICORN_CFLAGS += -fPIC + V ?= 0 + + ifeq ($(UNICORN_DEBUG),yes) +-CFLAGS += -O3 ++#CFLAGS += -O3 + else +-CFLAGS += -g ++#CFLAGS += -g + endif + + ifeq ($(CROSS),) +@@ -158,7 +158,7 @@ LIBDIRARCH ?= lib + # Or better, pass 'LIBDIRARCH=lib64' to 'make install/uninstall' via 'make.sh'. + #LIBDIRARCH ?= lib64 + +-LIBDIR ?= $(DESTDIR)$(PREFIX)/$(LIBDIRARCH) ++LIBDIR = $(DESTDIR)$(PREFIX)/$(LIBDIRARCH) + INCDIR ?= $(DESTDIR)$(PREFIX)/include + + LIBDATADIR ?= $(LIBDIR) +@@ -181,7 +181,7 @@ else + PKGCFGDIR ?= $(LIBDATADIR)/pkgconfig + endif + +-all: compile_lib ++all: compile_lib $(PKGCFGF) + ifeq (,$(findstring yes,$(UNICORN_BUILD_CORE_ONLY))) + ifeq ($(UNICORN_SHARED),yes) + ifeq ($(V),0) +@@ -213,9 +213,8 @@ else + endif + + compile_lib: config qemu/config-host.h-timestamp +- rm -rf lib$(LIBNAME)* $(LIBNAME)*.lib $(LIBNAME)*.dll && cd qemu && $(MAKE) -j 8 ++ cd qemu && $(MAKE) + $(MAKE) unicorn +- cd samples && $(MAKE) clean + + unicorn: $(LIBRARY) $(ARCHIVE) + +@@ -225,7 +224,7 @@ ifeq ($(V),0) + $(call log,GEN,$(LIBRARY)) + @$(CC) $(CFLAGS) -shared $^ -o $(LIBRARY) $(GLIB) -lm + else +- $(CC) $(CFLAGS) -shared $^ -o $(LIBRARY) $(GLIB) -lm ++ $(CC) $(CFLAGS) -shared -Wl,-soname,libunicorn.so $^ -o $(LIBRARY) $(GLIB) -lm + endif + endif + +@@ -254,7 +253,7 @@ test: all + $(MAKE) -C tests/unit test + + +-install: all $(PKGCFGF) ++install: all + mkdir -p $(LIBDIR) + ifeq ($(UNICORN_SHARED),yes) + $(INSTALL_LIB) $(LIBRARY) $(LIBDIR) Property changes on: head/emulators/unicorn/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/unicorn/files/patch-qemu_configure =================================================================== --- head/emulators/unicorn/files/patch-qemu_configure (nonexistent) +++ head/emulators/unicorn/files/patch-qemu_configure (revision 428645) @@ -0,0 +1,18 @@ +--- qemu/configure.orig 2015-10-15 16:22:04 UTC ++++ qemu/configure +@@ -285,11 +285,11 @@ QEMU_CFLAGS="-Wstrict-prototypes -Wredun + QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS" + QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include" + if test "$debug_info" = "yes"; then +- CFLAGS="-g $CFLAGS" +- LDFLAGS="-g $LDFLAGS" ++# CFLAGS="-g $CFLAGS" ++# LDFLAGS="-g $LDFLAGS" + else +- CFLAGS="-O3 $CFLAGS" +- LDFLAGS="-O3 $LDFLAGS" ++# CFLAGS="-O3 $CFLAGS" ++# LDFLAGS="-O3 $LDFLAGS" + fi + + # make source path absolute Property changes on: head/emulators/unicorn/files/patch-qemu_configure ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/unicorn/files/patch-tests_unit_Makefile =================================================================== --- head/emulators/unicorn/files/patch-tests_unit_Makefile (nonexistent) +++ head/emulators/unicorn/files/patch-tests_unit_Makefile (revision 428645) @@ -0,0 +1,22 @@ +--- tests/unit/Makefile.orig 2015-10-15 16:22:04 UTC ++++ tests/unit/Makefile +@@ -1,8 +1,8 @@ + + CFLAGS += -Wall -Werror -Wno-unused-function -g +-CFLAGS += -L ../../ ++CFLAGS += -L ../../ -L $(PREFIX)/lib + CFLAGS += -lcmocka -lunicorn +-CFLAGS += -I ../../include ++CFLAGS += -I ../../include -I $(PREFIX)/include + + ALL_TESTS = test_sanity test_x86 test_mem_map + +@@ -25,7 +25,7 @@ test_x86: test_x86.c + test_mem_map: test_mem_map.c + + ${ALL_TESTS}: +- gcc ${CFLAGS} -o $@ $^ ++ $(CC) ${CFLAGS} -o $@ $^ + + + Property changes on: head/emulators/unicorn/files/patch-tests_unit_Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/unicorn/pkg-descr =================================================================== --- head/emulators/unicorn/pkg-descr (nonexistent) +++ head/emulators/unicorn/pkg-descr (revision 428645) @@ -0,0 +1,17 @@ +Unicorn is a lightweight, multi-platform, multi-architecture CPU emulator +framework based on QEMU. + +Unicorn offers some unparalleled features: +- Multi-architecture: ARM, ARM64 (ARMv8), M68K, MIPS, SPARC, and X86 (16, 32, + 64-bit) +- Clean/simple/lightweight/intuitive architecture-neutral API +- Implemented in pure C language, with bindings for Perl, Rust, Ruby, Python, + Java, MSVC, .NET, Go, Delphi/Free Pascal and Haskell. +- Native support for Windows & *nix (with Mac OSX, Linux, *BSD & Solaris + confirmed) +- High performance via Just-In-Time compilation +- Support for fine-grained instrumentation at various levels +- Thread-safety by design +- Distributed under free software license GPLv2 + +WWW: http://www.unicorn-engine.org/ Property changes on: head/emulators/unicorn/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/unicorn/pkg-plist =================================================================== --- head/emulators/unicorn/pkg-plist (nonexistent) +++ head/emulators/unicorn/pkg-plist (revision 428645) @@ -0,0 +1,12 @@ +include/unicorn/arm.h +include/unicorn/arm64.h +include/unicorn/m68k.h +include/unicorn/mips.h +include/unicorn/platform.h +include/unicorn/sparc.h +include/unicorn/unicorn.h +include/unicorn/x86.h +lib/libunicorn.a +lib/libunicorn.so +lib/libunicorn.so.0 +libdata/pkgconfig/unicorn.pc Property changes on: head/emulators/unicorn/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property