blob: a93115c53e29135601b918db26617ceff09125f6 (
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
|
# New ports collection makefile for: cdf
# Date created: 26 January 2006
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= cdf3
PORTVERSION= 3.1
PORTREVISION= 7
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_LOCAL} \
ftp://nssdcftp.gsfc.nasa.gov/standards/cdf/dist/cdf${VER}/unix-linux/ \
http://windsor.gsfc.nasa.gov/standards/cdf/dist/cdf${VER}/unix-linux/
MASTER_SITE_SUBDIR= thierry/${PKGNAME}
DISTNAME= cdf${VER}-dist-cdf
DIST_SUBDIR= ${PKGNAME}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Device independent view of the CDF data model
MAKE_FLAGS= INSTALLDIR=${PREFIX} OS=${OPSYS:L} ENV=gnu \
FORTRAN=yes FC_freebsd=${F77}
USE_LDCONFIG= yes
VER= ${PORTVERSION:S/.//}
WANT_FORTRAN= yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC= gfortran42
F77= gfortran42
MAKE_ENV+= FFLAGS="${FFLAGS}"
WRKSRC= ${WRKDIR}/cdf${VER}-dist
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
DEFS= B C K
PORTDOCS= CDF_copyright.txt CHANGES.txt Release.notes Welcome.txt
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on ${ARCH}
.endif
pre-configure:
.for def in ${DEFS}
${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
${WRKSRC}/src/definitions/definitions.${def}
.endfor
post-install:
${MV} ${PREFIX}/lib/libcdf.so ${PREFIX}/lib/libcdf.so.0
${LN} -sf ${PREFIX}/lib/libcdf.so.0 ${PREFIX}/lib/libcdf.so
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.if defined(MAINTAINER_MODE)
regression-test: build
(cd ${BUILD_WRKSRC} ; \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
.endif
.include <bsd.port.post.mk>
|