1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/games/blackjack/files/patch-aa
Will Andrews a547285c7b Update to 1.2; add WWW to DESCR.
PR:		18974
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-06-04 19:10:39 +00:00

52 lines
1.1 KiB
Plaintext

--- Makefile.orig Thu Jun 3 11:28:44 1999
+++ Makefile Sat Jun 3 01:28:49 2000
@@ -1,9 +1,8 @@
-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
VERSION=1.2
# For systems that don't have install, use this
@@ -28,7 +27,7 @@
INSTALL=install
INSTALL_BIN_FLAGS=-s
-INSTALL_ROOT=/usr/local
+INSTALL_ROOT=${PREFIX}
INSTALL_BIN=$(INSTALL_ROOT)/bin
INSTALL_MAN=$(INSTALL_ROOT)/man
@@ -39,19 +38,21 @@
user_input.o dollar_scroll_bar.o bet_option.o table_option.o \
insurance_window.o $(METAOBJS)
-MOC=$(QTDIR)/bin/moc
+MOC=$(X11BASE)/bin/moc
.SUFFIXES: .cpp
.cpp.o:
- $(CXX) -c $(CFLAGS) $(INCLUDES) $<
+ $(CXX) -c $(CXXFLAGS) $(INCLUDES) $<
+
+all: blackjack
blackjack: main.o $(OBJS)
$(CXX) -o $@ $(LDFLAGS) main.o $(OBJS)
install:
- $(INSTALL) $(INSTALL_BIN_FLAGS) blackjack $(INSTALL_BIN)
- $(INSTALL) blackjack.1 $(INSTALL_MAN)/man1
+ ${BSD_INSTALL_PROGRAM} blackjack $(INSTALL_BIN)
+ ${BSD_INSTALL_MAN} blackjack.1 $(INSTALL_MAN)/man1
mblackjack.cpp: blackjack.h
$(MOC) -o mblackjack.cpp blackjack.h