blob: 4423a8b41ece285b73f7e29813cd3f8e3ccb5453 (
plain)
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
|
PORTNAME= dataplot
DISTVERSION= 20210713
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= ports@FreeBSD.org
COMMENT= Free software system for statistical visualization
WWW= https://www.itl.nist.gov/div898/software/dataplot/index.htm
LICENSE= PD
LIB_DEPENDS= libgd.so:graphics/gd \
libpng.so:graphics/png
USES= gmake gnome fortran jpeg readline xorg
USE_XORG= x11 xi
USE_GNOME= cairo
USE_GITHUB= yes
GH_ACCOUNT= usnistgov
GH_TAGNAME= d5eb15dd86dd80098c6535aa68898ab8392ab700
WRKSRC_SUBDIR= src
MAXOBV?= 450000 # Change if you need more observations/variable
FFLAGS+= -DLINUX -fdefault-real-8 -fdefault-double-8 -std=legacy
PORTDATA= *
PLIST_FILES= bin/dataplot bin/xdataplot
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's/MAXOBV=1500000/MAXOBV=${MAXOBV}/' \
${WRKSRC}/DPCOPA.INC
@${REINPLACE_CMD} \
-e 's;%%FC%%;${FC};' \
-e 's;%%CC%%;${CC};' \
-e 's;%%FFLAGS%%;${FFLAGS};' \
-e 's;%%CFLAGS%%;${CFLAGS};' \
-e 's;%%DATADIR%%;${DATADIR};' \
-e 's;%%LOCALBASE%%;${LOCALBASE};g' ${WRKSRC}/Makefile
post-build:
@${STRIP_CMD} ${WRKSRC}/dataplot
.include <bsd.port.mk>
|