Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2008 20:40:03 GMT
From:      Gustavo Perez <gustau.perez@gmail.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/122416: deskutils/kmatrix3d and deskutils/ksmoothdock don't install.
Message-ID:  <200804032040.m33Ke3U1034583@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/122416; it has been noted by GNATS.

From: Gustavo Perez <gustau.perez@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/122416: deskutils/kmatrix3d and deskutils/ksmoothdock
	don't install.
Date: Thu, 03 Apr 2008 22:04:54 +0200

 --=-QJYeVzgPR4Ee5xZAd2D5
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 Il giorno Gio, 03/04/2008 alle 14.00 +0000, Edwin Groothuis ha scritto:
 > Maintainer of deskutils/kmatrix3d,
 > 
 > Please note that PR ports/122416 has just been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/122416
 > 
 
   I'm Attaching a shar file which has the port with two new patch files.
 Builds fine with 6.3, will try it with 7.0 ASAP (if someone can test it,
 let me know your results).
 
   Gustavo
 
   
 
 --=-QJYeVzgPR4Ee5xZAd2D5
 Content-Disposition: attachment; filename=kmatrix.shar
 Content-Type: text/plain; name=kmatrix.shar; charset=utf-8
 Content-Transfer-Encoding: 7bit
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	kmatrix3d/
 #	kmatrix3d/Makefile
 #	kmatrix3d/distinfo
 #	kmatrix3d/pkg-descr
 #	kmatrix3d/pkg-plist
 #	kmatrix3d/files
 #	kmatrix3d/files/patch-detect-autoconf
 #	kmatrix3d/files/patch-cvs-sh
 #
 echo c - kmatrix3d/
 mkdir -p kmatrix3d/ > /dev/null 2>&1
 echo x - kmatrix3d/Makefile
 sed 's/^X//' >kmatrix3d/Makefile << 'END-of-kmatrix3d/Makefile'
 X# New ports collection makefile for:   kmatrix
 X# Date created:        11 February 2007
 X# Whom:                Gustavo Perez
 X#
 X# $FreeBSD: ports/deskutils/kmatrix3d/Makefile,v 1.3 2007/09/30 04:46:40 linimon Exp $
 X#
 X
 XPORTNAME=		kmatrix3d
 XPORTVERSION=		0.1
 XPORTREVISION=		2
 XCATEGORIES=		deskutils
 XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
 XMASTER_SITE_SUBDIR=	${PORTNAME}
 X
 XMAINTAINER=		gustau.perez@gmail.com
 XCOMMENT=		Eye candy for KDE, a new Matrix screensaver
 X
 XLIB_DEPENDS=		glut.4:${PORTSDIR}/graphics/libglut
 X
 XDOCSDIR=		${PREFIX}/share/doc/HTML/en/kmatrix3d/
 X
 XWRKSRC=			${WRKDIR}/${PORTNAME}
 X
 XUSE_GL=			yes
 XGNU_CONFIGURE=		yes
 XUSE_GMAKE=		yes
 XUSE_AUTOTOOLS=		libtool:15 automake:19:env autoheader:261:env autotools:run
 XUSE_KDELIBS_VER=	3
 XUSE_BZIP2=		yes
 X
 Xpre-configure:
 X	cd ${WRKSRC} && ${MAKE} -f admin/Makefile.common
 X
 XMANCOMPRESSED=		yes
 X
 X.include <bsd.port.mk>
 END-of-kmatrix3d/Makefile
 echo x - kmatrix3d/distinfo
 sed 's/^X//' >kmatrix3d/distinfo << 'END-of-kmatrix3d/distinfo'
 XMD5 (kmatrix3d-0.1.tar.bz2) = 18bfaecbdbb521a8a840e8bd80a70729
 XSHA256 (kmatrix3d-0.1.tar.bz2) = 98a53412c337c550339ee77ba163a0268a899027d116993ef308305170f91435
 XSIZE (kmatrix3d-0.1.tar.bz2) = 968080
 END-of-kmatrix3d/distinfo
 echo x - kmatrix3d/pkg-descr
 sed 's/^X//' >kmatrix3d/pkg-descr << 'END-of-kmatrix3d/pkg-descr'
 XThis is a Matrix alike 3D OpenGL screen saver for KDE and X11 window system.
 X
 XWWW: http://sourceforge.net/projects/kmatrix3d/
 END-of-kmatrix3d/pkg-descr
 echo x - kmatrix3d/pkg-plist
 sed 's/^X//' >kmatrix3d/pkg-plist << 'END-of-kmatrix3d/pkg-plist'
 Xbin/kmatrix3d.kss
 Xshare/applnk/System/ScreenSavers/kmatrix3d.desktop
 Xshare/apps/kmatrix3d/textures/fontes_blanches_alpha.png
 Xshare/apps/kmatrix3d/textures/fontes_vertes_alpha.png
 Xshare/apps/kmatrix3d/textures/nuage1.png
 X%%DOCSDIR%%/common
 X%%DOCSDIR%%/index.cache.bz2
 X%%DOCSDIR%%/index.docbook
 X@dirrm %%DOCSDIR%%
 X@dirrmtry share/doc/HTML/en
 X@dirrmtry share/doc/HTML
 X@dirrm share/apps/kmatrix3d/textures
 X@dirrm share/apps/kmatrix3d
 X@dirrmtry share/apps
 X@dirrmtry share/applnk/System/ScreenSavers
 X@dirrmtry share/applnk/System
 X@dirrmtry share/applnk
 END-of-kmatrix3d/pkg-plist
 echo c - kmatrix3d/files
 mkdir -p kmatrix3d/files > /dev/null 2>&1
 echo x - kmatrix3d/files/patch-detect-autoconf
 sed 's/^X//' >kmatrix3d/files/patch-detect-autoconf << 'END-of-kmatrix3d/files/patch-detect-autoconf'
 X--- admin/detect-autoconf.pl.orig	2007-01-27 09:25:03.000000000 +0100
 X+++ admin/detect-autoconf.pl	2008-04-03 17:54:41.000000000 +0200
 X@@ -1,173 +1,14 @@
 X-#!/usr/bin/env perl
 X+#!/bin/sh
 X 
 X-# Try to locate best version of auto*
 X-# By Michael Pyne <michael.pyne@kdemail.net>
 X-#
 X-# Copyright (c) 2005.
 X-# This code is public domain.  You may use it however you like (including
 X-# relicensing).
 X+echo AUTOCONF=autoconf
 X+echo AUTOHEADER=autoheader
 X+echo AUTOM4TE=autom4te
 X 
 X-# Emulate the 'which' program.
 X-sub which
 X-{
 X-    my $prog = shift;
 X-    my @paths = split(/:/, $ENV{'PATH'});
 X+echo AUTOMAKE=automake
 X+echo ACLOCAL=aclocal
 X 
 X-    for $path (@paths)
 X-    {
 X-	return "$path/$prog" if -x "$path/$prog";
 X-    }
 X-
 X-    return "";
 X-}
 X-
 X-# Subroutine to determine the highest installed version of the given program,
 X-# searching from the given paths.
 X-sub findBest
 X-{
 X-    my ($program, @paths) = @_;
 X-    my $best_version_found = '0'; # Deliberately a string.
 X-    my %versions;
 X-    my %minimumVersions = (
 X- 	'autoconf' => '2.5',
 X-	'automake' => '1.6',
 X-    );
 X-
 X-    # Allow user to use environment variable to override search.
 X-    return $ENV{uc $program} if $ENV{uc $program};
 X-
 X-    for $prefix (@paths)
 X-    {
 X-	@files = glob "$prefix/$program*";
 X-	for $file (@files)
 X-	{
 X-	    # Don't check non-executable scripts.
 X-	    next unless -x $file;
 X-
 X-	    ($version) = $file =~ /$prefix\/$program-?(.*)$/;
 X-	    $version =~ s/-|\.//g;
 X-
 X-	    # Special case some programs to make sure it has a minimum version.
 X-	    if (not $version and exists $minimumVersions{$program})
 X-	    {
 X-		my $min_version = $minimumVersions{$program};
 X-		my $versionOutput = `$program --version 2>/dev/null | head -n 1`;
 X-
 X-		# If we can't run the script to get the version it likely won't work later.
 X-		next unless $versionOutput; 
 X-
 X-		# Use number.number for version (we don't need the excess in general).
 X-		($versionOutput) = ($versionOutput =~ /(\d\.\d)/);
 X-
 X-		# Use lt to do lexicographical comparison of strings (which should be
 X-		# equivalent and doesn't involve issues with floating point conversions).
 X-		if (not $versionOutput or $versionOutput lt $min_version)
 X-		{
 X-		    next;
 X-		}
 X-	    }
 X-
 X-	    # If no version suffix then use it in favor of a versioned autotool
 X-	    # since the ever-popular WANT_AUTOFOO should then work (in theory).
 X-	    return $file unless $version;
 X-
 X-	    # Emulate 'which', and abort if we've already seen this version.
 X-	    next if exists $versions{$version};
 X-
 X-	    # Save filename of program.
 X-	    $versions{$version} = $file;
 X-
 X-	    # Use string comparison so that e.g. 253a will be > 253 but < 254.
 X-	    if ($version gt $best_version_found)
 X-	    {
 X-		$best_version_found = $version;
 X-	    }
 X-	}
 X-    }
 X-
 X-    return $versions{$best_version_found};
 X-}
 X-
 X-# Find an appropriate "which" program for later use by the shell script calling
 X-# us.
 X-sub findWhich
 X-{
 X-    for $candidate ('type -p', 'which', 'type')
 X-    {
 X-	$test = `$candidate sh 2>/dev/null`;
 X-	chomp $test;
 X-
 X-	return $candidate if -x $test;
 X-    }
 X-}
 X-
 X-# Uses which() to find a program unless the user provided its path in the
 X-# environment (the upper case program name is searched).
 X-sub findProgram
 X-{
 X-    $suffix = ""; # For use if @_ has only one param.
 X-    my ($program, $suffix) = @_;
 X-
 X-    return $ENV{uc $program} if $ENV{uc $program};
 X-    return which("$program$suffix");
 X-}
 X-
 X-# SCRIPT STARTS.
 X-
 X-# Search in path.
 X-@paths = split(/:/, $ENV{'PATH'});
 X-
 X-# Make sure at least /usr/bin and /usr/local/bin are in this search.
 X-unshift @paths, '/usr/local/bin' unless grep $_ eq '/usr/local/bin', @paths;
 X-unshift @paths, '/usr/bin' unless grep $_ eq '/usr/bin', @paths;
 X-
 X-$autoconf = findBest('autoconf', @paths);
 X-($autoconf_suffix) = $autoconf =~ /.*autoconf(.*)$/;
 X-
 X-# Find matching autoconf companions.
 X-$autoheader = findProgram('autoheader', $autoconf_suffix);
 X-$autom4te = findProgram('autom4te', $autoconf_suffix);
 X-
 X-# Get best automake, and look for unsermake to possibly override it.
 X-$automake = findBest('automake', @paths);
 X-$unsermake = "";
 X-# backward compatible: if $UNSERMAKE points to a path, use it
 X-$unsermake = findProgram('unsermake') if (defined($ENV{'UNSERMAKE'}) and $ENV{'UNSERMAKE'} =~ /\//);
 X-# new compatible: if it says 'yes', use the one from path
 X-$unsermake = which('unsermake') if ($ENV{'UNSERMAKE'} ne 'no');
 X-
 X-($automake_suffix) = $automake =~ /.*automake(.*)$/;
 X-
 X-# Use unsermake if we found it.
 X-$automake = "$unsermake -c" if $unsermake;
 X-
 X-# Find matching automake companions.
 X-$aclocal = findProgram('aclocal', $automake_suffix);
 X-
 X-$which = findWhich();
 X-
 X-# Make sure we have all of the needed programs.
 X-for $i (qw'autoconf autoheader autom4te automake aclocal')
 X-{
 X-    unless(${$i})
 X-    {
 X-	print "# Unable to find $i!!\n";
 X-	exit 1;
 X-    }
 X-}
 X-
 X-# Print results in eval-able form.
 X-print <<EOF;
 X-AUTOCONF="$autoconf"
 X-AUTOHEADER="$autoheader"
 X-AUTOM4TE="$autom4te"
 X-
 X-AUTOMAKE="$automake"
 X-ACLOCAL="$aclocal"
 X-
 X-WHICH="$which"
 X+echo WHICH=which
 X 
 X export AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE ACLOCAL WHICH
 X-EOF
 X 
 X exit 0;
 END-of-kmatrix3d/files/patch-detect-autoconf
 echo x - kmatrix3d/files/patch-cvs-sh
 sed 's/^X//' >kmatrix3d/files/patch-cvs-sh << 'END-of-kmatrix3d/files/patch-cvs-sh'
 X--- admin/cvs.sh.org	2008-04-03 17:56:06.000000000 +0200
 X+++ admin/cvs.sh	2008-04-03 17:56:22.000000000 +0200
 X@@ -68,7 +68,7 @@
 X     echo "*** KDE requires automake $required_automake_version"
 X     exit 1
 X     ;;
 X-  automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9*)
 X+  automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10*)
 X     echo "*** $AUTOMAKE_STRING found."
 X     UNSERMAKE=no
 X     ;;
 END-of-kmatrix3d/files/patch-cvs-sh
 exit
 
 
 --=-QJYeVzgPR4Ee5xZAd2D5--
 



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