1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-03 22:23:24 +00:00
freebsd-ports/graphics/tgd/files/patch-aa
Michael Haro dde4ffa189 Add support for PREFIX, CFLAGS and less warnings when building with
CFLAGS=-Wall

PR:		10933
Submitted by:	me
1999-04-13 07:06:36 +00:00

31 lines
798 B
Plaintext

--- Makefile.orig Mon Oct 7 15:31:25 1996
+++ Makefile Sat Apr 3 11:15:32 1999
@@ -26,11 +26,10 @@
#
PROG = tgd
HOME = .
-GDHOME = $(HOME)/gd1.2
-CC = gcc
+CC ?= gcc
CDEFS =
-INCLUDE = -I$(HOME) -I$(GDHOME)
-GDLIB = $(GDHOME)/libgd.a
+INCLUDE = -I$(HOME) -I${PREFIX}/include/gd
+GDLIB = ${PREFIX}/lib/libgd.a
#
# Some debugging/profiling options
# CFLAGS = -p $(CDEFS) $(INCLUDE)
@@ -40,10 +39,10 @@
#
# CFLAGS = -g $(CDEFS) $(INCLUDE)
# LDFLAGS = -g -n
-CFLAGS = $(CDEFS) $(INCLUDE)
+CFLAGS += $(CDEFS) $(INCLUDE)
LDFLAGS =
-LDLIBS = -L$(GDHOME) -lgd -lm
+LDLIBS = -L${PREFIX}/lib -lgd -lm
MAKEFILE = Makefile
FONT1 = tgdFont10x20.c tgdFont12x24.c tgdFont5x8.c tgdFont6x10.c
FONT2 = tgdFont6x12.c tgdFont6x13.c tgdFont6x13bold.c tgdFont6x9.c