blob: e6fefdb446b5d7f13efd85bcc4473d5d5070921a (
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
50
51
52
53
54
55
|
# Created by: Thierry Thomas <thierry@pompo.net>
PORTNAME= cdf3
PORTVERSION= 3.8.0
CATEGORIES= science
MASTER_SITES= https://spdf.gsfc.nasa.gov/pub/software/cdf/dist/cdf38_0/
DISTNAME= cdf${VER}-dist-cdf
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= stephen@FreeBSD.org
COMMENT= Device independent view of the CDF data model
LICENSE= NASA-G
LICENSE_NAME= NASA/Goddard Space Flight Center
LICENSE_FILE= ${WRKSRC}/CDF_copyright.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= bash:shells/bash
USES= fortran ncurses gmake
USE_LDCONFIG= yes
MAKE_FLAGS= INSTALLDIR=${STAGEDIR}${PREFIX} OS=freebsd ENV=gnu \
FORTRAN=yes FC_freebsd=${F77}
MAKE_JOBS_UNSAFE= yes
TEST_TARGET= test # XXX: test segfaults
FFLAGS+= -std=legacy
WRKSRC= ${WRKDIR}/cdf${VER}-dist
SUB_FILES= pkg-message
VER= ${PORTVERSION:S/.//:S/./_/}
DEFS= B C K
PORTDOCS= CDF_copyright.txt CHANGES.txt Release.notes Welcome.txt
OPTIONS_DEFINE= DOCS EXAMPLES
MAKE_ARGS+= OS=freebsd ENV=gnu all
post-patch:
.for def in ${DEFS}
@${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
${WRKSRC}/src/definitions/definitions.${def}
.endfor
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
${SED} -i '' 's,${STAGEDIR},,g' ${STAGEDIR}${PREFIX}/bin/definitions.?
${RM} -f ${STAGEDIR}${PREFIX}/CDFLeapSeconds.txt
.include <bsd.port.mk>
|