summaryrefslogtreecommitdiff
path: root/graphics/xfractint/files/patch-Makefile
blob: 4badfc2a7f10b3bc077e9a604e36ce6b3af88cb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
--- Makefile.orig	2020-08-01 23:19:09 UTC
+++ Makefile
@@ -20,7 +20,7 @@ NCURSES =
 
 # Use Xft/fontconfig libraries
 WITHXFT = -DWITH_XFT
-XFTHFD = /usr/include/freetype2
+XFTHFD = $(LOCALBASE)/include/freetype2
 # Or not
 # WITHXFT =
 # XFTHFD =
@@ -34,7 +34,7 @@ endif
 
 # SRCDIR should be a path to the directory that will hold fractint.hlp
 # SRCDIR should also hold the .par, .frm, etc. files
-SRCDIR = $(DESTDIR)/share/xfractint
+SRCDIR = $(PREFIX)/share/xfractint
 SHRDIR = $(PREFIX)/share/xfractint
 # BINDIR is where you put your X11 binaries
 BINDIR = $(DESTDIR)/bin
@@ -123,24 +123,20 @@ AFLAGS = -f elf -w+orphan-labels
 #For Solaris, use CFLAGS = -I. -I/usr/openwin/include $(DEFINES) -g
 #If you have the nasm assembler on your system add -DNASM to CFLAGS
 
-ifeq ($(AS),/usr/bin/nasm)
 
-CFLAGS = -I$(HFD) $(DEFINES) -DBIG_ANSI_C -DLINUX -DNASM -fno-builtin
 #CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -DNASM -fno-builtin
 #CFLAGS = -I. -D_CONST $(DEFINES)
 #CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX \
 #         -march=$(ARCH) -DNASM -fno-builtin
 #CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -DNASM -fno-builtin
 
-else
 
-CFLAGS = -I$(HFD) $(DEFINES) -DBIG_ANSI_C -DLINUX -fno-builtin
+CFLAGS = -I$(LOCALBASE)/include -I$(HFD) $(DEFINES) -DBIG_ANSI_C -DLINUX -fno-builtin
 #CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX -fno-builtin
 #CFLAGS = -I$(HFD) $(DEFINES) -g -DBIG_ANSI_C -DLINUX \
 #         -march=$(ARCH) -fno-builtin
 #CFLAGS = -I. $(DEFINES) -g -DBIG_ANSI_C -DLINUX -Os -fno-builtin
 
-endif
 
 # Gcc is often the only compiler that works for this
 # For HPUX, use CC = cc -Aa -D_HPUX_SOURCE
@@ -162,11 +158,7 @@ CC ?=
 # LIBS = -L/usr/X11R6/lib -lX11 -lm -lncurses
 # LIBS = -lX11 -lm -lcurses
 
-ifeq ($(ARCH),athlon64)
-LIBS = -L/usr/X11R6/lib64 -lX11 -lm -no-pie
-else
-LIBS = -L/usr/X11R6/lib -lX11 -lm -no-pie
-endif
+LIBS = -L${LOCALBASE}/lib -lX11 -lm
 
 ifeq ($(NCURSES),-DNCURSES)
 LIBS += -lncurses
@@ -324,9 +316,9 @@ fractint:
 	rm -f unix/unixscr.o unix/video.o unix/xfcurses.o
 	make NCURSES=-DNCURSES ; mv xfractint fractint
 	rm -f common/encoder.o common/help.o common/realdos.o
-	rm -f unix/unixscr.o unix/video.o unix/xfcurses.o	
+	rm -f unix/unixscr.o unix/video.o unix/xfcurses.o
 	if [ -x xfractint.x11 ] ; then mv -f xfractint.x11 xfractint ; fi
-	
+
 # tar: $(FILES)
 #	tar cvfj xfractint.tar.bz2 $(FILES)