aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2010-05-15 13:40:57 +0800
committerlwhsu <lwhsu@FreeBSD.org>2010-05-15 13:40:57 +0800
commit1f42ad7b76a4041d22c1d79911e90957e7bbd95a (patch)
tree79c10d0da0bc3886ea1cfda1782284188601075b
parenta1353b18456d916427dba55e44352deaa59251c3 (diff)
downloadfreebsd-ports-gnome-1f42ad7b76a4041d22c1d79911e90957e7bbd95a.tar.gz
freebsd-ports-gnome-1f42ad7b76a4041d22c1d79911e90957e7bbd95a.tar.zst
freebsd-ports-gnome-1f42ad7b76a4041d22c1d79911e90957e7bbd95a.zip
- Update MASTER_SITES
- Simplify NOPORTDOCS patch - Remove NOPORTEXAMPLES section - Remove unnecessary post-install: target - Remove patch for fortran/cfortran.h PR: ports/146415 Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet AT sunpoet.net> (maintainer)
-rw-r--r--science/netcdf/Makefile38
-rw-r--r--science/netcdf/files/extra-patch-man-Makefile.in17
-rw-r--r--science/netcdf/files/patch-fortran+cfortran.h21
3 files changed, 14 insertions, 62 deletions
diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index 245f5fb13fd4..04944196c74b 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -9,28 +9,25 @@ PORTNAME= netcdf
PORTVERSION= 3.6.3
PORTREVISION= 4
CATEGORIES= science
-MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
+MASTER_SITES= http://www.unidata.ucar.edu/downloads/netcdf/ftp/ \
+ ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
http://sunpoet.net/distfiles/
MAINTAINER= sunpoet@sunpoet.net
COMMENT?= Library for machine-independent, array-oriented data access
CONFLICTS= hdf-4.* netcdf-4.*
+PORTSCOUT= limit:^3\.
CONFIGURE_ARGS= --enable-shared
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC ${FTNTYPE}"
-
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC"
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-#CONFIGURE_ENV+= ${MAKE_ENV}
-
-SLAVEDIRS= science/netcdf-ftn
-
-MAN1= ncdump.1 ncgen.1
-MAN3= netcdf.3
INFO= netcdf netcdf-c netcdf-cxx netcdf-f77 netcdf-f90 \
netcdf-install netcdf-tutorial
+MAN1= ncdump.1 ncgen.1
+MAN3= netcdf.3
OPTIONS= FORTRAN "Build library for Fortran" off
@@ -38,27 +35,20 @@ OPTIONS= FORTRAN "Build library for Fortran" off
CONFIGURE_ARGS+=--enable-docs-install
.else
CONFIGURE_ARGS+=--disable-docs-install
-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-man-Makefile.in
-.endif
-
-.if !defined(NOPORTEXAMPLES)
-CONFIGURE_ARGS+=--enable-examples
-.else
-CONFIGURE_ARGS+=--disable-examples
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_FORTRAN)
-USE_FORTRAN= yes
-PKGNAMESUFFIX+= -ftn
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -DpgiFortran"
CONFLICTS+= netcdf-3.*
MAN3+= netcdf_f77.3 netcdf_f90.3
+PKGNAMESUFFIX+= -ftn
PLIST_SUB+= FORTRAN=""
-FTNTYPE= -DpgiFortran
+USE_FORTRAN= yes
.else
+CONFIGURE_ARGS+=--disable-f77 --disable-f90
CONFLICTS+= netcdf-ftn-3.*
-CONFIGURE_ARGS+=--disable-f77
PLIST_SUB+= FORTRAN="@comment "
.endif
@@ -69,10 +59,10 @@ post-patch:
@${REINPLACE_CMD} -e \
'271 s/\(info_docs\).*/html_docs\)/' \
${WRKSRC}/man4/Makefile.in
-
-post-install:
- ${LN} -fs libnetcdf.so.4 ${PREFIX}/lib/libnetcdf.so
- ${LN} -fs libnetcdf_c++.so.4 ${PREFIX}/lib/libnetcdf_c++.so
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e '790 s/install-docDATA //' \
+ ${WRKSRC}/man/Makefile.in
+.endif
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
diff --git a/science/netcdf/files/extra-patch-man-Makefile.in b/science/netcdf/files/extra-patch-man-Makefile.in
deleted file mode 100644
index 5abaee615424..000000000000
--- a/science/netcdf/files/extra-patch-man-Makefile.in
+++ /dev/null
@@ -1,17 +0,0 @@
---- man/Makefile.in.orig 2008-06-30 01:25:05.000000000 +0800
-+++ man/Makefile.in 2008-08-29 23:58:27.317775084 +0800
-@@ -683,14 +683,6 @@
- rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \
- done
- install-docDATA: $(doc_DATA)
-- @$(NORMAL_INSTALL)
-- test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
-- @list='$(doc_DATA)'; for p in $$list; do \
-- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-- f=$(am__strip_dir) \
-- echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
-- $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
-- done
-
- uninstall-docDATA:
- @$(NORMAL_UNINSTALL)
diff --git a/science/netcdf/files/patch-fortran+cfortran.h b/science/netcdf/files/patch-fortran+cfortran.h
deleted file mode 100644
index e3baf9ec0e9b..000000000000
--- a/science/netcdf/files/patch-fortran+cfortran.h
+++ /dev/null
@@ -1,21 +0,0 @@
---- fortran/cfortran.h.orig 2008-07-23 21:47:30.000000000 -0500
-+++ fortran/cfortran.h 2008-07-23 21:48:50.000000000 -0500
-@@ -134,7 +134,8 @@
- /* Split #if into 2 because some HP-UX can't handle long #if */
- #if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran)||defined(PATHSCALE_COMPILER)||defined(gFortran))
- #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
--/* If your compiler barfs on ' #error', replace # with the trigraph for # */
-+#define f2cFortran
-+/* If your compiler barfs on ' #error', replace # with the trigraph for #
- #error "cfortran.h: Can't find your environment among:\
- - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) \
- - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 \
-@@ -158,7 +159,7 @@
- - Absoft Pro Fortran: Use #define AbsoftProFortran \
- - Portland Group Fortran: Use #define pgiFortran \
- - PathScale Fortran: Use #define PATHSCALE_COMPILER"
--/* Compiler must throw us out at this point! */
-+ Compiler must throw us out at this point! */
- #endif
- #endif
-