1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

emulators/uae: fix build on armv7

Avoid USES=llvm:15 by manually disabling the offending warning cum
error.  Refactor REINPLACE_CMD into proper patches.

Approved by:	portmgr (build fix blanket)
Discussed with:	bofh
MFH:		2025Q2
This commit is contained in:
Robert Clausecker
2025-05-05 18:26:39 +02:00
parent de7bf998ee
commit a0cc88a429
3 changed files with 36 additions and 10 deletions
+4 -10
View File
@@ -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:
+21
View File
@@ -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
@@ -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 */