b6b853727d
framework. The list of changes include: * Modify compiler.mk so that "c" is always prepended to USE_LANGUAGES, so we no longer need to say it in package Makefiles. Packages should now append to USE_LANGUAGES instead of setting it. * Create mk/compiler/f2c.mk which implements another pseudo-compiler "f2c" that may be used with any C compiler backend, e.g. PKGSRC_COMPILER= f2c ccache gcc * Teach the various "real" compiler files, e.g., sunpro.mk, mipspro.mk, etc., to use f2c if the native Fortran compiler isn't present. Packages that use Fortran should now simply include the line: USE_LANGUAGES+= fortran in the package Makefile.
34 lines
1 KiB
Makefile
34 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2005/01/12 15:31:59 jlam Exp $
|
|
|
|
DISTNAME= HDF4.2r0
|
|
PKGNAME= hdf-4.2r0
|
|
PKGREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF4.2r0/src/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://hdf.ncsa.uiuc.edu/hdf4.html
|
|
COMMENT= NCSA Hierarchical Data Format
|
|
|
|
USE_LANGUAGES= fortran
|
|
USE_BUILDLINK3= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-szlib
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/hdf
|
|
|
|
post-patch:
|
|
${MV} -f ${WRKSRC}/mfhdf/ncdump/ncdump.1 \
|
|
${WRKSRC}/mfhdf/ncdump/hdfncdump.1
|
|
${MV} -f ${WRKSRC}/mfhdf/ncgen/ncgen.1 \
|
|
${WRKSRC}/mfhdf/ncgen/hdfncgen.1
|
|
|
|
do-test:
|
|
@cd ${WRKSRC}/hdf/test && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
@cd ${WRKSRC}/mfhdf/dumper && ${SH} testhdp.sh
|
|
@cd ${WRKSRC}/mfhdf/ncdump && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
@cd ${WRKSRC}/mfhdf/nctest && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../archivers/szip/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|