1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/games/agm/files/patch-aa
Chris D. Faulhaber 89f97c7ac7 - Remove obsolete sites from MASTER_SITES
- Support PREFIX/LOCALBASE properly

PR:		18436
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-05-07 21:32:50 +00:00

43 lines
1.3 KiB
Plaintext

--- Makefile.orig Sun Oct 18 00:21:25 1998
+++ Makefile Wed May 3 12:00:00 2000
@@ -50,18 +50,18 @@
RELEASE=-DRELEASE=\"$(VER)\"
# Set this to the destination directory for the executable
#BINDIR=../../bin/`uname`
-BINDIR=/usr/local/bin
+BINDIR=${PREFIX}/bin
# Location of manual pages
#MANDIR=../../man
-MANDIR=/usr/local/man
+MANDIR=${PREFIX}/man
# Location of the word file
-WORDDIR=/usr/local/lib
+WORDDIR=/usr/share/dict
# Name of the default wordfile
WORDFILE=-DWORDFILE=\"$(WORDDIR)/words\"
# C compiler
-CC=cc
+CC?=cc
# Optimization or other flags for C compiler
-CCFLAGS=-O
+CFLAGS?=-O
#CCFLAGS=-g
# Alter this if you have problems compiling the CPU limit code or the
# timer code
@@ -77,13 +77,13 @@
doc: agm.ps
agm: main.o process.o listfuncs.o wordfuncs.o gobble.o sort.o output.o progress.o
- $(CC) $(CCFLAGS) $(DEFINES) $(RELEASE) $(WORDFILE) -o agm main.o process.o listfuncs.o wordfuncs.o gobble.o sort.o output.o progress.o
+ $(CC) $(CFLAGS) $(DEFINES) $(RELEASE) $(WORDFILE) -o agm main.o process.o listfuncs.o wordfuncs.o gobble.o sort.o output.o progress.o
#gagm: gtkmain.o
# $(CC) $(CCFLAGS) $(DEFINES) $(RELEASE) $(WORDFILE) -o gagm gtkmain.o $(GTKCFLAGS) $(GTKLIBS)
.c.o:
- $(CC) -c $(CCFLAGS) $(DEFINES) $(RELEASE) $(WORDFILE) $<
+ $(CC) -c $(CFLAGS) $(DEFINES) $(RELEASE) $(WORDFILE) $<
#gtkmain.o: gtkmain.c agm.h