aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-extutils-pkgconfig/perl-extutils-pkgconfig.SlackBuild
diff options
context:
space:
mode:
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 c167b4f28f25d..90898e64d57d8 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