Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2002 09:54:56 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/42901: Update port: graphics/imlib3d
Message-ID:  <200209171654.g8HGsupY021438@www.freebsd.org>

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

>Number:         42901
>Category:       ports
>Synopsis:       Update port: graphics/imlib3d
>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:   Tue Sep 17 10:30:21 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.6.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS/CXXFLAGS properly
- Mark as BROKEN on 4-stable

New file:
files/patch-ltmain.sh

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/imlib3d/Makefile graphics/imlib3d/Makefile
--- /usr/ports/graphics/imlib3d/Makefile	Wed Aug 28 17:17:27 2002
+++ graphics/imlib3d/Makefile	Mon Sep 16 04:15:17 2002
@@ -8,6 +8,7 @@
 
 PORTNAME=	imlib3d
 PORTVERSION=	0.8.0
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,24 +16,30 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	gsl:${PORTSDIR}/math/gsl \
-		fftw:${PORTSDIR}/math/fftw \
+LIB_DEPENDS=	fftw.2:${PORTSDIR}/math/fftw \
+		gsl.3:${PORTSDIR}/math/gsl \
 		xml2.5:${PORTSDIR}/textproc/libxml2 \
-		gtkmm:${PORTSDIR}/x11-toolkits/gtk-- \
-		gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea \
-		gtkglmm:${PORTSDIR}/x11-toolkits/gtkglarea--
+		gtkglmm.1:${PORTSDIR}/x11-toolkits/gtkglarea--
 
-USE_REINPLACE=	yes
 USE_X_PREFIX=	yes
 USE_MESA=	yes
-USE_FREETYPE=	yes
-USE_LIBTOOL=	yes
-CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2/libxml" \
-		LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS=	--enable-libimx --enable-optimize
+#USE_FREETYPE=	yes
+USE_REINPLACE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS=	--enable-optimize
 INSTALLS_SHLIB=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+#BROKEN=		"does not build with GCC 2.x"
+.endif
+
 post-patch:
-	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+		 s|OPTIMIZE_FLAGS=.*$$|OPTIMIZE_FLAGS=|g ; \
+		 s|<xmlversion.h>|<libxml/xmlversion.h>|g' ${WRKSRC}/configure
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/graphics/imlib3d/files/patch-ltmain.sh graphics/imlib3d/files/patch-ltmain.sh
--- /usr/ports/graphics/imlib3d/files/patch-ltmain.sh	Thu Jan  1 09:00:00 1970
+++ graphics/imlib3d/files/patch-ltmain.sh	Mon Sep 16 04:02:25 2002
@@ -0,0 +1,25 @@
+--- ltmain.sh.orig	Mon Sep 16 04:01:31 2002
++++ ltmain.sh	Mon Sep 16 04:02:12 2002
+@@ -2408,6 +2408,9 @@
+ 	  *-*-netbsd*)
+ 	    # Don't link with libc until the a.out ld.so is fixed.
+ 	    ;;
++	  *-*-freebsd*)
++	    # FreeBSD doesn't need this...
++	    ;;
+ 	  *)
+ 	    # Add libc to deplibs on all other systems if necessary.
+ 	    if test "$build_libtool_need_lc" = "yes"; then
+@@ -4175,10 +4178,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/imlib3d/pkg-plist graphics/imlib3d/pkg-plist
--- /usr/ports/graphics/imlib3d/pkg-plist	Wed Aug 28 17:17:27 2002
+++ graphics/imlib3d/pkg-plist	Sun Sep 15 06:32:13 2002
@@ -222,37 +222,32 @@
 include/newmat/precisio.h
 include/newmat/solution.h
 lib/libGnuPlotInterface.a
-lib/libGnuPlotInterface.la
 lib/libGnuPlotInterface.so
 lib/libGnuPlotInterface.so.0
 lib/libImLib3D-0.8.so
 lib/libImLib3D-0.8.so.1
 lib/libImLib3D.a
-lib/libImLib3D.la
 lib/libImLib3D.so
 lib/libImLib3DCalls.a
-lib/libImLib3DCalls.la
 lib/libImLib3DCalls.so
 lib/libImLib3DCalls.so.0
 lib/libavwio.a
-lib/libavwio.la
 lib/libavwio.so
 lib/libavwio.so.0
 lib/libnewmat.a
-lib/libnewmat.la
 lib/libnewmat.so
 lib/libnewmat.so.0
-@dirrm include/GnuPlotInterface
-@dirrm include/ImLib3D
-@dirrm include/boost/config/compiler
-@dirrm include/boost/config/platform
-@dirrm include/boost/config/stdlib
-@dirrm include/boost/config
-@dirrm include/boost/preprocessor/arithmetic
-@dirrm include/boost/preprocessor/comparison
-@dirrm include/boost/preprocessor/list
-@dirrm include/boost/preprocessor/logical
+@dirrm include/boost/type_traits
 @dirrm include/boost/preprocessor/tuple
+@dirrm include/boost/preprocessor/logical
+@dirrm include/boost/preprocessor/list
+@dirrm include/boost/preprocessor/comparison
+@dirrm include/boost/preprocessor/arithmetic
 @dirrm include/boost/preprocessor
-@dirrm include/boost/type_traits
+@dirrm include/boost/config/stdlib
+@dirrm include/boost/config/platform
+@dirrm include/boost/config/compiler
+@dirrm include/boost/config
 @dirrm include/boost
+@dirrm include/ImLib3D
+@dirrm include/GnuPlotInterface

>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?200209171654.g8HGsupY021438>