Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 05:41:13 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309283 - in head/science/hdf: . files
Message-ID:  <201212200541.qBK5fDW2079977@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Thu Dec 20 05:41:13 2012
New Revision: 309283
URL: http://svnweb.freebsd.org/changeset/ports/309283

Log:
  - Update to 4.2.8.
  - Add MAKE_JOBS_SAFE.
  - Trim header.
  
  PR:		ports/172052
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Added:
  head/science/hdf/files/patch-configure   (contents, props changed)
  head/science/hdf/files/patch-hdf__src__Makefile.in   (contents, props changed)
  head/science/hdf/files/patch-mfhdf__libsrc__Makefile.in   (contents, props changed)
Deleted:
  head/science/hdf/files/patch-compile-flags
  head/science/hdf/files/patch-lib-versions
  head/science/hdf/files/patch-shared-fortran
Modified:
  head/science/hdf/Makefile   (contents, props changed)
  head/science/hdf/distinfo   (contents, props changed)
  head/science/hdf/pkg-plist   (contents, props changed)

Modified: head/science/hdf/Makefile
==============================================================================
--- head/science/hdf/Makefile	Thu Dec 20 05:40:01 2012	(r309282)
+++ head/science/hdf/Makefile	Thu Dec 20 05:41:13 2012	(r309283)
@@ -1,16 +1,12 @@
-# New ports collection makefile for:	HDF_lib
-# Date created:		17 November 1996
-# Whom:			mi
-#
+# Created by: mi
 # $FreeBSD$
-#
 
 PORTNAME=	hdf
-DISTVERSION=	4.2.7-patch1
+DISTVERSION=	4.2.8
 PORTEPOCH=	1
 CATEGORIES=	science archivers graphics
-MASTER_SITES=	ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/	\
-		ftp://ftp.hdfgroup.org/HDF/prev-releases/HDF${PORTVERSION:R}/src/
+MASTER_SITES=	http://www.hdfgroup.org/ftp/HDF/releases/%SUBDIR%/
+MASTER_SITE_SUBDIR=	${PORTNAME:U}${PORTVERSION}/src/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Hierarchical Data Format library (from NCSA)
@@ -22,31 +18,15 @@ CONFLICTS=	netcdf-*
 
 USE_BZIP2=	yes
 USE_FORTRAN=	yes
-MAKE_JOBS_SAFE=	yes
-# XXX Our libtool breaks, when building this:
-# XXX can't link libraries with fortran
-#USE_AUTOTOOLS=	libtool
-
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=--with-jpeg="${LOCALBASE}" \
-		--with-szlib="${LOCALBASE}"\
+CONFIGURE_ARGS=	--with-jpeg="${LOCALBASE}" \
+		--with-szlib="${LOCALBASE}" \
 		--enable-shared
+USE_LDCONFIG=	yes
+MAKE_JOBS_SAFE=	yes
 
 MAN1=		hdf.1 hdfunpac.1 ncdump.1 ncgen.1
 MAN3=		gr_chunk.3
