Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2004 23:30:31 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62644: Update port: x11-clocks/glclock
Message-ID:  <20040210233031.64addf40.tkato@prontomail.com>
Resent-Message-ID: <200402101440.i1AEeHbj075892@freefall.freebsd.org>

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

>Number:         62644
>Category:       ports
>Synopsis:       Update port: x11-clocks/glclock
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 10 06:40:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Fix build on non-i386 arch

Remove file:
files/patch-aa

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/x11-clocks/glclock/Makefile x11-clocks/glclock/Makefile
--- /usr/ports/x11-clocks/glclock/Makefile	Sat Oct 18 21:27:08 2003
+++ x11-clocks/glclock/Makefile	Tue Feb 10 23:14:02 2004
@@ -16,11 +16,19 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	OpenGL Spinning pocketwatch demo and benchmark utility
 
+LIB_DEPENDS=	glut.3:${PORTSDIR}/graphics/libglut
+
 USE_X_PREFIX=	yes
-USE_MESA=	yes
+USE_GL=		yes
 MAKEFILE=	makefile
-ALL_TARGET=	glclock
-MAKE_ENV=	PTHREAD_LIBS="${PTHREAD_LIBS}"
+MAKE_ARGS=	CC="${CXX}" LN="${CXX}" OPT="${OPT}" \
+		INCLUDE_PATH="-I${X11BASE}/include" \
+		LIB_PATH="-L${X11BASE}/lib" LIBS="${LIBS}"
+ALL_TARGET=	${PORTNAME}
+
+OPT=		${CXXFLAGS} ${PTHREAD_CFLAGS} \
+		-DGLCLOCK_DIR="\\\"${PREFIX}/lib/X11/glclock/\\\""
+LIBS=		-lglut -lGLU -lGL -lXext -lXmu -lX11 -lm -lXi ${PTHREAD_LIBS}
 
 SCRIPTS = benchclock crystalclock f_crystalclock f_glclock		\
 	  f_marbleclock f_metalclock f_mwclock f_woodclock marbleclock	\
@@ -28,14 +36,19 @@
 
 TEXTURES = marble.ppm sky.ppm wood.ppm
 
+.if defined(WITH_OPTIMIZED_CFLAGS)
+CXXFLAGS+=	-O3 -fexpensive-optimizations -ffast-math \
+		-fomit-frame-pointer -fforce-mem -fforce-addr
+.endif
+
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/glclock ${PREFIX}/bin
-	@for f in ${SCRIPTS}; do \
-	   ${INSTALL_SCRIPT} ${WRKSRC}/$$f ${PREFIX}/bin; \
-	 done
-	@mkdir -p ${PREFIX}/lib/X11/glclock
-	@for f in ${TEXTURES}; do \
-	   ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/lib/X11/glclock; \
-	 done
+	${INSTALL_PROGRAM} ${WRKSRC}/glclock ${PREFIX}/bin
+.for f in ${SCRIPTS}
+	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
+.endfor
+	@${MKDIR} ${PREFIX}/lib/X11/glclock
+.for f in ${TEXTURES}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/X11/glclock
+.endfor
 
 .include <bsd.port.mk>
diff -urN /usr/ports/x11-clocks/glclock/files/patch-aa x11-clocks/glclock/files/patch-aa
--- /usr/ports/x11-clocks/glclock/files/patch-aa	Mon Jun 18 03:19:53 2001
+++ x11-clocks/glclock/files/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,38 +0,0 @@
---- makefile.orig	Sat Jun 12 08:37:05 1999
-+++ makefile	Tue Dec 14 15:34:07 1999
-@@ -3,22 +3,27 @@
- #         June 1998 by Masaki Kawase (g93088@isc.chubu.ac.jp)
- #
- 
--             CC = g++
--             LN = g++
--            OPT = -O2
-+             CC = ${CXX}
-+             LN = ${CC} 
-+            OPT = ${CFLAGS} -fexpensive-optimizations -ffast-math \
-+                  -fomit-frame-pointer -fforce-mem -fforce-addr
- 
--   INCLUDE_PATH = -I/usr/local/X11R6/include
--       LIB_PATH = -L/usr/local/X11R6/lib
-+    GLCLOCK_DIR = ${PREFIX}/lib/X11/glclock/
- 
--           LIBS = -lglut -lGLU -lGL -lXext -lXmu -lX11 -lm
-+   INCLUDE_PATH = -I${X11BASE}/include
-+       LIB_PATH = -L${X11BASE}/lib -Wl,-rpath,/usr/X11R6/lib
-+
-+# Link with -lGL on FreeBSD so we use hardware-accelerated GL, when installed.
-+# (see http://people.FreeBSD.org/~3d)
-+           LIBS = -lglut -lGLU -lGL -lXext -lXmu -lX11 -lm -lXi ${PTHREAD_LIBS}
- 
- #                 for Mesa
- #          LIBS = -lglut -lMesatk -lMesaGLU -lMesaGL -lXi -lXext -lXmu -lX11 -lm
- 
--         CFLAGS = -c
-+         CFLAGS += -w -DGLCLOCK_DIR=\"${GLCLOCK_DIR}\" ${PTHREAD_CFLAGS}
-          LFLAGS =
- 
--COMPILE = $(CC) $(CFLAGS) $(OPT) $(INCLUDE_PATH)
-+COMPILE = $(CC) $(CFLAGS) $(OPT) -c $(INCLUDE_PATH)
- LINK = $(LN) $(LFLAGS) $(OPT) $(LIB_PATH)
- 
- MAIN = glclock
>Release-Note:
>Audit-Trail:
>Unformatted:



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