summaryrefslogtreecommitdiff
path: root/perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-03-12 15:58:37 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-18 06:58:21 +0700
commitd05ec1e0af5975448dc71aeb648bcaa4db192782 (patch)
treed617884d42bcac038799e25e6aad6b32d42652f1 /perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild
parent884b9dcaf0dd7c06140c28097e443d499ed1db29 (diff)
downloadslackbuilds-d05ec1e0af5975448dc71aeb648bcaa4db192782.tar.gz
perl/perl-extutils-pkgconfig: New maintainer + switch to i586.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild')
-rw-r--r--perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild31
1 files changed, 24 insertions, 7 deletions
diff --git a/perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild b/perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild
index c167b4f28f..90898e64d5 100644
--- a/perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild
+++ b/perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild
@@ -1,9 +1,12 @@
#!/bin/sh
-
-# Slackware build script for perl-extutils-pkgconfig
-
+#
+# Slackware build script for perl-extutils-pkgconfig.
+#
# (C) 2007 Michael Wagner <lapinours@web.de>
# Copyright 2010, 2012 Binh Nguyen <binhvng@gmail.com>
+# Copyright 2014-2017 Glenn Becker <glenn.becker@gmail.com>
+# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,14 +28,12 @@
PRGNAM=perl-extutils-pkgconfig
VERSION=${VERSION:-1.15}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-SRCNAM=ExtUtils-PkgConfig
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -43,6 +44,22 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+SRCNAM="ExtUtils-PkgConfig"
+
set -e
rm -rf $PKG