blob: 4d9715cda628d16c5c2981f48a3ca0b05f45cdd8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Created by: Lars Köller <Lars.Koeller@Uni-Bielefeld.de>
# $FreeBSD$
PORTNAME= grace
PORTVERSION= 5.1.23
PORTREVISION= 1
CATEGORIES= math print
#
MASTER_SITES= ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ \
ftp://ftp.fu-berlin.de/unix/graphics/grace/src/stable/ \
ftp://ftp.ntua.gr/pub/graphics/grace/src/stable/ \
ftp://ftp.u-aizu.ac.jp/pub/SciEng/math/grace/src/stable/
MAINTAINER= ports@FreeBSD.org
COMMENT= Powerful 2D plotting tool (successor of xmgr)
LICENSE= GPLv2
LIB_DEPENDS= t1:${PORTSDIR}/devel/t1lib \
jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
Xbae:${PORTSDIR}/x11-toolkits/xbae \
XmHTML:${PORTSDIR}/x11-toolkits/xmhtml
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
USE_MOTIF= yes
USE_GCC= any
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-grace-home=${DATADIR} \
--with-extra-incpath=${LOCALBASE}/include \
--with-extra-ldpath=${LOCALBASE}/lib \
--with-helpviewer="xdg-open %s" \
--without-bundled-xbae
ALL_TARGET= # empty
MAKE_JOBS_SAFE= yes
MAN1= convcal.1 grace.1 grconvert.1
MLINKS= grace.1 gracebat.1 \
grace.1 xmgrace.1
OPTIONS_DEFINE= FFTW NETCDF PDF DOCS EXAMPLES
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
PDF_DESC= PDF output
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFFTW}
LIB_DEPENDS+= fftw:${PORTSDIR}/math/fftw
CONFIGURE_ARGS+= --with-fftw
.else
CONFIGURE_ARGS+= --without-fftw
.endif
.if ${PORT_OPTIONS:MNETCDF}
LIB_DEPENDS+= netcdf:${PORTSDIR}/science/netcdf
CONFIGURE_ARGS+= --enable-netcdf
.else
CONFIGURE_ARGS+= --disable-netcdf
.endif
.if ${PORT_OPTIONS:MPDF}
LIB_DEPENDS+= pdf:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+= --enable-pdfdrv
.else
CONFIGURE_ARGS+= --disable-pdfdrv
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/xmgrace ${PREFIX}/bin
@${LN} -sf xmgrace ${PREFIX}/bin/grace
@${LN} -sf xmgrace ${PREFIX}/bin/gracebat
${INSTALL_PROGRAM} ${WRKSRC}/auxiliary/convcal ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/grconvert/grconvert ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/auxiliary/fdf2fit ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/grace_np/grace_np.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/grace_np/libgrace_np.a ${PREFIX}/lib
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gracerc ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gracerc.user ${DATADIR}
@${MKDIR} ${DATADIR}/auxiliary
${INSTALL_DATA} ${WRKSRC}/auxiliary/README ${DATADIR}/auxiliary
${INSTALL_DATA} ${WRKSRC}/auxiliary/convcal.c ${DATADIR}/auxiliary
${INSTALL_DATA} ${WRKSRC}/auxiliary/magic.grace ${DATADIR}/auxiliary
@${MKDIR} ${DATADIR}/fonts
${INSTALL_DATA} ${WRKSRC}/fonts/FontDataBase ${DATADIR}/fonts
@${MKDIR} ${DATADIR}/fonts/enc
${INSTALL_DATA} ${WRKSRC}/fonts/enc/*.enc ${DATADIR}/fonts/enc
@${MKDIR} ${DATADIR}/fonts/type1
${INSTALL_DATA} ${WRKSRC}/fonts/type1/*.afm ${DATADIR}/fonts/type1
${INSTALL_DATA} ${WRKSRC}/fonts/type1/*.pfb ${DATADIR}/fonts/type1
@${MKDIR} ${DATADIR}/templates
${INSTALL_DATA} ${WRKSRC}/templates/*.agr ${DATADIR}/templates
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${TAR} -C ${WRKSRC}/doc --exclude "*Makefile*" --exclude "*.1" \
-cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf -
@${FIND} ${DOCSDIR} -exec ${CHOWN} ${SHAREOWN}:${SHAREGRP} {} \;
@${FIND} ${DOCSDIR} -type f -exec ${CHMOD} ${SHAREMODE} {} \;
@${LN} -sf ${DOCSDIR} ${DATADIR}/doc
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@${TAR} -C ${WRKSRC}/examples --exclude "*Makefile*" \
-cf - . | ${TAR} -C ${EXAMPLESDIR} --unlink -xf -
@${FIND} ${EXAMPLESDIR} -exec ${CHOWN} ${SHAREOWN}:${SHAREGRP} {} \;
@${FIND} ${EXAMPLESDIR} -type f -exec ${CHMOD} ${SHAREMODE} {} \;
@${LN} -sf ${EXAMPLESDIR} ${DATADIR}/examples
.endif
.include <bsd.port.mk>
|