1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/misc/xpns/files/patch-aa
Ade Lovett 07234fb9fc Support CC/CFLAGS/X11BASE/PREFIX properly
Change location of data files from lib/ to share/

PR:		21581
Submitted by:	Ports Fury
Approved by:	maintainer
2000-10-13 20:22:31 +00:00

31 lines
762 B
Plaintext

--- makefile.orig Wed Jul 14 20:05:14 1993
+++ makefile Fri Aug 11 02:02:40 2000
@@ -7,19 +7,21 @@
#I = -I/usr/include
#------------------------------------------
-# OPTIONEN SUN
+# OPTIONEN FreeBSD
#------------------------------------------
O = -O
-I = -I/usr/local/X11R5/include
-
-L = -L/usr/local/X11R5/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
+I = -I$(X11BASE)/include
+L = -L$(X11BASE)/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
+.if $(PORTOBJFORMAT) == "elf"
+L +=-Wl,-rpath,$(X11BASE)/lib
+.endif
#------------------------------------------
# COMPILER UND LINKER
#------------------------------------------
-B = gcc-2.3.3 $O -o
-CC = gcc-2.3.3 $O $I
+B = $(CC) -o
+CC += $I
#------------------------------------------
# FUNKTIONEN DIR