From owner-svn-ports-all@FreeBSD.ORG Sun Dec 23 19:11:13 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C10E0DFB; Sun, 23 Dec 2012 19:11:13 +0000 (UTC) (envelope-from beech@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A45BD8FC12; Sun, 23 Dec 2012 19:11:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBNJBDmY051442; Sun, 23 Dec 2012 19:11:13 GMT (envelope-from beech@svn.freebsd.org) Received: (from beech@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBNJBCoV051435; Sun, 23 Dec 2012 19:11:12 GMT (envelope-from beech@svn.freebsd.org) Message-Id: <201212231911.qBNJBCoV051435@svn.freebsd.org> From: Beech Rintoul Date: Sun, 23 Dec 2012 19:11:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309445 - in head/science/flounder: . 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.14 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: Sun, 23 Dec 2012 19:11:13 -0000 Author: beech Date: Sun Dec 23 19:11:12 2012 New Revision: 309445 URL: http://svnweb.freebsd.org/changeset/ports/309445 Log: - Fix build with clang - Support PLIST_FILES - Strip binaries PR: ports/174167 Submitted by: KATO Tsuguru (maintainer) Added: head/science/flounder/files/patch-Glarea.cc (contents, props changed) Deleted: head/science/flounder/pkg-plist Modified: head/science/flounder/Makefile (contents, props changed) head/science/flounder/files/patch-Fl_Gnuplot.cc (contents, props changed) head/science/flounder/files/patch-IGBheader.cc (contents, props changed) head/science/flounder/files/patch-RenderEPS.h (contents, props changed) Modified: head/science/flounder/Makefile ============================================================================== --- head/science/flounder/Makefile Sun Dec 23 17:52:46 2012 (r309444) +++ head/science/flounder/Makefile Sun Dec 23 19:11:12 2012 (r309445) @@ -1,14 +1,9 @@ -# ex:ts=8 -# Ports collection Makefile for: flounder -# Date created: Oct 14, 2002 -# Whom: ijliao -# +# Created by: ijliao # $FreeBSD$ -# PORTNAME= flounder PORTVERSION= 0.40 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= science MASTER_SITES= http://www.enel.ucalgary.ca/People/vigmond/flounder/ EXTRACT_SUFX= .tgz @@ -16,35 +11,52 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= A quick way to visualize regularly spaced 4D data -LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \ - gif:${PORTSDIR}/graphics/giflib \ - png15:${PORTSDIR}/graphics/png +LIB_DEPENDS= gif:${PORTSDIR}/graphics/giflib \ + png15:${PORTSDIR}/graphics/png \ + fltk:${PORTSDIR}/x11-toolkits/fltk + +OPTIONS_DEFINE= GNUPLOT GRACE +OPTIONS_DEFAULT=GNUPLOT GRACE +GRACE_DESC= Plotting via GRACE USE_GL= glut -GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lstdc++ USE_GMAKE= yes +GNU_CONFIGURE= yes +MAKE_JOBS_SAFE= yes + +CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} + +PLIST_FILES= bin/flounder bin/igbhead -.if !defined(WITHOUT_PLOT) +.include + +.if ${PORT_OPTIONS:MGNUPLOT} BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot CONFIGURE_ARGS+= --enable-gnuplot .endif -.if !defined(WITHOUT_GRACE) +.if ${PORT_OPTIONS:MGRACE} BUILD_DEPENDS+= xmgrace:${PORTSDIR}/math/grace RUN_DEPENDS+= xmgrace:${PORTSDIR}/math/grace CONFIGURE_ARGS+= --enable-grace .endif post-patch: - ${REINPLACE_CMD} -e "s|-lungif|-lgif|" ${WRKSRC}/configure - -.include - -.if ${ARCH} == "alpha" -BROKEN= Does not compile on alpha -.endif + @${REINPLACE_CMD} -e \ + 's|-lungif|-lgif|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|cmdline.o.*|cmdline.o| ; \ + /getopt.o/d ; \ + /getopt1.o/d ; \ + s|g++ |$$(CXX) | ; \ + s|-g | |' ${WRKSRC}/utils/Makefile + @${REINPLACE_CMD} -e \ + 's|^main(|int main(|' ${WRKSRC}/utils/igbhead.cc + +do-install: + cd ${WRKSRC}/src && ${INSTALL_PROGRAM} flounder ${PREFIX}/bin + cd ${WRKSRC}/utils && ${INSTALL_PROGRAM} igbhead ${PREFIX}/bin -.include +.include Modified: head/science/flounder/files/patch-Fl_Gnuplot.cc ============================================================================== --- head/science/flounder/files/patch-Fl_Gnuplot.cc Sun Dec 23 17:52:46 2012 (r309444) +++ head/science/flounder/files/patch-Fl_Gnuplot.cc Sun Dec 23 19:11:12 2012 (r309445) @@ -1,6 +1,11 @@ ---- src/Fl_Gnuplot.cc.orig Tue Oct 15 03:59:41 2002 -+++ src/Fl_Gnuplot.cc Tue Oct 15 04:02:05 2002 -@@ -44,6 +44,7 @@ +--- src/Fl_Gnuplot.cc.orig 2002-12-20 03:56:35.000000000 +0900 ++++ src/Fl_Gnuplot.cc 2012-10-23 23:22:44.000000000 +0900 +@@ -39,11 +39,11 @@ + + #include + #include +-#include + #include #include #include #include @@ -8,7 +13,7 @@ #include "FL/fl_draw.H" #include "FL/fl_ask.H" -@@ -53,12 +54,14 @@ +@@ -53,12 +53,14 @@ #define N_ENTRIES 8192 Added: head/science/flounder/files/patch-Glarea.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/flounder/files/patch-Glarea.cc Sun Dec 23 19:11:12 2012 (r309445) @@ -0,0 +1,11 @@ +--- src/Glarea.cc.orig 2002-12-20 03:56:35.000000000 +0900 ++++ src/Glarea.cc 2012-12-12 23:16:47.000000000 +0900 +@@ -918,7 +918,7 @@ + igbname = fname + ".gz"; + if( (in=gzopen( igbname.c_str(), "r" )) == NULL ) { + igbname = fname + ".igb.gz"; +- if( (in=fopen( igbname.c_str(), "rb" )) == NULL ) ++ if( (in=(gzFile)fopen( igbname.c_str(), "rb" )) == NULL ) + return 1; + } + } Modified: head/science/flounder/files/patch-IGBheader.cc ============================================================================== --- head/science/flounder/files/patch-IGBheader.cc Sun Dec 23 17:52:46 2012 (r309444) +++ head/science/flounder/files/patch-IGBheader.cc Sun Dec 23 19:11:12 2012 (r309445) @@ -1,13 +1,52 @@ --- src/IGBheader.cc.orig Tue Oct 15 02:15:19 2002 +++ src/IGBheader.cc Tue Oct 15 02:15:44 2002 -@@ -17,7 +17,10 @@ +@@ -17,8 +17,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include +#include #include "IGBheader.h" -+ -+using namespace std; ++using namespace std; ++ /* -------------- Bits de statut pour Header_Read et Header_Write ------ */ + #define MOT_CLEF_INV 2 +@@ -756,7 +759,7 @@ + if (bool_comment) { + comment = v_comment; + while (*comment != NULL) { +- n_car = gzprintf(file, "#%.80s\r\n", *comment++); ++ n_car = gzprintf((gzFile)file, "#%.80s\r\n", *comment++); + if (n_car==0) { + if (!Header_Quiet) { + fprintf(stderr, "\nHeader_Write: Erreur a l'ecriture \n"); +@@ -861,7 +864,7 @@ + } + + /* --- lit le caractere suivant --- */ +- in = gzgetc( file ) ; ++ in = gzgetc( (gzFile)file ) ; + + /* --- (EOF dans l'entete) --> erreur --- */ + if ( in == -1 ) { +@@ -1318,8 +1321,8 @@ + } + } + +- if (gztell(file)!=1024) { +- gzseek( file, 1024, SEEK_SET ); ++ if (gztell((gzFile)file)!=1024) { ++ gzseek( (gzFile)file, 1024, SEEK_SET ); + if (!Header_Quiet) { + fprintf(stderr, + "\nATTENTION: etiquette de grandeur non-standard \n"); +@@ -1335,7 +1338,7 @@ + + if (bool_vect_z) { + v_vect_z = (float *)malloc(v_z*sizeof(float)); +- gzread(file, v_vect_z, sizeof(float)*v_z); ++ gzread((gzFile)file, v_vect_z, sizeof(float)*v_z); + } + + return( statut ) ; Modified: head/science/flounder/files/patch-RenderEPS.h ============================================================================== --- head/science/flounder/files/patch-RenderEPS.h Sun Dec 23 17:52:46 2012 (r309444) +++ head/science/flounder/files/patch-RenderEPS.h Sun Dec 23 19:11:12 2012 (r309445) @@ -1,11 +1,10 @@ ---- src/RenderEPS.h.orig Tue Oct 15 00:35:11 2002 -+++ src/RenderEPS.h Tue Oct 15 00:35:26 2002 -@@ -23,6 +23,8 @@ +--- src/RenderEPS.h.orig 2002-12-19 13:37:24.000000000 +0900 ++++ src/RenderEPS.h 2012-10-23 23:23:41.000000000 +0900 +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include #include #include - -+using namespace std; -+ - #define FB_BUFSIZE 1000000 - - class RenderEPS { + using namespace std;