ports/111347: [science/netcdf] update to lastest version (3.6.2)

Sunpoet Po-Chuan Hsieh sunpoet at sunpoet.net
Sat Apr 7 07:20:06 UTC 2007


>Number:         111347
>Category:       ports
>Synopsis:       [science/netcdf] update to lastest version (3.6.2)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 07 07:20:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 6.2-STABLE FreeBSD 6.2-STABLE #1: Mon Feb 12 03:43:56 CST 2007 sunpoet at IRIS.sunpoet.net:/usr/obj/usr/src/sys/sunpoet i386
	
>Description:
Update to latest version (3.6.2).
	
>How-To-Repeat:
	
>Fix:
diff -ruN netcdf.orig/Makefile netcdf/Makefile
--- netcdf.orig/Makefile	Mon Dec 25 15:20:19 2006
+++ netcdf/Makefile	Sat Apr  7 05:15:17 2007
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	netcdf
-PORTVERSION=	3.6.1
+PORTVERSION=	3.6.2
 CATEGORIES=	science
 MASTER_SITES=	ftp://ftp.unidata.ucar.edu/pub/netcdf/%SUBDIR%/ \
 		http://sunpoet.net/distfiles/
@@ -15,31 +15,21 @@
 MAINTAINER=	sunpoet at sunpoet.net
 COMMENT=	Library for machine-independent, array-oriented data access
 
-WRKSRC=		${WRKDIR}/${DISTNAME}/src
-
 CONFLICTS=	hdf-4.*
 
-CONFIGURE_ENV=	CPPFLAGS="-fPIC -DPIC -Df2cFortran"
-CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS=	--enable-shared --mandir=${PREFIX}/man --disable-f77
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
+
+USE_BZIP2=	YES
+
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
 MAN1=	ncdump.1 ncgen.1
-MAN3=	netcdf.3 netcdf.3f
-
-post-build:
-	@(cd ${WRKSRC}/libsrc && \
-		${SETENV} ${MAKE_ENV} ${MAKE} linux_shared_library)
-	@(cd ${WRKSRC}/cxx && \
-		${SETENV} ${MAKE_ENV} ${MAKE} linux_shared_library)
+MAN3=	netcdf.3
 
 post-install:
-	@${STRIP_CMD} ${PREFIX}/bin/ncdump
-	@${STRIP_CMD} ${PREFIX}/bin/ncgen
-	${INSTALL_DATA} ${WRKSRC}/libsrc/libnetcdf.so ${PREFIX}/lib/libnetcdf.so.1
-	${LN} -sf libnetcdf.so.1 ${PREFIX}/lib/libnetcdf.so
-	${INSTALL_DATA} ${WRKSRC}/cxx/libnetcdf_c++.so ${PREFIX}/lib/libnetcdf_c++.so.1
-	${LN} -sf libnetcdf_c++.so.1 ${PREFIX}/lib/libnetcdf_c++.so
+	@${STRIP_CMD} ${PREFIX}/bin/ncdump ${PREFIX}/bin/ncgen
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
 .for file in COPYRIGHT README RELEASE_NOTES
diff -ruN netcdf.orig/distinfo netcdf/distinfo
--- netcdf.orig/distinfo	Sun Mar 19 10:32:43 2006
+++ netcdf/distinfo	Tue Mar  6 13:03:03 2007
@@ -1,3 +1,3 @@
-MD5 (netcdf-3.6.1.tar.gz) = 07a9db424337c5e4833fb84136e09a1e
-SHA256 (netcdf-3.6.1.tar.gz) = 15c42a2c698c4e42ee17720701168711d86e97e97311223015d07853fb09249f
-SIZE (netcdf-3.6.1.tar.gz) = 883888
+MD5 (netcdf-3.6.2.tar.bz2) = 1eca0ea1e81e14ebc5bb93e5dd25c364
+SHA256 (netcdf-3.6.2.tar.bz2) = 0468f1d9ab0fbad6edb957d8fb597010cb5c546c6de6752c9a63b0e0f194e564
+SIZE (netcdf-3.6.2.tar.bz2) = 4580511
diff -ruN netcdf.orig/files/patch-Makefile netcdf/files/patch-Makefile
--- netcdf.orig/files/patch-Makefile	Sun Dec 24 06:22:45 2006
+++ netcdf/files/patch-Makefile	Thu Jan  1 08:00:00 1970
@@ -1,20 +0,0 @@
---- Makefile.orig	Mon Feb 27 00:43:59 2006
-+++ Makefile	Sat Dec 23 05:33:43 2006
-@@ -117,6 +117,8 @@
- ncgen/distclean	\
- cxx/clean	\
- cxx/distclean	\
-+fortran/install	\
-+fortran/uninstall	\
- :
- 	@subdir=`echo $@ | sed 's,/.*,,'`; \
- 	target=`echo $@ | sed 's,.*/,,'`; \
-@@ -124,8 +126,6 @@
- 
- fortran/all	\
- fortran/test	\
--fortran/install	\
--fortran/uninstall	\
- nf_test/all	\
- nf_test/test	\
- :
diff -ruN netcdf.orig/files/patch-rules.make netcdf/files/patch-rules.make
--- netcdf.orig/files/patch-rules.make	Sun Dec 24 06:22:45 2006
+++ netcdf/files/patch-rules.make	Thu Jan  1 08:00:00 1970
@@ -1,19 +0,0 @@
---- rules.make.orig	Sat Dec 18 05:34:48 2004
-+++ rules.make	Thu Jan  6 15:12:59 2005
-@@ -145,14 +145,8 @@
- 	$(INSTALL) $(MANUAL) $@
- $(MANDIR)/man3/$(MANUAL):	$(MANDIR)/man3 $(MANUAL)
- 	$(INSTALL) $(MANUAL) $@
--$(MANDIR)/man3f/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL) \
--				$(MANDIR)/man3f
--	rm -f $@
--	ln -s $(MANDIR)/man3/$(MANUAL) $@
--$(MANDIR)/man3f90/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL) \
--				$(MANDIR)/man3f90
--	rm -f $@
--	ln -s $(MANDIR)/man3/$(MANUAL) $@
-+$(MANDIR)/man3f/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL)
-+$(MANDIR)/man3f90/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL)
- 
- ################################################################################
- # Cleanup:
diff -ruN netcdf.orig/pkg-plist netcdf/pkg-plist
--- netcdf.orig/pkg-plist	Sun Jan  9 00:36:45 2005
+++ netcdf/pkg-plist	Fri Apr  6 22:59:26 2007
@@ -3,14 +3,13 @@
 include/ncvalues.h
 include/netcdf.h
 include/netcdf.hh
-include/netcdf.inc
 include/netcdfcpp.h
 lib/libnetcdf.a
-lib/libnetcdf.so
-lib/libnetcdf.so.1
+lib/libnetcdf.la
+lib/libnetcdf.so.4
 lib/libnetcdf_c++.a
-lib/libnetcdf_c++.so
-lib/libnetcdf_c++.so.1
+lib/libnetcdf_c++.la
+lib/libnetcdf_c++.so.4
 %%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list