View | Details | Raw Unified | Return to bug 174167 | Differences between
and this patch

Collapse All | Expand All

(-)science/flounder/Makefile (-23 / +35 lines)
Lines 1-14 Link Here
1
# ex:ts=8
1
# Created by: ijliao
2
# Ports collection Makefile for:	flounder
3
# Date created:			Oct 14, 2002
4
# Whom:				ijliao
5
#
6
# $FreeBSD: head/science/flounder/Makefile 302037 2012-08-04 22:52:02Z kwm $
2
# $FreeBSD: head/science/flounder/Makefile 302037 2012-08-04 22:52:02Z kwm $
7
#
8
3
9
PORTNAME=	flounder
4
PORTNAME=	flounder
10
PORTVERSION=	0.40
5
PORTVERSION=	0.40
11
PORTREVISION=	14
6
PORTREVISION=	15
12
CATEGORIES=	science
7
CATEGORIES=	science
13
MASTER_SITES=	http://www.enel.ucalgary.ca/People/vigmond/flounder/
8
MASTER_SITES=	http://www.enel.ucalgary.ca/People/vigmond/flounder/
14
EXTRACT_SUFX=	.tgz
9
EXTRACT_SUFX=	.tgz
Lines 16-50 Link Here
16
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	A quick way to visualize regularly spaced 4D data
12
COMMENT=	A quick way to visualize regularly spaced 4D data
18
13
19
LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk \
14
LIB_DEPENDS=	gif:${PORTSDIR}/graphics/giflib \
20
		gif:${PORTSDIR}/graphics/giflib \
15
		png15:${PORTSDIR}/graphics/png \
21
		png15:${PORTSDIR}/graphics/png
16
		fltk:${PORTSDIR}/x11-toolkits/fltk
17
18
OPTIONS_DEFINE=	GNUPLOT GRACE
19
OPTIONS_DEFAULT=GNUPLOT GRACE
20
GRACE_DESC=	Plotting via GRACE
22
21
23
USE_GL=		glut
22
USE_GL=		glut
24
GNU_CONFIGURE=	yes
25
CPPFLAGS+=	-I${LOCALBASE}/include
26
LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lstdc++
27
USE_GMAKE=	yes
23
USE_GMAKE=	yes
24
GNU_CONFIGURE=	yes
25
MAKE_JOBS_SAFE=	yes
26
27
CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
28
LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
29
30
PLIST_FILES=	bin/flounder bin/igbhead
28
31
29
.if !defined(WITHOUT_PLOT)
32
.include <bsd.port.options.mk>
33
34
.if ${PORT_OPTIONS:MGNUPLOT}
30
BUILD_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
35
BUILD_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
31
RUN_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
36
RUN_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
32
CONFIGURE_ARGS+=	--enable-gnuplot
37
CONFIGURE_ARGS+=	--enable-gnuplot
33
.endif
38
.endif
34
39
35
.if !defined(WITHOUT_GRACE)
40
.if ${PORT_OPTIONS:MGRACE}
36
BUILD_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
41
BUILD_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
37
RUN_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
42
RUN_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
38
CONFIGURE_ARGS+=	--enable-grace
43
CONFIGURE_ARGS+=	--enable-grace
39
.endif
44
.endif
40
45
41
post-patch:
46
post-patch:
42
	${REINPLACE_CMD} -e "s|-lungif|-lgif|" ${WRKSRC}/configure
47
	@${REINPLACE_CMD} -e \
43
48
		's|-lungif|-lgif|' ${WRKSRC}/configure
44
.include <bsd.port.pre.mk>
49
	@${REINPLACE_CMD} -e \
45
50
		's|cmdline.o.*|cmdline.o| ; \
46
.if ${ARCH} == "alpha"
51
		 /getopt.o/d ; \
47
BROKEN=		Does not compile on alpha
52
		 /getopt1.o/d ; \
48
.endif
53
		 s|g++ |$$(CXX) | ; \
54
		 s|-g | |' ${WRKSRC}/utils/Makefile
55
	@${REINPLACE_CMD} -e \
56
		's|^main(|int main(|' ${WRKSRC}/utils/igbhead.cc
57
58
do-install:
59
	cd ${WRKSRC}/src && ${INSTALL_PROGRAM} flounder ${PREFIX}/bin
60
	cd ${WRKSRC}/utils && ${INSTALL_PROGRAM} igbhead ${PREFIX}/bin
49
61
50
.include <bsd.port.post.mk>
62
.include <bsd.port.mk>
(-)science/flounder/files/patch-Fl_Gnuplot.cc (-4 / +9 lines)
Lines 1-6 Link Here
1
--- src/Fl_Gnuplot.cc.orig	Tue Oct 15 03:59:41 2002
1
--- src/Fl_Gnuplot.cc.orig	2002-12-20 03:56:35.000000000 +0900
2
+++ src/Fl_Gnuplot.cc	Tue Oct 15 04:02:05 2002
2
+++ src/Fl_Gnuplot.cc	2012-10-23 23:22:44.000000000 +0900
3
@@ -44,6 +44,7 @@
3
@@ -39,11 +39,11 @@
4
 
5
 #include <stdlib.h>
6
 #include <stdio.h>
7
-#include <fstream.h>
8
 #include <unistd.h>
4
 #include <sys/types.h>
9
 #include <sys/types.h>
5
 #include <sys/stat.h>
10
 #include <sys/stat.h>
6
 #include <fcntl.h>
11
 #include <fcntl.h>
Lines 8-14 Link Here
8
 
13
 
9
 #include "FL/fl_draw.H"
14
 #include "FL/fl_draw.H"
10
 #include "FL/fl_ask.H"
15
 #include "FL/fl_ask.H"
11
@@ -53,12 +54,14 @@
16
@@ -53,12 +53,14 @@
12
 
17
 
13
 #define N_ENTRIES 8192
18
 #define N_ENTRIES 8192
14
 
19
 
(-)science/flounder/files/patch-RenderEPS.h (-9 / +8 lines)
Lines 1-11 Link Here
1
--- src/RenderEPS.h.orig	Tue Oct 15 00:35:11 2002
1
--- src/RenderEPS.h.orig	2002-12-19 13:37:24.000000000 +0900
2
+++ src/RenderEPS.h	Tue Oct 15 00:35:26 2002
2
+++ src/RenderEPS.h	2012-10-23 23:23:41.000000000 +0900
3
@@ -23,6 +23,8 @@
3
@@ -20,6 +20,7 @@
4
 #include <math.h>
5
 #include <stdio.h>
6
 #include <stdlib.h>
7
+#include <string.h>
4
 #include <GL/gl.h>
8
 #include <GL/gl.h>
5
 #include <string>
9
 #include <string>
6
 
10
 using namespace std;
7
+using namespace std;
8
+
9
 #define FB_BUFSIZE 1000000
10
 
11
 class RenderEPS {
(-)science/flounder/pkg-plist (-2 lines)
Lines 1-2 Link Here
1
bin/flounder
2
bin/igbhead

Return to bug 174167