Makefile 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.28 2017/05/08 13:31:58 schwarze Exp $
  2. BROKEN-powerpc= fails to build
  3. BROKEN-hppa = fails to configure
  4. COMMENT= library for machine-independent, array-oriented data access
  5. DISTNAME= netcdf-3.6.2
  6. REVISION= 3
  7. CATEGORIES= math
  8. SHARED_LIBS= netcdf 4.0 \
  9. netcdff 4.0 \
  10. netcdf_c++ 4.0
  11. HOMEPAGE= http://www.unidata.ucar.edu/software/netcdf/
  12. MAINTAINER= Tom Knienieder <tom@knienieder.com>
  13. MODULES = fortran
  14. MODFORTRAN_COMPILER = g77
  15. BUILD_DEPENDS = ${MODFORTRAN_BUILD_DEPENDS}
  16. # BSD-like
  17. PERMIT_PACKAGE_CDROM= Yes
  18. WANTLIB= c m ${LIBCXX}
  19. MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/
  20. CONFIGURE_STYLE= gnu
  21. CONFIGURE_ENV= CPPFLAGS="-Df2cFortran"
  22. CONFIGURE_ARGS+= --enable-shared \
  23. --disable-f90
  24. USE_GMAKE= Yes
  25. SEPARATE_BUILD= Yes
  26. post-install:
  27. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/netcdf
  28. @cd ${WRKSRC}/man && ${INSTALL_DATA} *.txt *.pdf \
  29. ${PREFIX}/share/doc/netcdf
  30. .include <bsd.port.mk>