mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
600b5d5823
- Change install path of data files - Add PORTDOCS to pkg-plist PR: 26231 Submitted by: Ports Fury
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
--- Makefile.orig Sat Jul 17 10:37:03 1999
|
|
+++ Makefile Fri Mar 30 21:19:14 2001
|
|
@@ -5,8 +5,10 @@
|
|
# the executable
|
|
###########################################################################
|
|
|
|
-DATAPATH = /usr/games/xroads/
|
|
-BINPATH = /usr/X11R6/bin/
|
|
+PREFIX ?= /usr/X11R6
|
|
+X11BASE ?= /usr/X11R6
|
|
+DATAPATH = ${PREFIX}/share/xroads
|
|
+BINPATH = ${PREFIX}/bin
|
|
# I imagine you would use this BINPATH for Solaris:
|
|
#BINPATH = /usr/openwin/bin/
|
|
|
|
@@ -16,7 +18,7 @@
|
|
###########################################################################
|
|
|
|
#CFLAGS = -fomit-frame-pointer -O2 -Wall -DXRMPATH=\"$(DATAPATH)\"
|
|
-CFLAGS = -O6 -mpentium -g -Wall -DXRMPATH=\"$(DATAPATH)\"
|
|
+CFLAGS += -DXRMPATH=\"$(DATAPATH)\" -I${X11BASE}/include
|
|
|
|
###########################################################################
|
|
# Links necessary for X11
|
|
@@ -33,7 +35,7 @@
|
|
###########################################################################
|
|
|
|
### Linux machines use this line:
|
|
-LINK = -L/usr/X11R6/lib -I/usr/X11R6/include -lX11 -lm
|
|
+LINK = -L${X11BASE}/lib -lX11 -lm
|
|
|
|
### This line should work on Sun machines:
|
|
#LINK = -L/usr/openwin/lib -I/usr/openwin/include -lX11 -lm
|
|
@@ -43,8 +45,7 @@
|
|
###########################################################################
|
|
|
|
# Your C compiler
|
|
-CC = egcs
|
|
-#CC = gcc
|
|
+CC ?= gcc
|
|
|
|
# Your tar
|
|
TAR = tar
|
|
@@ -71,7 +72,7 @@
|
|
|
|
## "all" of course builds XRoads.
|
|
all: $(OBJECTS)
|
|
- $(CC) $(FLAGS) -o xroads $(OBJECTS) $(LINK)
|
|
+ $(CC) $(CFLAGS) -o xroads $(OBJECTS) $(LINK)
|
|
|
|
install: all
|
|
rm -fr $(DATAPATH)
|