diff options
author | edwin <edwin@FreeBSD.org> | 2007-09-23 11:44:46 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2007-09-23 11:44:46 +0800 |
commit | 06494b0f2b4e3db9b2d5ab0ae291a2454e6348f7 (patch) | |
tree | cc42710b5c94307deb7ecabeff6422dd22b26fc3 /games/crafty | |
parent | 506d08d09a496c067c7677ecbaaa97a6d38196fb (diff) | |
download | freebsd-ports-gnome-06494b0f2b4e3db9b2d5ab0ae291a2454e6348f7.tar.gz freebsd-ports-gnome-06494b0f2b4e3db9b2d5ab0ae291a2454e6348f7.tar.zst freebsd-ports-gnome-06494b0f2b4e3db9b2d5ab0ae291a2454e6348f7.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)
Diffstat (limited to 'games/crafty')
-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)' \ |