mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Allow UAE to build with gcc3.x.
Respect CFLAGS, use AUTOCONF. PR: 46644 Submitted by: Keith Jones <freebsd.dev@blueyonder.co.uk>
This commit is contained in:
parent
f08c71e3a8
commit
2e7ff44725
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76429
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= uae
|
||||
PORTVERSION= 0.8.22
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= ftp://ftp.freiburg.linux.de/pub/uae/sources/develop/
|
||||
|
||||
@ -15,18 +16,18 @@ COMMENT= Amiga emulator
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_AUTOCONF= yes
|
||||
CONFIGURE_ARGS= --enable-sound --enable-vidmode --enable-dga
|
||||
USE_XLIB= yes
|
||||
USE_GNOMENG= yes
|
||||
USE_GNOME= gtk12
|
||||
USE_REINPLACE= yes
|
||||
USE_GCC= 2.95
|
||||
|
||||
CFLAGS+= ${PTHREAD_CFLAGS}
|
||||
|
||||
pre-configure:
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
|
||||
${WRKSRC}/configure
|
||||
${WRKSRC}/configure.in
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/uae ${PREFIX}/bin
|
||||
|
@ -1,20 +0,0 @@
|
||||
--- configure.orig Tue Aug 15 16:01:31 2000
|
||||
+++ configure Sun Sep 17 08:48:28 2000
|
||||
@@ -5121,7 +5121,7 @@
|
||||
echo "configure:5122: checking for pthread library" >&5
|
||||
TMP_SAVE_CFLAGS=$CFLAGS
|
||||
TMP_SAVE_LIBS=$LIBS
|
||||
-LIBS="$LIBS -lpthread"
|
||||
+LIBS="$LIBS -pthread"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 5127 "configure"
|
||||
#include "confdefs.h"
|
||||
@@ -6051,7 +6051,7 @@
|
||||
if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
|
||||
THREADDEP=td-posix
|
||||
CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
|
||||
- LIBS="$LIBS -lpthread"
|
||||
+ LIBS="$LIBS -pthread"
|
||||
if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
|
||||
LIBS="$LIBS -lposix4"
|
||||
fi
|
13
emulators/uae/files/patch-configure.in
Normal file
13
emulators/uae/files/patch-configure.in
Normal file
@ -0,0 +1,13 @@
|
||||
--- configure.in.orig Mon Feb 4 14:23:29 2002
|
||||
+++ configure.in Tue Feb 25 00:30:57 2003
|
||||
@@ -598,9 +598,7 @@
|
||||
|
||||
if test $ac_cv_prog_gcc = yes; then
|
||||
WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
|
||||
- OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
|
||||
- dnl Not nice, but needed to turn off -g
|
||||
- CFLAGS=
|
||||
+ OPTIMIZE_CFLAGS="-fomit-frame-pointer"
|
||||
fi
|
||||
|
||||
if [[ "x$DO_PROFILING" = "xyes" ]]; then
|
15
emulators/uae/files/patch-src+Makefile.in
Normal file
15
emulators/uae/files/patch-src+Makefile.in
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/Makefile.in.orig Mon Feb 24 23:47:30 2003
|
||||
+++ src/Makefile.in Mon Feb 24 23:49:01 2003
|
||||
@@ -120,10 +120,8 @@
|
||||
cpustbl.c: cpuemu.c
|
||||
cputbl.h: cpuemu.c
|
||||
|
||||
-cpufast.s: cpuemu.c tools/cpuopti
|
||||
- $(CC) $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp.s
|
||||
- ./tools/cpuopti <cputmp.s >$@
|
||||
- rm cputmp.s
|
||||
+cpufast.s: cpuemu.c
|
||||
+ $(CC) $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o $@
|
||||
|
||||
console_missing.o: missing.c
|
||||
$(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(CFLAGS_$@) $< -o $@
|
Loading…
Reference in New Issue
Block a user