From owner-freebsd-ports Wed Nov 27 2:20: 7 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06C9037B404 for ; Wed, 27 Nov 2002 02:20:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AF8C43ED1 for ; Wed, 27 Nov 2002 02:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gARAK2x3026960 for ; Wed, 27 Nov 2002 02:20:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gARAK2e4026959; Wed, 27 Nov 2002 02:20:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C59837B401 for ; Wed, 27 Nov 2002 02:14:57 -0800 (PST) Received: from lambda.foldr.org (lambda.foldr.org [198.78.66.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6072643EC2 for ; Wed, 27 Nov 2002 02:14:46 -0800 (PST) (envelope-from vs@foldr.org) Received: from theater.foldr.org (pD9509CA1.dip.t-dialin.net [217.80.156.161]) by lambda.foldr.org (8.12.3/8.11.6) with ESMTP id gARAEfjN027000 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK) for ; Wed, 27 Nov 2002 11:14:43 +0100 (CET) (envelope-from vs@foldr.org) Received: from monster.theater.foldr.org (monster.theater.foldr.org [IPv6:3ffe:b80:2de:3:2e0:29ff:fe98:abca]) by theater.foldr.org (8.12.5/8.12.5) with ESMTP id gARAF1Ba031236 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 27 Nov 2002 11:15:07 +0100 (CET) (envelope-from vs@monster.theater.foldr.org) Received: (from vs@localhost) by monster.theater.foldr.org (8.12.6/8.12.6/Submit) id gARAEYtU003766; Wed, 27 Nov 2002 11:14:34 +0100 (CET) (envelope-from vs) Message-Id: <200211271014.gARAEYtU003766@monster.theater.foldr.org> Date: Wed, 27 Nov 2002 11:14:34 +0100 (CET) From: Volker Stolz Reply-To: Volker Stolz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/45794: [bento] math/p5-Math-GMP needs gmp-port on -current Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45794 >Category: ports >Synopsis: [bento] math/p5-Math-GMP needs gmp-port on -current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 27 02:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD monster.theater.foldr.org 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sun Nov 24 14:40:01 CET 2002 root@monster.theater.foldr.org:/usr/obj/usr/src/sys/MONSTER i386 >Description: This ports requires the libgmp-port on -current. >How-To-Repeat: >Fix: - Patch Makefile.PL to use new variable GMP for includes - Set GMP to /usr on <= 4.X, to $LOCALBASE on >= 5 - Add libgmp dependency on -current diff -urN p5-Math-GMP.orig/Makefile p5-Math-GMP/Makefile --- p5-Math-GMP.orig/Makefile Wed Nov 27 10:12:48 2002 +++ p5-Math-GMP/Makefile Wed Nov 27 11:08:24 2002 @@ -14,9 +14,18 @@ MAINTAINER= ports@FreeBSD.org +.include + +.if ${OSVERSION} >= 500000 +LIB_DEPENDS= gmp:${PORTSDIR}/math/libgmp4 +CONFIGURE_ENV+= GMP=${LOCALBASE} +.else +CONFIGURE_ENV+= GMP=/usr +.endif + PERL_CONFIGURE= yes MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Math::GMP.3 -.include +.include diff -urN p5-Math-GMP.orig/files/patch-Makefile.PL p5-Math-GMP/files/patch-Makefile.PL --- p5-Math-GMP.orig/files/patch-Makefile.PL Thu Jan 4 00:40:35 2001 +++ p5-Math-GMP/files/patch-Makefile.PL Wed Nov 27 10:50:31 2002 @@ -1,15 +1,15 @@ ---- Makefile.PL Sat Sep 18 22:48:14 1999 -+++ Makefile.PL.new Wed Jan 3 11:14:11 2001 +--- Makefile.PL.orig Wed Nov 27 10:18:38 2002 ++++ Makefile.PL Wed Nov 27 10:50:17 2002 @@ -6,6 +6,8 @@ my $tar = (grep { -x "$_/tar" } @paths)[0] . "/tar"; my $gzip = (grep { -x "$_/gzip" } @paths)[0] . "/gzip"; -+# FreeBSD has GMP in the base system ++# FreeBSD has GMP in the base system or ports +if ("" ne "" ) { my $cmd = "$gzip -dc gmp-2.0.2.tar.gz | $tar xf -"; system $cmd unless -d 'gmp-2.0.2'; die "tar extraction of gmp-2.0.2.tar.gz failed" unless -d 'gmp-2.0.2'; -@@ -13,6 +15,7 @@ +@@ -13,11 +15,12 @@ chdir 'gmp-2.0.2'; system "./configure --prefix=../gmp && make && make install"; chdir '..'; @@ -17,3 +17,9 @@ WriteMakefile( 'NAME' => 'Math::GMP', + 'VERSION_FROM' => 'GMP.pm', # finds $VERSION + 'LIBS' => ['-Lgmp/lib -lgmp'], # e.g., '-lm' + 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' +- 'INC' => '-I$(PREFIX)', # e.g., '-I/usr/include/other' ++ 'INC' => '-I'.$ENV{"GMP"}.'/include', # e.g., '-I/usr/include/other' + ); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message