blob: 0e90a7d26acc5ecc7180bb5e17ab83161f385e51 (
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
|
# Created by: Pedro F. Giffuni
# $FreeBSD$
PORTNAME= dataplot
DISTVERSION= 20190426
CATEGORIES= graphics
MAINTAINER= ports@FreeBSD.org
COMMENT= Free software system for statistical visualization
LICENSE= PD
LIB_DEPENDS= libgd.so:graphics/gd \
libpng.so:graphics/png
USES= gmake gnome fortran jpeg readline xorg
USE_GITHUB= yes
GH_ACCOUNT= usnistgov
GH_TAGNAME= 7236db0
USE_XORG= x11 xi
USE_GNOME= cairo
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>
|