summaryrefslogtreecommitdiff
path: root/math/p5-Algorithm-Cluster
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-02-28 23:44:27 +0000
committerjoerg <joerg@pkgsrc.org>2015-02-28 23:44:27 +0000
commita85f460472a7a5d6bbf07e337835861d608e1f55 (patch)
treefb460602b1eb93f3ae97b8c91062c594e5305a63 /math/p5-Algorithm-Cluster
parent4161e6af80f0100c7beb7180f71f73963572a9da (diff)
downloadpkgsrc-a85f460472a7a5d6bbf07e337835861d608e1f55.tar.gz
Always build PIC. Bump revision.
Diffstat (limited to 'math/p5-Algorithm-Cluster')
-rw-r--r--math/p5-Algorithm-Cluster/Makefile4
-rw-r--r--math/p5-Algorithm-Cluster/distinfo3
-rw-r--r--math/p5-Algorithm-Cluster/patches/patch-src_Makefile.PL27
3 files changed, 31 insertions, 3 deletions
diff --git a/math/p5-Algorithm-Cluster/Makefile b/math/p5-Algorithm-Cluster/Makefile
index c3f2268190f..81500c71f63 100644
--- a/math/p5-Algorithm-Cluster/Makefile
+++ b/math/p5-Algorithm-Cluster/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2014/05/29 23:36:53 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2015/02/28 23:44:27 joerg Exp $
#
DISTNAME= Algorithm-Cluster-1.50
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Algorithm/}
#MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/E/ET/ETHER/}
diff --git a/math/p5-Algorithm-Cluster/distinfo b/math/p5-Algorithm-Cluster/distinfo
index 8bb40049403..1899356081f 100644
--- a/math/p5-Algorithm-Cluster/distinfo
+++ b/math/p5-Algorithm-Cluster/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2013/07/03 14:26:03 sno Exp $
+$NetBSD: distinfo,v 1.2 2015/02/28 23:44:27 joerg Exp $
SHA1 (Algorithm-Cluster-1.50.tar.gz) = 036de7abda2af0f2a09f915b55662d88a0656b21
RMD160 (Algorithm-Cluster-1.50.tar.gz) = 128be5e282c24108cdf8dbfed5e95f032608fa4b
Size (Algorithm-Cluster-1.50.tar.gz) = 275620 bytes
+SHA1 (patch-src_Makefile.PL) = 57c3552d658a9dc79dbde8df6eb035334a1c948d
diff --git a/math/p5-Algorithm-Cluster/patches/patch-src_Makefile.PL b/math/p5-Algorithm-Cluster/patches/patch-src_Makefile.PL
new file mode 100644
index 00000000000..83340911df0
--- /dev/null
+++ b/math/p5-Algorithm-Cluster/patches/patch-src_Makefile.PL
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_Makefile.PL,v 1.1 2015/02/28 23:44:27 joerg Exp $
+
+--- src/Makefile.PL.orig 2015-02-28 22:52:46.000000000 +0000
++++ src/Makefile.PL
+@@ -2,13 +2,6 @@ use ExtUtils::MakeMaker;
+ use Config;
+ use POSIX;
+
+-# Check if this is a 64 bit machine
+-my $CCFLAGS = '';
+-my $machine = (POSIX::uname())[4];
+-if ($machine =~ /64/) {
+- $CCFLAGS = '-fPIC';
+-}
+-
+ WriteMakefile(
+ NAME => 'libcluster',
+ VERSION_FROM => '../perl/Cluster.pm',
+@@ -17,7 +10,7 @@ WriteMakefile(
+ H => ['cluster.h'],
+ OBJECT => 'cluster.o',
+ MYEXTLIB => 'libcluster$(LIB_EXT)',
+- CCFLAGS => $CCFLAGS,
++ CCFLAGS => '-fPIC',
+ clean => {'FILES' => 'libcluster$(LIBEEXT) $(OBJECT)'},
+ );
+