From d58a92fe1ac6830d672ea82f74a2a59df5638b2e Mon Sep 17 00:00:00 2001 From: Kurt Jaeger Date: Mon, 6 May 2019 03:13:22 +0000 Subject: [PATCH] New port: emulators/pcem: PC-Compatible low-level emulator striving for accuracy A very accurate (and not very fast) PC and PC-compatible emulator. Support currently ranges from the original IBM PC to Socket 7 motherboards. It also supports a wide range of peripherals, including Voodoo Graphics! WWW: https://www.pcem-emulator.co.uk PR: 237376 Submitted by: Salvador Pardinas Reviewed by: tobik --- emulators/Makefile | 1 + emulators/pcem/Makefile | 36 +++++++++++++++++++++++++ emulators/pcem/distinfo | 3 +++ emulators/pcem/files/patch-configure.ac | 32 ++++++++++++++++++++++ emulators/pcem/pkg-descr | 5 ++++ 5 files changed, 77 insertions(+) create mode 100644 emulators/pcem/Makefile create mode 100644 emulators/pcem/distinfo create mode 100644 emulators/pcem/files/patch-configure.ac create mode 100644 emulators/pcem/pkg-descr diff --git a/emulators/Makefile b/emulators/Makefile index 4fa460f8815f..78c68b2d0a1d 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -101,6 +101,7 @@ SUBDIR += openmsx SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools + SUBDIR += pcem SUBDIR += pcemu SUBDIR += pcsxr SUBDIR += pearpc diff --git a/emulators/pcem/Makefile b/emulators/pcem/Makefile new file mode 100644 index 000000000000..afffc88983ce --- /dev/null +++ b/emulators/pcem/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= pcem +DISTVERSION= 14 +CATEGORIES= emulators +MASTER_SITES= https://bitbucket.org/pcem_emulator/pcem/get/ +DISTNAME= faf5d6423060 + +MAINTAINER= darkfm@vera.com.uy +COMMENT= PC/PC-Compatible low-level emulator striving for accuracy + +LICENSE= GPLv2 + +LIB_DEPENDS= libGL.so:graphics/mesa-libs \ + libopenal.so:audio/openal-soft \ + libwx_gtk3u_core-3.0.so:x11-toolkits/wxgtk30 \ + libSDL2.so:devel/sdl20 + +USES= autoreconf compiler gmake openal:soft pkgconfig sdl zip +USE_WX= 3.0 +USE_SDL= sdl2 + +WRKSRC= ${WRKDIR}/pcem_emulator-pcem-faf5d6423060/ +PATCHDIR=files +PLIST_FILES= bin/pcem +CONFIGURE_ARGS= --enable-release-build --with-wx-config=wxgtk3u-3.0-config +GNU_CONFIGURE= yes +ONLY_FOR_ARCHS= amd64 + +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 +LDFLAGS+= -fuse-ld=bfd +.endif + +.include diff --git a/emulators/pcem/distinfo b/emulators/pcem/distinfo new file mode 100644 index 000000000000..5ebb32de2f5c --- /dev/null +++ b/emulators/pcem/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1555640654 +SHA256 (faf5d6423060.zip) = c184c1e279b2d77d89bdc02ed6a87d0f79b98863dcef2feca1fff74554e2f19b +SIZE (faf5d6423060.zip) = 1792228 diff --git a/emulators/pcem/files/patch-configure.ac b/emulators/pcem/files/patch-configure.ac new file mode 100644 index 000000000000..f1eacfb448b7 --- /dev/null +++ b/emulators/pcem/files/patch-configure.ac @@ -0,0 +1,32 @@ +--- configure.ac.orig 2019-04-17 19:37:48 UTC ++++ configure.ac +@@ -64,6 +64,10 @@ case "${host_cpu}" in + CPU=x86_64 + AC_MSG_RESULT(${host_cpu}) + ;; ++ amd64) ++ CPU=x86_64 ++ AC_MSG_RESULT(${host_cpu}) ++ ;; + *) + AC_MSG_ERROR([Unsupported CPU.]) + ;; +@@ -149,6 +153,18 @@ case "$host" in + [echo "You need to install the OpenAL library." + exit -1]) + build_linux="yes" ++ ;; ++ *-*-freebsd*) ++ CFLAGS="$CFLAGS -I/usr/local/include" ++ CXXFLAGS="$CXXFLAGS -I/usr/local/include" ++ LDFLAGS="$LDFLAGS -L/usr/local/lib" ++ AC_CHECK_LIB([GL], [glGetError], [], \ ++ [echo "You need to install the OpenGL library." ++ exit -1]) ++ AC_CHECK_LIB([openal], [alGetError], [], \ ++ [echo "You need to install the OpenAL library." ++ exit -1]) ++ build_other="yes" + ;; + *) + AC_CHECK_LIB([GL], [glGetError], [], \ diff --git a/emulators/pcem/pkg-descr b/emulators/pcem/pkg-descr new file mode 100644 index 000000000000..f4c9887ec130 --- /dev/null +++ b/emulators/pcem/pkg-descr @@ -0,0 +1,5 @@ +A very accurate (and not very fast) PC and PC-compatible emulator. +Support currently ranges from the original IBM PC to Socket 7 motherboards. +It also supports a wide range of peripherals, including Voodoo Graphics! + +WWW: https://www.pcem-emulator.co.uk