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> |