Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 2003 01:28:54 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/51371: Update port: graphics/gts to 0.7.1
Message-ID:  <20030425012854.3e7df8ad.tkato@prontomail.com>
Resent-Message-ID: <200304241640.h3OGeEGX050685@freefall.freebsd.org>

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

>Number:         51371
>Category:       ports
>Synopsis:       Update port: graphics/gts to 0.7.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 24 09:40:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 0.7.1

New file:
files/patch-ltmain.sh

Remove file:
files/patch-configure
files/patch-isotetra.c
files/patch-stl2gts.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/gts/Makefile graphics/gts/Makefile
--- /usr/ports/graphics/gts/Makefile	Mon Apr 21 12:22:30 2003
+++ graphics/gts/Makefile	Thu Apr 24 03:05:54 2003
@@ -7,7 +7,7 @@
 #
 
 PORTNAME=	gts
-PORTVERSION=	0.7.0
+PORTVERSION=	0.7.1
 CATEGORIES=	graphics
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -16,8 +16,9 @@
 COMMENT=	GNU Triangulated Surface Library
 
 USE_GNOME=	glib12
-USE_LIBTOOL=	yes
-LIBTOOLFLAGS=	--disable-ltlibs --release-ignore
+USE_GETOPT_LONG=	yes
+USE_REINPLACE=	yes
+GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 INSTALLS_SHLIB=	yes
@@ -25,10 +26,9 @@
 CPPFLAGS=	-I${LOCALBASE}/include
 LDFLAGS=	-L${LOCALBASE}/lib
 
-.if !exists(/usr/include/getopt.h)
-LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-LDFLAGS+=	-lgnugetopt
-.endif
+post-patch:
+	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+		's|-release \$$(LT_RELEASE)||g'
 
 post-install:
 .if !defined(NOPORTDOCS)
diff -urN /usr/ports/graphics/gts/distinfo graphics/gts/distinfo
--- /usr/ports/graphics/gts/distinfo	Wed Nov 20 23:45:42 2002
+++ graphics/gts/distinfo	Thu Apr 24 02:53:09 2003
@@ -1 +1 @@
-MD5 (gts-0.7.0.tar.gz) = 33ded8bc4fbf5a675fa71ed5c06a74d8
+MD5 (gts-0.7.1.tar.gz) = bce972e7172399385628b8e50e45be12
diff -urN /usr/ports/graphics/gts/files/patch-configure graphics/gts/files/patch-configure
--- /usr/ports/graphics/gts/files/patch-configure	Wed Nov 20 21:33:34 2002
+++ graphics/gts/files/patch-configure	Thu Jan  1 09:00:00 1970
@@ -1,10 +0,0 @@
---- configure.orig	Mon Sep 16 09:53:32 2002
-+++ configure	Sat Nov  9 14:36:52 2002
-@@ -7361,6 +7361,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/gts/files/patch-isotetra.c graphics/gts/files/patch-isotetra.c
--- /usr/ports/graphics/gts/files/patch-isotetra.c	Thu Nov 21 18:35:05 2002
+++ graphics/gts/files/patch-isotetra.c	Thu Jan  1 09:00:00 1970
@@ -1,10 +0,0 @@
---- src/isotetra.c.orig	Thu Nov 21 16:27:11 2002
-+++ src/isotetra.c	Thu Nov 21 16:27:34 2002
-@@ -18,6 +18,7 @@
-  */
- 
- #include <math.h>
-+#include <string.h>
- #include <gts.h>
- #ifdef NATIVE_WIN32
- # include <memory.h>
diff -urN /usr/ports/graphics/gts/files/patch-ltmain.sh graphics/gts/files/patch-ltmain.sh
--- /usr/ports/graphics/gts/files/patch-ltmain.sh	Thu Jan  1 09:00:00 1970
+++ graphics/gts/files/patch-ltmain.sh	Thu Apr 24 03:00:53 2003
@@ -0,0 +1,41 @@
+--- ltmain.sh.orig	Wed Dec 18 17:59:18 2002
++++ ltmain.sh	Thu Apr 24 02:59:06 2003
+@@ -1043,14 +1043,14 @@
+ 	    # These systems don't actually have a C library (as such)
+ 	    test "X$arg" = "X-lc" && continue
+ 	    ;;
+-	  *-*-openbsd*)
++	  *-*-openbsd* | *-*-freebsd*)
+ 	    # Do not include libc due to us having libc/libc_r.
+ 	    test "X$arg" = "X-lc" && continue
+ 	    ;;
+ 	  esac
+ 	 elif test "X$arg" = "X-lc_r"; then
+ 	  case $host in
+-	  *-*-openbsd*)
++	  *-*-openbsd* | *-*-freebsd*)
+ 	    # Do not include libc_r directly, use -pthread flag.
+ 	    continue
+ 	    ;;
+@@ -2441,7 +2441,7 @@
+ 	  *-*-netbsd*)
+ 	    # Don't link with libc until the a.out ld.so is fixed.
+ 	    ;;
+-	  *-*-openbsd*)
++	  *-*-openbsd* | *-*-freebsd*)
+ 	    # Do not include libc due to us having libc/libc_r.
+ 	    ;;
+ 	  *)
+@@ -4210,10 +4210,12 @@
+ 	fi
+ 
+ 	# Install the pseudo-library for information purposes.
++	if /usr/bin/false; then
+ 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ 	instname="$dir/$name"i
+ 	$show "$install_prog $instname $destdir/$name"
+ 	$run eval "$install_prog $instname $destdir/$name" || exit $?
++	fi
+ 
+ 	# Maybe install the static library, too.
+ 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff -urN /usr/ports/graphics/gts/files/patch-stl2gts.c graphics/gts/files/patch-stl2gts.c
--- /usr/ports/graphics/gts/files/patch-stl2gts.c	Thu Nov 21 18:35:05 2002
+++ graphics/gts/files/patch-stl2gts.c	Thu Jan  1 09:00:00 1970
@@ -1,10 +0,0 @@
---- tools/stl2gts.c.orig	Thu Nov 21 16:30:54 2002
-+++ tools/stl2gts.c	Thu Nov 21 16:31:06 2002
-@@ -19,6 +19,7 @@
- 
- #include <math.h>
- #include <stdlib.h>
-+#include <string.h>
- #include "config.h"
- #ifdef HAVE_GETOPT_H
- #  include <getopt.h>
diff -urN /usr/ports/graphics/gts/pkg-plist graphics/gts/pkg-plist
--- /usr/ports/graphics/gts/pkg-plist	Wed Nov 20 23:45:42 2002
+++ graphics/gts/pkg-plist	Thu Apr 24 03:09:15 2003
@@ -9,7 +9,7 @@
 include/gtsconfig.h
 lib/libgts.a
 lib/libgts.so
-lib/libgts.so.0
+lib/libgts.so.1
 share/aclocal/gts.m4
 %%PORTDOCS%%share/doc/gts/book1.html
 %%PORTDOCS%%share/doc/gts/c10143.html
>Release-Note:
>Audit-Trail:
>Unformatted:



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