aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>2000-01-09 16:01:00 +0800
committercpiazza <cpiazza@FreeBSD.org>2000-01-09 16:01:00 +0800
commitcd31bfbe259fe21f82aabb2b0ec56a9284092503 (patch)
treee2566bb2a89e606964291aebbaf60ff72bd68ced /games
parent5e2126a252e0a1c37dd102a291e8a951cdc4a095 (diff)
downloadfreebsd-ports-gnome-cd31bfbe259fe21f82aabb2b0ec56a9284092503.tar.gz
freebsd-ports-gnome-cd31bfbe259fe21f82aabb2b0ec56a9284092503.tar.zst
freebsd-ports-gnome-cd31bfbe259fe21f82aabb2b0ec56a9284092503.zip
Fix for new compiler and respect CC/CXX/CXXFLAGS/CFLAGS
Diffstat (limited to 'games')
-rw-r--r--games/blackjack/files/patch-aa22
-rw-r--r--games/blackjack/files/patch-ab15
-rw-r--r--games/blackjack/files/patch-ac29
3 files changed, 57 insertions, 9 deletions
diff --git a/games/blackjack/files/patch-aa b/games/blackjack/files/patch-aa
index 17f9d6df8caa..64252af6cd78 100644
--- a/games/blackjack/files/patch-aa
+++ b/games/blackjack/files/patch-aa
@@ -1,11 +1,14 @@
---- Makefile.orig Wed Feb 11 21:42:00 1998
-+++ Makefile Sun Sep 27 18:38:34 1998
-@@ -2,8 +2,11 @@
- CC=gcc
- CXX=g++
- CFLAGS=
+--- Makefile.orig Wed Feb 11 19:42:00 1998
++++ Makefile Sat Jan 8 23:59:30 2000
+@@ -1,9 +1,11 @@
+
+-CC=gcc
+-CXX=g++
+-CFLAGS=
-INCLUDES=-I$(QTDIR)/include
-LDFLAGS=-L$(QTDIR)/lib -lqt
++CC?=gcc
++CXX?=g++
+INCLUDES=-I$(X11BASE)/include/X11/qt
+LDFLAGS=-L$(X11BASE)/lib -lqt
+.if $(PORTOBJFORMAT) == "elf"
@@ -14,7 +17,7 @@
VERSION=1.1
# For systems that don't have install, use this
-@@ -25,7 +28,7 @@
+@@ -25,7 +27,7 @@
blackjack/*.cpp \
blackjack/*.bm
@@ -23,7 +26,7 @@
INSTALL_BIN_FLAGS=-s
INSTALL_ROOT=/usr/local
-@@ -39,12 +42,14 @@
+@@ -39,12 +41,14 @@
user_input.o dollar_scroll_bar.o bet_option.o table_option.o \
insurance_window.o $(METAOBJS)
@@ -33,7 +36,8 @@
.SUFFIXES: .cpp
.cpp.o:
- $(CXX) -c $(CFLAGS) $(INCLUDES) $<
+- $(CXX) -c $(CFLAGS) $(INCLUDES) $<
++ $(CXX) -c $(CXXFLAGS) $(INCLUDES) $<
+
+all: blackjack
diff --git a/games/blackjack/files/patch-ab b/games/blackjack/files/patch-ab
new file mode 100644
index 000000000000..9180b300e0b7
--- /dev/null
+++ b/games/blackjack/files/patch-ab
@@ -0,0 +1,15 @@
+--- bet_option.h.orig Sat Jan 8 23:58:22 2000
++++ bet_option.h Sat Jan 8 23:53:45 2000
+@@ -63,9 +63,9 @@
+ void setInc(float inc);
+
+ private slots:
+- minBetPressed(int id);
+- maxBetPressed(int id);
+- betIncPressed(int id);
++ int minBetPressed(int id);
++ int maxBetPressed(int id);
++ int betIncPressed(int id);
+ };
+
+ #endif
diff --git a/games/blackjack/files/patch-ac b/games/blackjack/files/patch-ac
new file mode 100644
index 000000000000..419ffc707ef8
--- /dev/null
+++ b/games/blackjack/files/patch-ac
@@ -0,0 +1,29 @@
+--- bet_option.cpp.orig Sat Jan 8 23:58:15 2000
++++ bet_option.cpp Sat Jan 8 23:56:09 2000
+@@ -221,7 +221,7 @@
+
+ //*****************************************************************************
+
+-BetOption::
++int BetOption::
+ minBetPressed(int id) {
+ int i;
+ QButton *qb;
+@@ -256,7 +256,7 @@
+
+ //*****************************************************************************
+
+-BetOption::
++int BetOption::
+ maxBetPressed(int id) {
+ QButton *rb;
+
+@@ -271,7 +271,7 @@
+
+ //*****************************************************************************
+
+-BetOption::
++int BetOption::
+ betIncPressed(int id) {
+ _bet_inc = *_bet_inc_list.at(id);
+ }