1997-11-03 12:10:43 +00:00
|
|
|
# New ports collection makefile for: HDF_lib
|
|
|
|
# Date created: 17 November 1996
|
|
|
|
# Whom: mi
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1997-11-03 12:10:43 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 10:48:02 +00:00
|
|
|
PORTNAME= hdf
|
2009-01-13 05:30:45 +00:00
|
|
|
PORTVERSION= 4.2r3
|
2010-02-05 11:46:55 +00:00
|
|
|
PORTREVISION= 6
|
2004-02-29 09:10:21 +00:00
|
|
|
CATEGORIES= science archivers graphics
|
2009-08-14 08:30:09 +00:00
|
|
|
MASTER_SITES= ftp://ftp.hdfgroup.org/HDF/prev-releases/HDF4.2r3/src/:src \
|
|
|
|
ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/:src \
|
2007-04-23 01:11:32 +00:00
|
|
|
ftp://ftp.hdfgroup.org/HDF/Documentation/${PORTVERSION}/:doc \
|
2009-01-13 05:30:45 +00:00
|
|
|
ftp://ftp.hdfgroup.org/HDF/Documentation/HDF4.2r3/:doc \
|
2005-03-18 21:20:05 +00:00
|
|
|
http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/:doc_szip
|
2000-04-14 10:48:02 +00:00
|
|
|
DISTNAME= HDF${PORTVERSION}
|
2005-03-18 21:20:05 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src \
|
2005-04-07 16:59:43 +00:00
|
|
|
${SZIP_DOCFILE}:doc_szip \
|
|
|
|
${DOCFILES:C/$/:doc/g}
|
2005-03-18 21:20:05 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2009-01-13 05:30:45 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Hierarchical Data Format library (from NCSA)
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2011-06-17 15:37:23 +00:00
|
|
|
BROKEN= Does not fetch
|
|
|
|
|
2010-02-05 11:46:55 +00:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2005-03-17 19:35:07 +00:00
|
|
|
sz.2:${PORTSDIR}/science/szip
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2004-03-24 18:55:25 +00:00
|
|
|
CONFLICTS= netcdf-*
|
|
|
|
|
2009-01-14 06:00:46 +00:00
|
|
|
USE_FORTRAN= yes
|
2009-08-05 18:17:38 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2007-04-17 00:30:58 +00:00
|
|
|
|
2009-01-14 06:00:46 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-03-17 19:35:07 +00:00
|
|
|
CONFIGURE_ARGS+=--with-jpeg="${LOCALBASE}" \
|
2009-01-14 06:00:46 +00:00
|
|
|
--with-szlib="${LOCALBASE}"\
|
|
|
|
--mandir=${MANPREFIX}/man
|
2009-01-13 05:30:45 +00:00
|
|
|
DOCFILES= RM-print42r3.pdf \
|
|
|
|
UG_print42r3.pdf
|
2005-04-07 16:59:43 +00:00
|
|
|
SZIP_DOCFILE= SZIP_HDF4_2r1.pdf
|
2005-03-17 19:04:23 +00:00
|
|
|
|
1998-08-21 23:11:03 +00:00
|
|
|
MAN1= hdf.1 hdfunpac.1 ncdump.1 ncgen.1
|
2005-03-17 19:04:23 +00:00
|
|
|
MANCOMPRESSED= no
|
1998-08-21 23:11:03 +00:00
|
|
|
|
2007-04-17 00:30:58 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-10-06 07:52:07 +00:00
|
|
|
|
2004-03-06 23:24:07 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-04-10 21:13:31 +00:00
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "alpha" && ${ARCH} != "amd64"
|
2007-04-17 00:30:58 +00:00
|
|
|
BROKEN= Does not compile on !i386, !amd64 and !alpha
|
2004-03-06 23:24:07 +00:00
|
|
|
.endif
|
|
|
|
|
2009-01-14 06:00:46 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
PICFLAG?= -fPIC
|
|
|
|
.else
|
|
|
|
PICFLAG?= -fpic
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SHLIBVER_LIBMFHDF= 3
|
|
|
|
SHLIBVER_MDF= 2
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MKDIR} ${WRKSRC}_SHARED ; ${CP} -r ${WRKSRC}/* ${WRKSRC}_SHARED
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ./configure \
|
|
|
|
${MAKE_ENV} ${CONFIGURE_ENV} ${CONFIGURE_ARGS})
|
|
|
|
@(cd ${WRKSRC}_SHARED && ${SETENV} ./configure \
|
|
|
|
${MAKE_ENV} ${CONFIGURE_ENV} ${CONFIGURE_ARGS} CFLAGS="${PICFLAG}" FFLAGS="${PICFLAG}")
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
|
|
@(cd ${WRKSRC}_SHARED; ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
|
|
@(cd ${WRKSRC}_SHARED/mfhdf/libsrc; ld -Bshareable -o libmfhdf.so.${SHLIBVER_LIBMFHDF} -x -soname libmfhdf.so.${SHLIBVER_LIBMFHDF} --whole-archive libmfhdf.a )
|
|
|
|
@(cd ${WRKSRC}_SHARED/hdf/src; ld -Bshareable -o libdf.so.${SHLIBVER_MDF} -x -soname libdf.so.${SHLIBVER_MDF} --whole-archive libdf.a )
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2005-03-18 21:20:05 +00:00
|
|
|
post-install:
|
2009-01-14 06:00:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}_SHARED/mfhdf/libsrc/libmfhdf.so.${SHLIBVER_LIBMFHDF} ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}_SHARED/hdf/src/libdf.so.${SHLIBVER_MDF} ${PREFIX}/lib
|
|
|
|
${LN} -sf libmfhdf.so.${SHLIBVER_LIBMFHDF} ${PREFIX}/lib/libmfhdf.so
|
2009-01-15 22:33:30 +00:00
|
|
|
${LN} -sf libdf.so.${SHLIBVER_MDF} ${PREFIX}/lib/libdf.so
|
2005-03-18 21:20:05 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in ${DOCFILES} ${SZIP_DOCFILE}
|
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@cd ${WRKSRC}/release_notes && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
1999-11-14 02:32:21 +00:00
|
|
|
test: build
|
2005-03-17 19:04:23 +00:00
|
|
|
cd ${WRKSRC}/hdf/test && ${MAKE} check
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2004-03-06 23:24:07 +00:00
|
|
|
.include <bsd.port.post.mk>
|