diff options
author | Heinz Wiesinger <HMWiesinger@gmx.at> | 2010-05-11 22:24:05 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:24:05 +0200 |
commit | 327ce53411f31249d96455931020f46888d7f83b (patch) | |
tree | e1f076f2e7777fa9fb97e3e003911e8388f5251f /libraries/libopensync/libopensync.SlackBuild | |
parent | 88fb200b26a4e3c92f41c4d05c07185dbd338ff9 (diff) | |
download | slackbuilds-327ce53411f31249d96455931020f46888d7f83b.tar.gz |
libraries/libopensync: Updated for version 0.22
Diffstat (limited to 'libraries/libopensync/libopensync.SlackBuild')
-rw-r--r-- | libraries/libopensync/libopensync.SlackBuild | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/libraries/libopensync/libopensync.SlackBuild b/libraries/libopensync/libopensync.SlackBuild index 307899c1de..1bedafbe0f 100644 --- a/libraries/libopensync/libopensync.SlackBuild +++ b/libraries/libopensync/libopensync.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libopensync -VERSION=0.36 +VERSION=0.22 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e @@ -50,11 +52,24 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -cmake \ - -DCMAKE_C_FLAGS="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - || exit 1 +# Cmake-based build-system used by libopensync >= 0.30 +# Uncomment this if you want to build newer versions. +# (also comment the "standard" build method below it) + +# cmake \ +# -DCMAKE_C_FLAGS="$SLKCFLAGS" \ +# -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ +# -DCMAKE_INSTALL_PREFIX=/usr + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make make install DESTDIR=$PKG @@ -65,7 +80,7 @@ make install DESTDIR=$PKG ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS CODING COPYING README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |