summaryrefslogtreecommitdiff
path: root/system/gammu/gammu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/gammu/gammu.SlackBuild')
-rw-r--r--system/gammu/gammu.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/system/gammu/gammu.SlackBuild b/system/gammu/gammu.SlackBuild
index 52f0f53749..90c0ac3800 100644
--- a/system/gammu/gammu.SlackBuild
+++ b/system/gammu/gammu.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gammu
-VERSION=1.24.0
+VERSION=1.26.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -61,7 +64,8 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_MAN_DIR=man \
-DINSTALL_DOC_DIR=doc/$PRGNAM-$VERSION \
- -DENABLE_SHARED=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ -DLIB_SUFFIX="$LIBDIRSUFFIX" \
..
make
make install DESTDIR=$PKG
@@ -82,4 +86,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}