aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-10-14 04:24:37 +0800
committerade <ade@FreeBSD.org>2000-10-14 04:24:37 +0800
commit82bf5e5dadd1ca826ca7dd88c3734b4d6363ea53 (patch)
treed40776cddce0518cd25a7414e7136256a0db071b /games
parentf07977f9210156af8e7ac73cad3fd7b35c32a072 (diff)
downloadfreebsd-ports-gnome-82bf5e5dadd1ca826ca7dd88c3734b4d6363ea53.tar.gz
freebsd-ports-gnome-82bf5e5dadd1ca826ca7dd88c3734b4d6363ea53.tar.zst
freebsd-ports-gnome-82bf5e5dadd1ca826ca7dd88c3734b4d6363ea53.zip
Support X11BASE/PREFIX properly
PR: 21611 Submitted by: Ports Fury (no response from maintainer)
Diffstat (limited to 'games')
-rw-r--r--games/gleyes/Makefile5
-rw-r--r--games/gleyes/files/patch-aa26
2 files changed, 19 insertions, 12 deletions
diff --git a/games/gleyes/Makefile b/games/gleyes/Makefile
index 9bfd6e14adaf..d9387e0f94d7 100644
--- a/games/gleyes/Makefile
+++ b/games/gleyes/Makefile
@@ -16,12 +16,9 @@ MASTER_SITES= ftp://ftp.kddlabs.co.jp/.1/X11/acontrib/gleyes/ \
MAINTAINER= malte.lance@gmx.net
-MAN1= gleyes.1
USE_X_PREFIX= yes
USE_MESA= yes
-do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/gleyes ${PREFIX}/bin
- @${INSTALL_MAN} ${WRKSRC}/gleyes.1 ${PREFIX}/man/man1/gleyes.1
+MAN1= gleyes.1
.include <bsd.port.mk>
diff --git a/games/gleyes/files/patch-aa b/games/gleyes/files/patch-aa
index bdd088b050e3..527de015ab80 100644
--- a/games/gleyes/files/patch-aa
+++ b/games/gleyes/files/patch-aa
@@ -1,17 +1,17 @@
---- Makefile.orig Tue Oct 13 09:16:35 1998
-+++ Makefile Sun Feb 6 16:36:08 2000
+--- Makefile.orig Wed Oct 14 01:16:35 1998
++++ Makefile Wed Aug 9 04:33:59 2000
@@ -5,8 +5,8 @@
#--------------------------------------------------------------------------
# Where you want to have it installed
-BINDIR = /usr/X11/bin
-MANDIR = /usr/X11/man/man1
-+BINDIR = /usr/X11R6/bin
-+MANDIR = /usr/X11R6/man/man1
++BINDIR = ${PREFIX}/bin
++MANDIR = ${PREFIX}/man/man1
# Use these for Mesa
#GL = -lglut -lMesaGLU -lMesaGL
-@@ -15,11 +15,14 @@
+@@ -15,11 +15,13 @@
GL = -lglut -lGLU -lGL
# Use these for gcc on Linux (may work in other systems as well)
@@ -21,12 +21,22 @@
+CC ?= gcc
+CFLAGS ?= -pipe -O2 -fexpensive-optimizations -ffast-math -fomit-frame-pointer \
+ -fforce-mem -fforce-addr
-+CFLAGS += -Wall -Wno-implicit-int -I/usr/X11R6/include \
-+ -I/usr/local/include
++CFLAGS += -I${X11BASE}/include
+LD = $(CC)
LDFLAGS = -o $@
-LIBS = -L/usr/X11/lib -L/usr/local/lib $(GL) -lX11 -lXext -lXmu -lXi -lm
-+LIBS = -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/local/lib $(GL) -lX11 -lXext -lXmu -lXi -lm
++LIBS = -Wl,-rpath,${X11BASE}/lib -L${X11BASE}/lib $(GL) -lX11 -lXext -lXmu -lXi -lm
# Use these for cc on IRIX (submitted by Andrew Dalke <dalke@bioreason.com>)
#CC = cc
+@@ -57,8 +59,8 @@
+ rm -f *.o core
+
+ install: gleyes
+- cp gleyes $(BINDIR)
+- cp gleyes.1 $(MANDIR)
++ ${BSD_INSTALL_PROGRAM} gleyes $(BINDIR)
++ ${BSD_INSTALL_MAN} gleyes.1 $(MANDIR)
+
+ dist:
+ rm -Rf $(DIST) $(DIST).tar.gz