Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2002 12:22:51 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/40498: Update port: graphics/hdf5
Message-ID:  <200207121922.g6CJMpmv006240@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         40498
>Category:       ports
>Synopsis:       Update port: graphics/hdf5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 12 12:30:05 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.6-RELEASE i386
>Organization:
>Environment:
>Description:
- GNU_CONFIGURE -> USE_LIBTOOL
- Support CFLAGS/PTHREAD_CFLAGS/PTHREAD_LIBS properly
- Strip binaries

New file:
files/patch-c++::configure
files/patch-configure

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/hdf5/Makefile graphics/hdf5/Makefile
--- /usr/ports/graphics/hdf5/Makefile	Sun Jul  7 21:34:33 2002
+++ graphics/hdf5/Makefile	Wed Jul 10 07:11:40 2002
@@ -17,14 +17,25 @@
 USE_PERL5=	yes
 USE_OPENSSL=	yes
 USE_LIBTOOL=	yes
-GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	LDFLAGS="${PTHREAD_LIBS}"
+LIBTOOLFILES=	configure c++/configure
+CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
 CONFIGURE_ARGS=	--enable-cxx --enable-production \
 		--enable-threadsafe --disable-debug \
 		--with-ssl --with-pthread
 INSTALLS_SHLIB=	yes
 
 post-patch:
-	@${REINPLACE_CMD} -e "s/-lpthread/${PTHREAD_LIBS}/g" ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|[\$$]CFLAGS -pthread|\$$CFLAGS|g ; \
+		 s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
+		 s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \
+			${WRKSRC}/config/freebsd
+	@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/config/gnu-flags
+
+post-install:
+.for file in gif2h5 h52gif h5debug h5dump h5import h5ls h5perf h5repart
+	@${STRIP_CMD} ${PREFIX}/bin/${file}
+.endfor
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/hdf5/files/patch-c++::configure graphics/hdf5/files/patch-c++::configure
--- /usr/ports/graphics/hdf5/files/patch-c++::configure	Thu Jan  1 09:00:00 1970
+++ graphics/hdf5/files/patch-c++::configure	Wed Jul 10 01:41:29 2002
@@ -0,0 +1,10 @@
+--- c++/configure.orig	Fri Jun 28 03:42:45 2002
++++ c++/configure	Wed Jul 10 01:41:13 2002
+@@ -7563,6 +7563,7 @@
+ 
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+ 
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
diff -urN /usr/ports/graphics/hdf5/files/patch-commence.in graphics/hdf5/files/patch-commence.in
--- /usr/ports/graphics/hdf5/files/patch-commence.in	Sun Jul  7 21:35:32 2002
+++ graphics/hdf5/files/patch-commence.in	Tue Jul  9 20:23:48 2002
@@ -5,7 +5,7 @@
  CP=cp
  INSTALL=@INSTALL@
 -INSTALL_PROGRAM=@INSTALL_PROGRAM@
-+INSTALL_PROGRAM=@INSTALL_DATA@
++INSTALL_PROGRAM=@INSTALL_SCRIPT@
  INSTALL_DATA=@INSTALL_DATA@
  RUNSERIAL=@RUNSERIAL@
  RUNPARALLEL=@RUNPARALLEL@
diff -urN /usr/ports/graphics/hdf5/files/patch-configure graphics/hdf5/files/patch-configure
--- /usr/ports/graphics/hdf5/files/patch-configure	Thu Jan  1 09:00:00 1970
+++ graphics/hdf5/files/patch-configure	Wed Jul 10 01:41:02 2002
@@ -0,0 +1,10 @@
+--- configure.orig	Sat Jun 29 05:03:55 2002
++++ configure	Wed Jul 10 01:40:52 2002
+@@ -7263,6 +7263,7 @@
+ 
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+ 
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
diff -urN /usr/ports/graphics/hdf5/pkg-plist graphics/hdf5/pkg-plist
--- /usr/ports/graphics/hdf5/pkg-plist	Sun Jul  7 21:34:33 2002
+++ graphics/hdf5/pkg-plist	Wed Jul 10 05:55:26 2002
@@ -71,8 +71,7 @@
 include/H5public.h
 include/hdf5.h
 lib/libhdf5.a
-lib/libhdf5.la
 lib/libhdf5.settings
+lib/libhdf5.so
 lib/libhdf5.so.0
 lib/libhdf5_cpp.a
-lib/libhdf5_cpp.la

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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