-MANCOMPRESSED=	no
-
-USE_LDCONFIG=	yes
-
-check regression-test test: build
-	${MAKE} ${_MAKE_JOBS} -C ${WRKSRC}/hdf/test check
-
-post-install:
-	# Install man-pages omitted by HDF's own install process
-	${INSTALL_MAN} ${WRKSRC}/man/hdfunpac.1 ${MAN1PREFIX}/man/man1/
-	${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 ${MAN1PREFIX}/man/man3/
-	# Removing useless .la files from ${PREFIX}/lib
-	${RM} -f ${PREFIX}/lib/libdf.la ${PREFIX}/lib/libmfhdf.la
 
 .include <bsd.port.pre.mk>
 
@@ -54,4 +34,15 @@ post-install:
 BROKEN=		Does not compile on powerpc
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/PROD_/s|=.*|=""|' ${WRKSRC}/config/freebsd
+
+post-install:
+	${INSTALL_MAN} ${WRKSRC}/man/hdfunpac.1 ${MAN1PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 ${MAN3PREFIX}/man/man3
+
+check regression-test test: build
+	${MAKE} -C ${WRKSRC}/hdf/test check
+
 .include <bsd.port.post.mk>

Modified: head/science/hdf/distinfo
==============================================================================
--- head/science/hdf/distinfo	Thu Dec 20 05:40:01 2012	(r309282)
+++ head/science/hdf/distinfo	Thu Dec 20 05:41:13 2012	(r309283)
@@ -1,2 +1,2 @@
-SHA256 (hdf-4.2.7-patch1.tar.bz2) = 3a7b5ba0ac47e5283bee3ec365e8027e88937cd1632d001ceec33af80947d1bd
-SIZE (hdf-4.2.7-patch1.tar.bz2) = 3027309
+SHA256 (hdf-4.2.8.tar.bz2) = e8a94ae2c838007ccdd55bb3cd9684adba3ded367c09803ffc84a2704f83c00f
+SIZE (hdf-4.2.8.tar.bz2) = 3027253

Added: head/science/hdf/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/hdf/files/patch-configure	Thu Dec 20 05:41:13 2012	(r309283)
@@ -0,0 +1,19 @@
+--- configure.orig	2012-08-07 13:11:45.000000000 +0900
++++ configure	2012-08-14 21:08:48.000000000 +0900
+@@ -5837,11 +5837,11 @@
+     enable_shared="no"
+ fi
+ 
+-if test "X${enable_shared}" = "Xyes"; then
+-    if test "X${BUILD_FORTRAN}" = "Xyes"; then
+-        as_fn_error $? "Cannot build shared fortran libraries. Please configure with --disable-fortran flag." "$LINENO" 5
+-    fi
+-fi
++#if test "X${enable_shared}" = "Xyes"; then
++#    if test "X${BUILD_FORTRAN}" = "Xyes"; then
++#        as_fn_error $? "Cannot build shared fortran libraries. Please configure with --disable-fortran flag." "$LINENO" 5
++#    fi
++#fi
+ 
+ 
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5

Added: head/science/hdf/files/patch-hdf__src__Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/hdf/files/patch-hdf__src__Makefile.in	Thu Dec 20 05:41:13 2012	(r309283)
@@ -0,0 +1,20 @@
+--- hdf/src/Makefile.in.orig	2012-08-07 13:11:36.000000000 +0900
++++ hdf/src/Makefile.in	2012-08-14 21:08:53.000000000 +0900
+@@ -187,7 +187,7 @@
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+ LD = @LD@
+-LDFLAGS = @LDFLAGS@
++LDFLAGS = @LDFLAGS@ -version-number 2
+ LEX = @LEX@
+ LIBOBJS = @LIBOBJS@
+ LIBS = @LIBS@
+@@ -290,8 +290,6 @@
+ CP = cp
+ H4CC = $(bindir)/h4cc
+ H4FC = $(bindir)/h4fc
+-@HDF_BUILD_XDR_TRUE@XDR_ADD = -R$(abs_top_builddir)/mfhdf/xdr/.libs
+-@HDF_BUILD_SHARED_TRUE@AM_LDFLAGS = -R$(abs_top_builddir)/mfhdf/libsrc/.libs -R$(abs_top_builddir)/hdf/src/.libs $(XDR_ADD)
+ ACLOCAL_AMFLAGS = "-I m4"
+ lib_LTLIBRARIES = libdf.la
+ FSOURCES = df24ff.f dfanf.c dfanff.f dff.c dfff.f dfpf.c dfpff.f dfr8f.c    \

Added: head/science/hdf/files/patch-mfhdf__libsrc__Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/hdf/files/patch-mfhdf__libsrc__Makefile.in	Thu Dec 20 05:41:13 2012	(r309283)
@@ -0,0 +1,20 @@
+--- mfhdf/libsrc/Makefile.in.orig	2012-08-07 13:11:12.000000000 +0900
++++ mfhdf/libsrc/Makefile.in	2012-08-14 21:08:58.000000000 +0900
+@@ -161,7 +161,7 @@
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+ LD = @LD@
+-LDFLAGS = @LDFLAGS@
++LDFLAGS = @LDFLAGS@ -version-number 3
+ LEX = @LEX@
+ LIBOBJS = @LIBOBJS@
+ LIBS = @LIBS@
+@@ -264,8 +264,6 @@
+ CP = cp
+ H4CC = $(bindir)/h4cc
+ H4FC = $(bindir)/h4fc
+-@HDF_BUILD_XDR_TRUE@XDR_ADD = -R$(abs_top_builddir)/mfhdf/xdr/.libs
+-@HDF_BUILD_SHARED_TRUE@AM_LDFLAGS = -R$(abs_top_builddir)/mfhdf/libsrc/.libs -R$(abs_top_builddir)/hdf/src/.libs $(XDR_ADD)
+ ACLOCAL_AMFLAGS = "-I m4"
+ INCLUDES = -I$(top_srcdir)/hdf/src        \
+          -I$(top_srcdir)/mfhdf/libsrc   

Modified: head/science/hdf/pkg-plist
==============================================================================
--- head/science/hdf/pkg-plist	Thu Dec 20 05:40:01 2012	(r309282)
+++ head/science/hdf/pkg-plist	Thu Dec 20 05:41:13 2012	(r309283)
@@ -67,13 +67,13 @@ include/hproto_fortran.h
 include/htags.h
 include/linklist.h
 include/local_nc.h
+include/mfan.h
 include/mfdatainfo.h
-include/mffunc.inc
 include/mffunc.f90
-include/mfhdfi.h
-include/mfan.h
+include/mffunc.inc
 include/mfgr.h
 include/mfhdf.h
+include/mfhdfi.h
 include/mstdio.h
 include/netcdf.f90
 include/netcdf.h
@@ -82,9 +82,11 @@ include/tbbt.h
 include/vattr.h
 include/vg.h
 lib/libdf.a
+lib/libdf.la
 lib/libdf.so
 lib/libdf.so.2
 lib/libhdf4.settings
 lib/libmfhdf.a
+lib/libmfhdf.la
 lib/libmfhdf.so
 lib/libmfhdf.so.3



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212200541.qBK5fDW2079977>