mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
emulators/gxemul: Update to 0.6.0.2
- Build with Clang - Update WWW; the sf.net project is gone - vga.h is now included with "../include/vga.h" so the conflict with svgalib should be gone - Make sure various build dependencies are not accidentally auto-detected - Add missing xterm dependency; gxemul tries to run xterm when run under X for serial console output - Take maintainership Changes: http://gavare.se/gxemul/gxemul-stable/doc/RELEASE.html
This commit is contained in:
parent
b15b1b5481
commit
c767f350f4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=485218
@ -2,27 +2,22 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gxemul
|
||||
PORTVERSION= 0.6.0.1
|
||||
PORTREVISION= 6
|
||||
PORTVERSION= 0.6.0.2
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= http://gxemul.sourceforge.net/src/ \
|
||||
http://gavare.se/gxemul/src/
|
||||
MASTER_SITES= http://gavare.se/gxemul/src/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= tobik@FreeBSD.org
|
||||
COMMENT= Instruction-level machine emulator
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USE_GCC= yes
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --without-unittests
|
||||
ALL_TARGET= build
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
# svgalib installs vga.h, which conflicts with gxemul when building with
|
||||
# a virtual VGA adaptor.
|
||||
CONFLICTS= svgalib-[0-9]*
|
||||
# Avoid auto-detecting Doxygen. We do not need source code documentation.
|
||||
# The handbook is quite comprehensive already.
|
||||
BINARY_ALIAS= doxygen=${FALSE}
|
||||
CONFIGURE_ARGS= --disable-valgrind --without-unittests
|
||||
CONFIGURE_ENV= CXX=${CXX} LOCALBASE=${LOCALBASE} PREFIX=${PREFIX}
|
||||
|
||||
PORTDOCS= *
|
||||
PLIST_FILES= bin/gxemul man/man1/gxemul.1.gz
|
||||
@ -30,14 +25,9 @@ PLIST_FILES= bin/gxemul man/man1/gxemul.1.gz
|
||||
OPTIONS_DEFINE= DOCS X11
|
||||
OPTIONS_DEFAULT= X11
|
||||
|
||||
X11_USE= xorg=x11
|
||||
X11_CONFIGURE_OFF= --disable-x
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -Ee \
|
||||
's|/usr/X11R6|${LOCALBASE}|g; \
|
||||
/CXXFLAGS=/s|-O[0-9]?||g; \
|
||||
/CXXFLAGS=/s|-f[a-zA-Z-]+||g' ${WRKSRC}/configure
|
||||
X11_RUN_DEPENDS= xterm:x11/xterm
|
||||
X11_USE= xorg=x11
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/gxemul \
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (gxemul-0.6.0.1.tar.gz) = 0790823d8d7f8848c98318ace829f7a0159a5f9b79d80bd8c367fb17014dcda9
|
||||
SIZE (gxemul-0.6.0.1.tar.gz) = 5420978
|
||||
TIMESTAMP = 1542524977
|
||||
SHA256 (gxemul-0.6.0.2.tar.gz) = 0a0ceb4b5de6463487b28729d40e8e0a6e76ea955306e97aa5a5c74afaeb6636
|
||||
SIZE (gxemul-0.6.0.2.tar.gz) = 5498962
|
||||
|
38
emulators/gxemul/files/patch-configure
Normal file
38
emulators/gxemul/files/patch-configure
Normal file
@ -0,0 +1,38 @@
|
||||
--- configure.orig 2018-09-06 07:41:13 UTC
|
||||
+++ configure
|
||||
@@ -360,10 +360,10 @@ if [ z$NOX11 = z ]; then
|
||||
|
||||
XOK=0
|
||||
|
||||
- XINCLUDE=-I/usr/X11R6/include
|
||||
+ XINCLUDE=-I${LOCALBASE}/include
|
||||
$CXX $CXXFLAGS _test_x11.cc -c -o _test_x11.o $XINCLUDE 2> /dev/null
|
||||
|
||||
- XLIB="-L/usr/X11R6/lib -lX11"
|
||||
+ XLIB="-L${LOCALBASE}/lib -lX11"
|
||||
$CXX $CXXFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null
|
||||
|
||||
if [ -x _test_x11 ]; then
|
||||
@@ -578,22 +578,6 @@ else
|
||||
fi
|
||||
fi
|
||||
rm -f _testprog _testprog.error _testprog.stdout
|
||||
-
|
||||
-
|
||||
-# -O optimization for non-debug builds. Try -O and -O3.
|
||||
-if [ ! z"$DEBUG" = zYES ]; then
|
||||
- $CXX $CXXFLAGS -O _testprog.cc -o _testprog 2> /dev/null
|
||||
- if [ -x _testprog ]; then
|
||||
- rm -f _testprog
|
||||
- $CXX $CXXFLAGS -O3 _testprog.cc -o _testprog 2> /dev/null
|
||||
- if [ -x _testprog ]; then
|
||||
- CXXFLAGS="-O3 $CXXFLAGS"
|
||||
- else
|
||||
- CXXFLAGS="-O $CXXFLAGS"
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-rm -f _testprog
|
||||
|
||||
|
||||
# -fpeephole
|
@ -1,11 +0,0 @@
|
||||
--- src/include/refcount_ptr.h.orig 2014-08-17 08:45:13 UTC
|
||||
+++ src/include/refcount_ptr.h
|
||||
@@ -33,6 +33,8 @@ template <class T>
|
||||
class refcount_ptr;
|
||||
|
||||
|
||||
+#include <stddef.h>
|
||||
+
|
||||
/**
|
||||
* \brief Base class for reference countable objects.
|
||||
*
|
@ -17,4 +17,4 @@ emulated well enough to run at least one "guest OS":
|
||||
* SuperH: Sega Dreamcast (NetBSD/dreamcast, Linux/dreamcast),
|
||||
Landisk (OpenBSD/landisk)
|
||||
|
||||
WWW: http://gxemul.sourceforge.net/
|
||||
WWW: http://gavare.se/gxemul/
|
||||
|
Loading…
Reference in New Issue
Block a user