From owner-svn-ports-all@FreeBSD.ORG Sat May 17 08:42:01 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6845A836; Sat, 17 May 2014 08:42:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49FB12CFD; Sat, 17 May 2014 08:42:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4H8g1VT038286; Sat, 17 May 2014 08:42:01 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4H8g0Dn038281; Sat, 17 May 2014 08:42:00 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201405170842.s4H8g0Dn038281@svn.freebsd.org> From: Martin Wilke Date: Sat, 17 May 2014 08:42:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r354299 - in head/x11-clocks/glclock: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2014 08:42:01 -0000 Author: miwi Date: Sat May 17 08:42:00 2014 New Revision: 354299 URL: http://svnweb.freebsd.org/changeset/ports/354299 QAT: https://qat.redports.org/buildarchive/r354299/ Log: - Fix build on -current PR: 188143 Submitted by: Ports Fury Added: head/x11-clocks/glclock/files/patch-MString.cpp (contents, props changed) Deleted: head/x11-clocks/glclock/files/patch-makefile Modified: head/x11-clocks/glclock/Makefile head/x11-clocks/glclock/files/patch-MString.H Modified: head/x11-clocks/glclock/Makefile ============================================================================== --- head/x11-clocks/glclock/Makefile Sat May 17 08:40:47 2014 (r354298) +++ head/x11-clocks/glclock/Makefile Sat May 17 08:42:00 2014 (r354299) @@ -13,37 +13,46 @@ COMMENT= OpenGL spinning pocket watch de USE_XORG= xi xmu xext x11 USE_GL= gl glu glut MAKEFILE= makefile -MAKE_ARGS= CC="${CXX}" LN="${CXX}" OPT="${OPT}" \ - INCLUDE_PATH="-I${LOCALBASE}/include" \ - LIB_PATH="-L${LOCALBASE}/lib" -OPT= -DIMAGE_PATH="\\\"${PREFIX}/lib/X11/glclock/\\\"" \ - ${CFLAGS} +CFLAGS+= -DIMAGE_PATH="\\\"${PREFIX}/lib/X11/glclock/\\\"" -PROGRAMS= glclock glclockmark +PLIST_FILES= ${PROGRAMS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} \ + ${TEXTURES:S,^,lib/X11/glclock/,} +PLIST_DIRS= lib/X11/glclock +OPTIONS_DEFINE= OPTIMIZED_CFLAGS + +OPTIMIZED_CFLAGS_CFLAGS=\ + -O3 -fexpensive-optimizations -ffast-math \ + -fomit-frame-pointer -fforce-mem -fforce-addr + +PROGRAMS= glclock glclockmark SCRIPTS= chromeclock chromeclock_L crystalclock crystalclock_L \ glclock_L glclockmark_ALL marbleclock marbleclock_L \ metalclock metalclock_L mwclock mwclock_L woodclock \ woodclock_L - TEXTURES= light.ppm marble.ppm sky.ppm wood.ppm detail.pgm \ detail2.pgm detail_b.pgm filter.pgm -PLIST_FILES= ${PROGRAMS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} \ - ${TEXTURES:S,^,lib/X11/glclock/,} -PLIST_DIRS= lib/X11/glclock - -OPTIONS_DEFINE= OPTIMIZED_CFLAGS - -OPTIMIZED_CFLAGS_CFLAGS= -O3 -fexpensive-optimizations \ - -ffast-math -fomit-frame-pointer -fforce-mem -fforce-addr +post-patch: + @${REINPLACE_CMD} -e \ + 's|g\+\+|$${CXX}| ; \ + s|-O2|$${CXXFLAGS}| ; \ + s|/usr/X11R6|$${LOCALBASE}|' ${WRKSRC}/${MAKEFILE} do-install: - ${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin +.for i in ${PROGRAMS} + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} \ + ${STAGEDIR}${PREFIX}/bin) +.endfor +.for i in ${SCRIPTS} + (cd ${WRKSRC} && ${INSTALL_SCRIPT} ${i} \ + ${STAGEDIR}${PREFIX}/bin) +.endfor @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/glclock - ${INSTALL_DATA} ${TEXTURES:S,^,${WRKSRC}/,} \ - ${STAGEDIR}${PREFIX}/lib/X11/glclock +.for i in ${TEXTURES} + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ + ${STAGEDIR}${PREFIX}/lib/X11/glclock) +.endfor .include Modified: head/x11-clocks/glclock/files/patch-MString.H ============================================================================== --- head/x11-clocks/glclock/files/patch-MString.H Sat May 17 08:40:47 2014 (r354298) +++ head/x11-clocks/glclock/files/patch-MString.H Sat May 17 08:42:00 2014 (r354299) @@ -1,5 +1,5 @@ ---- MString.H.orig Thu Jun 22 16:58:26 2000 -+++ MString.H Sun Oct 1 22:32:31 2006 +--- MString.H.orig 2000-06-22 23:58:26.000000000 +0900 ++++ MString.H 2014-04-01 01:01:42.000000000 +0900 @@ -66,7 +66,7 @@ #ifndef ___STRING_H___ #define ___STRING_H___ @@ -17,14 +17,22 @@ //#define STRING_DEBUG -@@ -407,6 +408,10 @@ - friend String& Cut(String s) ; - friend String& Cut(const char *s) ; - } ; -+ -+String Mid(String, int, int) ; -+String Left(const String&, int) ; -+String Right(const String&, int) ; +@@ -307,15 +308,15 @@ - // 整数から String へ - String IntToString(int i) ; + // m 文字目から n 文字 + String& Mid(int m, int n = 1) ; +- friend String Mid(String s, int m, int n = 1) ; ++ friend String Mid(String s, int m, int n) ; + + // 左から n 文字 + String& Left(int n = 1) ; +- friend String Left(const String& s, int n = 1) ; ++ friend String Left(const String& s, int n) ; + + // 右から n 文字 + String& Right(int n = 1) ; +- friend String Right(const String& s, int n = 1) ; ++ friend String Right(const String& s, int n) ; + + String FileDirectory() const ; + String FileNamePart() const ; Added: head/x11-clocks/glclock/files/patch-MString.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-clocks/glclock/files/patch-MString.cpp Sat May 17 08:42:00 2014 (r354299) @@ -0,0 +1,12 @@ +--- MString.cpp.orig ++++ MString.cpp +@@ -1,6 +1,9 @@ + + #include "MString.H" + ++String Left(const String &, int); ++String Mid(String, int, int); ++String Right(const String &, int); + + // コンストラクタ + String::String(int n)