1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/xworm/files/patch-aa
1998-09-28 02:32:25 +00:00

43 lines
1.3 KiB
Plaintext

--- Makefile.orig Wed May 7 11:28:12 1997
+++ Makefile Sun Sep 27 12:19:42 1998
@@ -6,21 +6,26 @@
HPFLAGS = -O -D_HPUX_SOURCE
SUNFLAGS = -O
LINUXFLAGS = -O
+FREEBSDFLAGS= -O -DPREFIX=\"/usr/X11R6/share/xworm\"
INCDIR = -I/usr/include/X11R5 -I/usr/include -I/usr/X11R6/include
HPLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm
SUNLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm -lsocket -lnsl -lICE -lSM
LINUXLINK = -L/usr/X11R6/lib -lXt -lX11 -lm
+.if ${PORTOBJFORMAT} == "elf"
+LINUXLINK+= -Wl,-rpath,$(X11BASE)/lib
+.endif
all:
@echo "Makefile for XWorm v1.02 - written by The Last Viking (C) 1995-97 Ekran Design."
@echo " "
@echo "type:"
@echo " "
- @echo " make hp [HP/UX and similar systems]"
- @echo " make sun [Sun-Os/SUN systems]"
- @echo " make linux [linux systems]"
+ @echo " make hp [HP/UX and similar systems]"
+ @echo " make sun [Sun-Os/SUN systems]"
+ @echo " make linux [linux systems]"
+ @echo " make freebsd [FreeBSD systems]"
@echo " "
@echo "xworm.font, xworm.grid and xworm.raw has to be in the same directory as xworm"
@echo "please check the Makefile if you have problems compiling the program"
@@ -33,6 +38,9 @@
linux: xworm.c
$(CC) $(LINUXFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK)
+
+freebsd: xworm.c
+ $(CC) $(FREEBSDFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK)
clean:
rm -f core xworm