aboutsummaryrefslogtreecommitdiffstats
path: root/games/crafty
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-09-08 08:07:49 +0800
committerkris <kris@FreeBSD.org>2002-09-08 08:07:49 +0800
commit8df7ac216ed65fd36b2fb300e942fd635b774652 (patch)
treeb76ebb0e4e648ca0c5a6c5bc8b97c5f9278e47bd /games/crafty
parent32f0ccb6ce04a150b17a5dbecec23ed2ca4f6674 (diff)
downloadfreebsd-ports-gnome-8df7ac216ed65fd36b2fb300e942fd635b774652.tar.gz
freebsd-ports-gnome-8df7ac216ed65fd36b2fb300e942fd635b774652.tar.zst
freebsd-ports-gnome-8df7ac216ed65fd36b2fb300e942fd635b774652.zip
Link with ${CXX} instead of ${CC} since this contains C++ code.
Diffstat (limited to 'games/crafty')
-rw-r--r--games/crafty/files/patch-aa25
1 files changed, 18 insertions, 7 deletions
diff --git a/games/crafty/files/patch-aa b/games/crafty/files/patch-aa
index 79e77ce3194e..2bc7628707c1 100644
--- a/games/crafty/files/patch-aa
+++ b/games/crafty/files/patch-aa
@@ -1,5 +1,5 @@
---- Makefile.orig Tue Apr 3 12:43:10 2001
-+++ Makefile Tue Apr 3 12:45:43 2001
+--- Makefile.orig Fri Feb 8 18:48:49 2002
++++ Makefile Sat Sep 7 16:05:47 2002
@@ -21,7 +21,7 @@
# SGI {SGI Workstation running Irix (SYSV/R4) Unix}
# SUN {Sun SparcStation running Solaris (SYSV/R4) Unix}
@@ -9,7 +9,7 @@
# NetBSD {multi-architecture running NetBSD (Unix)}
# Cygwin {80X86 running Cygwin under Win32 (Unix)}
#
-@@ -142,14 +142,23 @@
+@@ -142,16 +142,25 @@
asm='X86.o' \
crafty-make
@@ -24,8 +24,8 @@
opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
asm=X86-elf.o \
-+ crafty-make
-+
+ crafty-make
+
+# This should work for non-i386 FreeBSD (e.g. Alpha)
+freebsd-generic:
+ $(MAKE) target=FreeBSD \
@@ -33,6 +33,17 @@
+ CFLAGS='$(CFLAGS)' \
+ LDFLAGS='$(LDFLAGS)' \
+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST' \
- crafty-make
-
++ crafty-make
++
freebsd-pgcc:
+ $(MAKE) target=FreeBSD \
+ CC=gcc CXX='$$(CC)' \
+@@ -368,7 +377,7 @@
+ crafty
+
+ crafty: $(objects)
+- $(CC) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS)
++ $(CXX) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS)
+ @rm -f X86-elf.S
+ @rm -f X86-aout.S
+