1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/blackjack/files/patch-aa
1998-09-28 02:04:40 +00:00

42 lines
866 B
Plaintext

--- 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=
-INCLUDES=-I$(QTDIR)/include
-LDFLAGS=-L$(QTDIR)/lib -lqt
+INCLUDES=-I$(X11BASE)/include/X11/qt
+LDFLAGS=-L$(X11BASE)/lib -lqt
+.if $(PORTOBJFORMAT) == "elf"
+LDFLAGS+=-Wl,-rpath,$(X11BASE)/lib
+.endif
VERSION=1.1
# For systems that don't have install, use this
@@ -25,7 +28,7 @@
blackjack/*.cpp \
blackjack/*.bm
-INSTALL=install
+INSTALL=install -c
INSTALL_BIN_FLAGS=-s
INSTALL_ROOT=/usr/local
@@ -39,12 +42,14 @@
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) $<
+
+all: blackjack
blackjack: main.o $(OBJS)
$(CXX) -o $@ $(LDFLAGS) main.o $(OBJS)