FreeBSD Bugzilla – Attachment 252472 Details for
Bug 280205
emulators/86Box: New port: an emulator of x86-based machines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git patch
0001-NEW-PORT-emulators-86Box.patch (text/plain), 10.20 KB, created by
gatekeeper
on 2024-08-03 02:19:06 UTC
(
hide
)
Description:
git patch
Filename:
MIME Type:
Creator:
gatekeeper
Created:
2024-08-03 02:19:06 UTC
Size:
10.20 KB
patch
obsolete
>From 6ff44ca32f52cf8eac84da08422bca488a1002e1 Mon Sep 17 00:00:00 2001 >From: Tiago Gasiba <tiago.gasiba@gmail.com> >Date: Mon, 15 Jul 2024 07:58:25 +0200 >Subject: [PATCH] [NEW PORT] emulators/86Box > >--- > emulators/86Box/Makefile | 74 +++++++++++++++++++ > emulators/86Box/distinfo | 3 + > emulators/86Box/files/86Box.desktop.in | 10 +++ > .../files/patch-cmake_flags-gcc-aarch64.cmake | 10 +++ > .../files/patch-cmake_flags-gcc-armv7.cmake | 10 +++ > .../files/patch-cmake_flags-gcc-x86__64.cmake | 12 +++ > .../86Box/files/patch-cmake_flags-gcc.cmake | 11 +++ > .../files/patch-src_printer_CMakeLists.txt | 10 +++ > .../files/patch-src_qt_qt__mainwindow.cpp | 10 +++ > emulators/86Box/pkg-descr | 4 + > emulators/86Box/pkg-plist | 10 +++ > 11 files changed, 164 insertions(+) > create mode 100644 emulators/86Box/Makefile > create mode 100644 emulators/86Box/distinfo > create mode 100644 emulators/86Box/files/86Box.desktop.in > create mode 100644 emulators/86Box/files/patch-cmake_flags-gcc-aarch64.cmake > create mode 100644 emulators/86Box/files/patch-cmake_flags-gcc-armv7.cmake > create mode 100644 emulators/86Box/files/patch-cmake_flags-gcc-x86__64.cmake > create mode 100644 emulators/86Box/files/patch-cmake_flags-gcc.cmake > create mode 100644 emulators/86Box/files/patch-src_printer_CMakeLists.txt > create mode 100644 emulators/86Box/files/patch-src_qt_qt__mainwindow.cpp > create mode 100644 emulators/86Box/pkg-descr > create mode 100644 emulators/86Box/pkg-plist > >diff --git a/emulators/86Box/Makefile b/emulators/86Box/Makefile >new file mode 100644 >index 000000000000..49f2efb40b44 >--- /dev/null >+++ b/emulators/86Box/Makefile >@@ -0,0 +1,74 @@ >+PORTNAME= 86Box >+DISTVERSIONPREFIX= v >+DISTVERSION= 4.2 >+CATEGORIES= emulators >+ >+MAINTAINER= tiago.gasiba@gmail.com >+COMMENT= Emulator of x86-based machines based on PCem >+WWW= https://86box.net/ >+ >+LICENSE= GPLv2 >+LICENSE_FILE= ${WRKSRC}/COPYING >+ >+ONLY_FOR_ARCHS= amd64 >+ >+BUILD_DEPENDS= evdev-proto>=5.8:devel/evdev-proto >+LIB_DEPENDS= libevdev.so:devel/libevdev \ >+ libfluidsynth.so:audio/fluidsynth \ >+ libfreetype.so:print/freetype2 \ >+ libopenal.so:audio/openal-soft \ >+ libpng.so:graphics/png \ >+ librtmidi.so:audio/rtmidi \ >+ libslirp.so:net/libslirp \ >+ libsndfile.so:audio/libsndfile \ >+ libxkbcommon.so:x11/libxkbcommon >+ >+FLAVORS= qt5 qt6 >+FLAVOR?= ${FLAVORS:[2]} >+qt5_PKGNAMESUFFIX= -qt5 >+qt6_PKGNAMESUFFIX= -qt6 >+ >+USES= cmake compiler gnome pkgconfig qmake sdl xorg >+USE_GITHUB= yes >+USE_GNOME= glib20 >+USE_SDL= sdl2 >+USE_XORG= x11 xcb xext xi >+ >+.if ${FLAVOR} == qt5 >+USES+= qt:5 >+USE_QT= core gui linguisttools network opengl widgets buildtools:build >+.else >+BUILD_DEPENDS+= vulkan-headers>0:graphics/vulkan-headers >+USES+= gl qt:6 >+USE_GL= opengl >+USE_QT= base tools:build >+CMAKE_ON= USE_QT6 >+CXXFLAGS+= -I${LOCALBASE}/include/qt6/QtGui/`pkg-config --modversion Qt6Gui`/QtGui >+.endif >+ >+OPTIONS_DEFINE= NLS WAYLAND >+OPTIONS_DEFAULT= WAYLAND >+ >+NLS_USES= gettext-runtime >+NLS_CONFIGURE_ENABLE= nls >+ >+WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland >+WAYLAND_USES= kde:5 >+WAYLAND_USE= KDE=ecm:build >+WAYLAND_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Wayland:BOOL=ON >+ >+ICON_RESOLUTIONS= 128x128 192x192 256x256 48x48 512x512 64x64 72x72 96x96 >+ >+do-install: >+ ${INSTALL_PROGRAM} ${WRKDIR}/.build/src/86Box ${STAGEDIR}${PREFIX}/bin >+ ${REINPLACE_CMD} -e 's|Exec=86Box|Exec=/bin/sh -c "${PREFIX}/bin/86Box -C $${HOME}/.86box.cfg"|' \ >+ ${WRKSRC}/src/unix/assets/net.86box.86Box.desktop >+ ${INSTALL_DATA} ${WRKSRC}/src/unix/assets/net.86box.86Box.desktop \ >+ ${STAGEDIR}${PREFIX}/share/applications/net.86box.86Box.desktop >+.for F in ${ICON_RESOLUTIONS} >+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${F}/apps >+ ${INSTALL_DATA} ${WRKSRC}/src/unix/assets/${F}/net.86box.86Box.png \ >+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${F}/apps/net.86box.86Box.png >+.endfor >+ >+.include <bsd.port.mk> >diff --git a/emulators/86Box/distinfo b/emulators/86Box/distinfo >new file mode 100644 >index 000000000000..a653f405f99f >--- /dev/null >+++ b/emulators/86Box/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1722551710 >+SHA256 (86Box-86Box-v4.2_GH0.tar.gz) = 891787580b67607490aa2257c0efa8b6a8afe954fa6fdb7c0db574caf307d615 >+SIZE (86Box-86Box-v4.2_GH0.tar.gz) = 5297797 >diff --git a/emulators/86Box/files/86Box.desktop.in b/emulators/86Box/files/86Box.desktop.in >new file mode 100644 >index 000000000000..49abd39de3a3 >--- /dev/null >+++ b/emulators/86Box/files/86Box.desktop.in >@@ -0,0 +1,10 @@ >+[Desktop Entry] >+Encoding=UTF-8 >+Name=86Box >+GenericName=86Box >+Comment=Emulator of x86-based machines >+Exec=/bin/sh -c "%%PREFIX%%/bin/86Box -C $HOME/.config/86box.cfg" >+Icon=86Box >+Terminal=false >+Type=Application >+Categories=Emulator;System >diff --git a/emulators/86Box/files/patch-cmake_flags-gcc-aarch64.cmake b/emulators/86Box/files/patch-cmake_flags-gcc-aarch64.cmake >new file mode 100644 >index 000000000000..3a58a593294f >--- /dev/null >+++ b/emulators/86Box/files/patch-cmake_flags-gcc-aarch64.cmake >@@ -0,0 +1,10 @@ >+--- cmake/flags-gcc-aarch64.cmake.orig 2024-07-26 18:14:45 UTC >++++ cmake/flags-gcc-aarch64.cmake >+@@ -14,7 +14,4 @@ >+ # Copyright 2021 David HrdliÄka. >+ # >+ >+-string(APPEND CMAKE_C_FLAGS_INIT " -march=armv8-a") >+-string(APPEND CMAKE_CXX_FLAGS_INIT " -march=armv8-a") >+- >+ include(${CMAKE_CURRENT_LIST_DIR}/flags-gcc.cmake) >diff --git a/emulators/86Box/files/patch-cmake_flags-gcc-armv7.cmake b/emulators/86Box/files/patch-cmake_flags-gcc-armv7.cmake >new file mode 100644 >index 000000000000..5809748fa55e >--- /dev/null >+++ b/emulators/86Box/files/patch-cmake_flags-gcc-armv7.cmake >@@ -0,0 +1,10 @@ >+--- cmake/flags-gcc-armv7.cmake.orig 2024-07-26 18:16:08 UTC >++++ cmake/flags-gcc-armv7.cmake >+@@ -14,7 +14,4 @@ >+ # Copyright 2021 David HrdliÄka. >+ # >+ >+-string(APPEND CMAKE_C_FLAGS_INIT " -march=armv7-a+fp -mfloat-abi=hard") >+-string(APPEND CMAKE_CXX_FLAGS_INIT " -march=armv7-a+fp -mfloat-abi=hard") >+- >+ include(${CMAKE_CURRENT_LIST_DIR}/flags-gcc.cmake) >diff --git a/emulators/86Box/files/patch-cmake_flags-gcc-x86__64.cmake b/emulators/86Box/files/patch-cmake_flags-gcc-x86__64.cmake >new file mode 100644 >index 000000000000..100bdd0cb47c >--- /dev/null >+++ b/emulators/86Box/files/patch-cmake_flags-gcc-x86__64.cmake >@@ -0,0 +1,12 @@ >+--- cmake/flags-gcc-x86_64.cmake.orig 2024-07-26 18:16:26 UTC >++++ cmake/flags-gcc-x86_64.cmake >+@@ -14,7 +14,7 @@ >+ # Copyright 2021 David HrdliÄka. >+ # >+ >+-string(APPEND CMAKE_C_FLAGS_INIT " -m64 -march=x86-64 -msse2 -mfpmath=sse -mstackrealign") >+-string(APPEND CMAKE_CXX_FLAGS_INIT " -m64 -march=x86-64 -msse2 -mfpmath=sse -mstackrealign") >++string(APPEND CMAKE_C_FLAGS_INIT " -mstackrealign") >++string(APPEND CMAKE_CXX_FLAGS_INIT " -mstackrealign") >+ >+ include(${CMAKE_CURRENT_LIST_DIR}/flags-gcc.cmake) >diff --git a/emulators/86Box/files/patch-cmake_flags-gcc.cmake b/emulators/86Box/files/patch-cmake_flags-gcc.cmake >new file mode 100644 >index 000000000000..d9b56c9c71ed >--- /dev/null >+++ b/emulators/86Box/files/patch-cmake_flags-gcc.cmake >@@ -0,0 +1,11 @@ >+--- cmake/flags-gcc.cmake.orig 2024-07-26 18:17:03 UTC >++++ cmake/flags-gcc.cmake >+@@ -16,8 +16,6 @@ string(APPEND CMAKE_CXX_FLAGS_INIT " -fom >+ # Define our flags >+ string(APPEND CMAKE_C_FLAGS_INIT " -fomit-frame-pointer -Wall -fno-strict-aliasing -Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition") >+ string(APPEND CMAKE_CXX_FLAGS_INIT " -fomit-frame-pointer -Wall -fno-strict-aliasing") >+-string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -g0 -O3") >+-string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -g0 -O3") >+ string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " -ggdb -Og") >+ string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " -ggdb -Og") >+ string(APPEND CMAKE_C_FLAGS_OPTIMIZED_INIT " -march=native -mtune=native -O3 -ffp-contract=fast -flto") >diff --git a/emulators/86Box/files/patch-src_printer_CMakeLists.txt b/emulators/86Box/files/patch-src_printer_CMakeLists.txt >new file mode 100644 >index 000000000000..644e5ca2faa7 >--- /dev/null >+++ b/emulators/86Box/files/patch-src_printer_CMakeLists.txt >@@ -0,0 +1,10 @@ >+--- src/printer/CMakeLists.txt.orig 2024-07-25 22:46:38 UTC >++++ src/printer/CMakeLists.txt >+@@ -29,6 +29,7 @@ target_link_libraries(86Box PkgConfig::FREETYPE) >+ find_package(PkgConfig REQUIRED) >+ pkg_check_modules(FREETYPE REQUIRED IMPORTED_TARGET freetype2) >+ target_link_libraries(86Box PkgConfig::FREETYPE) >++target_include_directories(print PRIVATE ${FREETYPE_INCLUDE_DIRS}) >+ if(STATIC_BUILD) >+ # if(QT) >+ # Qt provides its own version of harfbuzz which leads to duplicated symbols. >diff --git a/emulators/86Box/files/patch-src_qt_qt__mainwindow.cpp b/emulators/86Box/files/patch-src_qt_qt__mainwindow.cpp >new file mode 100644 >index 000000000000..73efb58dd412 >--- /dev/null >+++ b/emulators/86Box/files/patch-src_qt_qt__mainwindow.cpp >@@ -0,0 +1,10 @@ >+--- src/qt/qt_mainwindow.cpp.orig 2024-07-25 22:46:38 UTC >++++ src/qt/qt_mainwindow.cpp >+@@ -378,6 +378,7 @@ MainWindow::MainWindow(QWidget *parent) >+ >+ #if QT_CONFIG(vulkan) >+ bool vulkanAvailable = false; >++ if (0) >+ { >+ QVulkanInstance instance; >+ instance.setApiVersion(QVersionNumber(1, 0)); >diff --git a/emulators/86Box/pkg-descr b/emulators/86Box/pkg-descr >new file mode 100644 >index 000000000000..3f965dc867ea >--- /dev/null >+++ b/emulators/86Box/pkg-descr >@@ -0,0 +1,4 @@ >+86Box is a low level x86 emulator that runs older operating >+systems and software designed for IBM PC systems and >+compatibles from 1981 through fairly recent system designs >+based on the PCI bus. >diff --git a/emulators/86Box/pkg-plist b/emulators/86Box/pkg-plist >new file mode 100644 >index 000000000000..9dd5dc91a4a7 >--- /dev/null >+++ b/emulators/86Box/pkg-plist >@@ -0,0 +1,10 @@ >+bin/86Box >+share/applications/net.86box.86Box.desktop >+share/icons/hicolor/128x128/apps/net.86box.86Box.png >+share/icons/hicolor/192x192/apps/net.86box.86Box.png >+share/icons/hicolor/256x256/apps/net.86box.86Box.png >+share/icons/hicolor/48x48/apps/net.86box.86Box.png >+share/icons/hicolor/512x512/apps/net.86box.86Box.png >+share/icons/hicolor/64x64/apps/net.86box.86Box.png >+share/icons/hicolor/72x72/apps/net.86box.86Box.png >+share/icons/hicolor/96x96/apps/net.86box.86Box.png >-- >2.45.2 >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 280205
:
251949
|
252055
|
252057
|
252084
|
252288
|
252306
|
252307
|
252440
|
252443
|
252452
| 252472