Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2001 13:13:14 -0400 (EDT)
From:      pat@databits.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28074: Fix compile errors for games/gleyes
Message-ID:  <200106111713.f5BHDEJ70998@wlgrv1.pa.home.com>

next in thread | raw e-mail | index | archive | help

>Number:         28074
>Category:       ports
>Synopsis:       Fix compile errors for games/gleyes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 11 10:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Li
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
N/A
>Environment:
System: FreeBSD bottlenek 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu Jun 7 00:17:13 EDT 2001 pat@bottlenek:/usr/src/sys/compile/BOTTLENEK i386
>Description:
o Add ${PTHREAD_LIBS} and ${PTHREAD_CFLAGS} to fix compile errors
o Put the active links in MASTER_SITES at the top
>How-To-Repeat:
N/A
>Fix:
diff -ruN /usr/ports/games/gleyes/Makefile gleyes/Makefile
--- /usr/ports/games/gleyes/Makefile	Fri Oct 13 16:24:35 2000
+++ gleyes/Makefile	Mon Jun 11 10:50:59 2001
@@ -8,8 +8,8 @@
 PORTNAME=	gleyes
 PORTVERSION=	0.2
 CATEGORIES=	games
-MASTER_SITES=	ftp://ftp.kddlabs.co.jp/.1/X11/acontrib/gleyes/ \
-		ftp://ftp.riken.go.jp/pub/X11/acontrib/gleyes/ \
+MASTER_SITES=	ftp://ftp.riken.go.jp/pub/X11/acontrib/gleyes/ \
+		ftp://ftp.kddlabs.co.jp/.1/X11/acontrib/gleyes/ \
 		ftp://ftp.cit.nepean.uws.edu.au/unix/X/graphics/
 # initial distribution location was http://puma.inf.ufpr.br/~claudio/gleyes/
 # which is unresponsive since about 21.12.1998
@@ -18,6 +18,7 @@
 
 USE_X_PREFIX=	yes
 USE_MESA=	yes
+MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}"
 
 MAN1=		gleyes.1
 
diff -ruN /usr/ports/games/gleyes/files/patch-aa gleyes/files/patch-aa
--- /usr/ports/games/gleyes/files/patch-aa	Fri Oct 13 16:24:37 2000
+++ gleyes/files/patch-aa	Mon Jun 11 10:52:30 2001
@@ -1,6 +1,6 @@
---- Makefile.orig	Wed Oct 14 01:16:35 1998
-+++ Makefile	Wed Aug  9 04:33:59 2000
-@@ -5,8 +5,8 @@
+--- Makefile.orig	Tue Oct 13 12:16:35 1998
++++ Makefile	Mon Jun 11 10:52:15 2001
+@@ -5,21 +5,23 @@
  #--------------------------------------------------------------------------
  
  # Where you want to have it installed
@@ -11,8 +11,10 @@
  
  # Use these for Mesa
  #GL	= -lglut -lMesaGLU -lMesaGL
-@@ -15,11 +15,13 @@
- GL	= -lglut -lGLU -lGL
+ 
+ # Use these for OpenGL
+-GL	= -lglut -lGLU -lGL
++GL	= -lglut -lGLU -lGL ${PTHREAD_LIBS}
  
  # Use these for gcc on Linux (may work in other systems as well)
 -CC	= gcc
@@ -21,7 +23,7 @@
 +CC	?= gcc
 +CFLAGS	?= -pipe -O2 -fexpensive-optimizations -ffast-math -fomit-frame-pointer \
 +	  -fforce-mem -fforce-addr
-+CFLAGS	+= -I${X11BASE}/include
++CFLAGS	+= -I${X11BASE}/include ${PTHREAD_CFLAGS}
 +LD	= $(CC)
  LDFLAGS	= -o $@
 -LIBS	= -L/usr/X11/lib -L/usr/local/lib $(GL) -lX11 -lXext -lXmu -lXi -lm
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106111713.f5BHDEJ70998>