summaryrefslogtreecommitdiff
path: root/emulators/uae
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/uae')
-rw-r--r--emulators/uae/Makefile14
-rw-r--r--emulators/uae/files/patch-src_Makefile.in21
-rw-r--r--emulators/uae/files/patch-src_include_bsdsocket.h11
3 files changed, 36 insertions, 10 deletions
diff --git a/emulators/uae/Makefile b/emulators/uae/Makefile
index 3b6d42bb3b9f..ff1b40c63c64 100644
--- a/emulators/uae/Makefile
+++ b/emulators/uae/Makefile
@@ -1,6 +1,6 @@
PORTNAME= uae
PORTVERSION= 0.8.29
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= emulators
MASTER_SITES= LOCAL/grembo
@@ -16,19 +16,13 @@ USES= gmake gnome pkgconfig tar:bzip2
GNU_CONFIGURE= yes
USE_GNOME= gtk20
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
-.if ${OPSYS} == FreeBSD
-USES+= llvm:max=15
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e 's|build68kc|build68k|' \
- ${WRKSRC}/src/Makefile.in
- @${REINPLACE_CMD} -e 's|struct socketbase {|extern &|' \
- ${WRKSRC}/src/include/bsdsocket.h
+pre-patch:
@${LN} -sf ../md-ppc/support.c ${WRKSRC}/src/md-ppc-gcc/support.c
do-install:
diff --git a/emulators/uae/files/patch-src_Makefile.in b/emulators/uae/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..9fce0c548a90
--- /dev/null
+++ b/emulators/uae/files/patch-src_Makefile.in
@@ -0,0 +1,21 @@
+--- src/Makefile.in.orig 2025-05-05 16:21:46 UTC
++++ src/Makefile.in
+@@ -9,7 +9,8 @@ CFLAGS = @CFLAGS@ -D__inline__=@ac_cv_c_inline@ \
+ LDFLAGS = @LDFLAGS@
+ CFLAGS = @CFLAGS@ -D__inline__=@ac_cv_c_inline@ \
+ -DSYSTEM_ROMDIR=\"$(datadir)/uae/roms\" \
+- -DSYSTEM_CFGDIR=\"$(datadir)/uae/configs\"
++ -DSYSTEM_CFGDIR=\"$(datadir)/uae/configs\" \
++ -Wno-error=incompatible-function-pointer-types
+ X_CFLAGS = @X_CFLAGS@ @GTK_CFLAGS@ -DSHM_SUPPORT_LINKS=@SHM_SUPPORT_LINKS@
+ TARGET = @TARGET@
+ LIBRARIES = @LIBRARIES@ @LIBS@ @GTK_LIBS@
+@@ -112,7 +113,7 @@ tools/build68k:
+ tools/genblitter:
+ $(MAKE) -C tools genblitter
+ tools/build68k:
+- $(MAKE) -C tools build68kc
++ $(MAKE) -C tools build68k
+ tools/gencpu:
+ $(MAKE) -C tools gencpu
+
diff --git a/emulators/uae/files/patch-src_include_bsdsocket.h b/emulators/uae/files/patch-src_include_bsdsocket.h
new file mode 100644
index 000000000000..02e8c1fc284d
--- /dev/null
+++ b/emulators/uae/files/patch-src_include_bsdsocket.h
@@ -0,0 +1,11 @@
+--- src/include/bsdsocket.h.orig 2025-05-05 16:22:22 UTC
++++ src/include/bsdsocket.h
+@@ -29,7 +29,7 @@ extern void deinit_socket_layer (void);
+ #define MAXADDRLEN 256
+
+ /* allocated and maintained on a per-task basis */
+-struct socketbase {
++extern struct socketbase {
+ struct socketbase *next;
+ struct socketbase *nextsig; /* queue for tasks to signal */
+