summaryrefslogtreecommitdiff
path: root/libraries/libopensync/libopensync.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-09 09:19:58 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-09 19:59:27 -0500
commit159213485d76d551bad728720c998f90b397ac2a (patch)
treece394904e4e5c7c1caf9a105ca818df28042b133 /libraries/libopensync/libopensync.SlackBuild
parent734a5adcfdab34232a282accd46616d76c28cb85 (diff)
downloadslackbuilds-159213485d76d551bad728720c998f90b397ac2a.tar.gz
libraries/libopensync: Patches refactoring.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libopensync/libopensync.SlackBuild')
-rw-r--r--libraries/libopensync/libopensync.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/libraries/libopensync/libopensync.SlackBuild b/libraries/libopensync/libopensync.SlackBuild
index ba8df184d9..db086c77a2 100644
--- a/libraries/libopensync/libopensync.SlackBuild
+++ b/libraries/libopensync/libopensync.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=libopensync
VERSION=0.22
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -74,14 +74,14 @@ chmod -R u+w,go+r-w,a-s .
# -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
# -DCMAKE_INSTALL_PREFIX=/usr
-if [ "$ARCH" = "x86_64" ]; then
- sed "s%@baselibdir@%lib${LIBDIRSUFFIX}%g" \
- $CWD/libopensync-0.22-fixup_python_libdir.diff \
- | patch -p1
-fi
+# Apply some patches from gentoo
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
+sed -i "s%python_path/lib%python_path/lib${LIBDIRSUFFIX}%g" acinclude.m4
+
+autoreconf -i
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS -Wno-error=unused-but-set-variable" \
+CXXFLAGS="$SLKCFLAGS -Wno-error=unused-but-set-variable" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \