aboutsummaryrefslogtreecommitdiff
path: root/network/pidgin-musictracker
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2022-03-02 06:52:53 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-03 16:25:43 +0700
commit2e0375bb1b79e2517f989a82bdc5301afc8da992 (patch)
treec2c54a1180ec166fbab3f4bb48ec7198ea1e7b37 /network/pidgin-musictracker
parent20f8f9b01e3f20447d7141026e7945b78e101ecd (diff)
network/pidgin-musictracker: Add extra CFLAGS.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/pidgin-musictracker')
-rw-r--r--network/pidgin-musictracker/pidgin-musictracker.SlackBuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/network/pidgin-musictracker/pidgin-musictracker.SlackBuild b/network/pidgin-musictracker/pidgin-musictracker.SlackBuild
index db3a394b4e02b..7b66d1af26e16 100644
--- a/network/pidgin-musictracker/pidgin-musictracker.SlackBuild
+++ b/network/pidgin-musictracker/pidgin-musictracker.SlackBuild
@@ -25,13 +25,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pidgin-musictracker
VERSION=${VERSION:-0.4.22}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -51,8 +51,8 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS"
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -80,8 +80,13 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS -Wno-error=deprecated-declarations -Wno-error=expansion-to-defined -Wno-error=implicit-fallthrough= -Wno-error=format-truncation=" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS \
+ -Wno-error=deprecated-declarations \
+ -Wno-error=expansion-to-defined \
+ -Wno-error=implicit-fallthrough= \
+ -Wno-error=format-truncation= \
+ -Wno-error=stringop-truncation \
+ -fcommon" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -93,6 +98,9 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+# cleaup libtool stuff
+rm -f $PKG/usr/lib64/pidgin/musictracker.la
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true