summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-06-06 03:59:00 +0000
committerminskim <minskim@pkgsrc.org>2005-06-06 03:59:00 +0000
commit957087b61485755cfd9fd4e5f252ca8a0c10e56a (patch)
tree2cefae334b20b3da48c02c70c528d81bac54e1db /games
parent1c808928ba24db471763dd0e8180292f6576ca9d (diff)
downloadpkgsrc-957087b61485755cfd9fd4e5f252ca8a0c10e56a.tar.gz
Set BUILD_TARGET correctly on Linux. This fixes PR pkg/29379.
Diffstat (limited to 'games')
-rw-r--r--games/crafty/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile
index 3401e31fdbc..6ba47030e39 100644
--- a/games/crafty/Makefile
+++ b/games/crafty/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2005/04/11 21:45:49 tv Exp $
+# $NetBSD: Makefile,v 1.34 2005/06/06 03:59:00 minskim Exp $
DISTNAME= crafty-18.15
CATEGORIES= games
@@ -32,6 +32,12 @@ BUILD_TARGET= netbsd-sparc
CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O1/}
.elif !empty(MACHINE_PLATFORM:MNetBSD-*-*)
BUILD_TARGET= netbsd
+.elif !empty(MACHINE_PLATFORM:MLinux-*-i386)
+. if ${OBJECT_FMT} == "ELF"
+BUILD_TARGET= linux-elf
+. else
+BUILD_TARGET= linux
+. endif
.elif !empty(MACHINE_PLATFORM:MSunOS-*-*)
BUILD_TARGET= solaris-gcc
.else