diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-23 03:44:46 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2007-09-23 03:44:46 +0000 |
commit | e2f3245abc030fca34dfb515411655fbeedd3c07 (patch) | |
tree | 1dea6da1cd76015e20845521f6a1a82b3c91d19a /games | |
parent | 970d2479cc30f3daf697af0af33359d24dee55f8 (diff) | |
download | ports-e2f3245abc030fca34dfb515411655fbeedd3c07.tar.gz ports-e2f3245abc030fca34dfb515411655fbeedd3c07.zip |
[Maintainer Update]: fix arch-related issues
Received email stating "build fails on amd64 system with a
message about unsupported instructions. [...] Modifying
patch-Makefile so that -m486 / -mtune 486 option is removed
fixed the problem for me." Updated Makefile to add PORTREVISION
so that updates will be seen by ports-tools, implemented
arch suggestions for fixes, removing most mention of
architecture specific instructions. Those will likely be
in make.conf, anyway, and if so will be passed along due
to inclusion.
PR: ports/116379
Submitted by: shoemaker@bluebottle.com (Jonathan Shoemaker)
Notes
Notes:
svn path=/head/; revision=199922
Diffstat (limited to 'games')
-rw-r--r-- | games/crafty/Makefile | 11 | ||||
-rw-r--r-- | games/crafty/files/patch-Makefile | 2 |
2 files changed, 3 insertions, 10 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile index 71acfcba3786..38a78e8e3e54 100644 --- a/games/crafty/Makefile +++ b/games/crafty/Makefile @@ -7,6 +7,7 @@ PORTNAME= crafty PORTVERSION= 20.14 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/pgn/:data \ ftp://ftp.cis.uab.edu/pub/hyatt/documentation/:doc \ @@ -49,19 +50,11 @@ OPT= -DHASHSTATS -DTRACE -DBOOKDIR=\\\"${WITH_BOOKDIR}\\\" \ -DRCDIR=\\\"${WITH_RCDIR}\\\" \ -DTBDIR=\\\"${WITH_TBDIR}\\\" \ -DPERSDIR=\\\"${WITH_PERSDIR}\\\" - + .include <bsd.port.pre.mk> .if ${ARCH} == "i386" OPT+= -DINLINE32 -# XXX Someone with ASM knowledge would have to fix the Sparc.S -.elif ${ARCH} == "sparc64" -OPT+= -DINLINE32 -CFLAGS+= '$(CFLAGS) -D_REENTRANT -O3 -Wall \ - -fomit-frame-pointer -funroll-all-loops \ - -finline-functions -ffast-math' \ -.else -OPT+= -DFAST .endif MAKE_ENV+= opt="${OPT}" target=${OPSYS} CXFLAGS="${CXXFLAGS}" diff --git a/games/crafty/files/patch-Makefile b/games/crafty/files/patch-Makefile index 8b86ca64d8bd..b85ac7796b36 100644 --- a/games/crafty/files/patch-Makefile +++ b/games/crafty/files/patch-Makefile @@ -8,7 +8,7 @@ - CXFLAGS=$(CFLAGS) \ - LDFLAGS=$(LDFLAGS) \ - opt='$(opt) -DINLINE32' \ -+ CFLAGS+='-fomit-frame-pointer -mtune=i486 -O3 -Wall' \ ++ CFLAGS+='-fomit-frame-pointer -Wall' \ + CXFLAGS+='$(CXXFLAGS)' \ + LDFLAGS='$(LDFLAGS) -lstdc++' \ + opt='$(opt)' \ |