diff options
author | Zhu Qun-Ying <zhu.qunying@gmail.com> | 2019-12-31 17:10:27 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2019-12-31 17:10:27 -0600 |
commit | 28396d6d4e57a0d318a799b1c5fc9ec35d570fdf (patch) | |
tree | 1b9628a41b8197aa90381392a4c8dc5c33e0e679 /libraries/libmigdb | |
parent | 82bbd880da5d554ddb98a82fcf8c17cc2131d56a (diff) | |
download | slackbuilds-28396d6d4e57a0d318a799b1c5fc9ec35d570fdf.tar.gz |
libraries/libmigdb: Added (A GDB/MI interface library)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libmigdb')
-rw-r--r-- | libraries/libmigdb/README | 3 | ||||
-rw-r--r-- | libraries/libmigdb/libmigdb.SlackBuild | 86 | ||||
-rw-r--r-- | libraries/libmigdb/libmigdb.info | 10 | ||||
-rw-r--r-- | libraries/libmigdb/slack-desc | 19 |
4 files changed, 118 insertions, 0 deletions
diff --git a/libraries/libmigdb/README b/libraries/libmigdb/README new file mode 100644 index 0000000000..73db845c7b --- /dev/null +++ b/libraries/libmigdb/README @@ -0,0 +1,3 @@ +libmigdb (A GDB/MI interface library for C and C++) implements the +GDB/MI (GNU DeBugger/Machine Interface) protocol as a library so +you can create a GDB frontend without writing the "dialog" with GDB. diff --git a/libraries/libmigdb/libmigdb.SlackBuild b/libraries/libmigdb/libmigdb.SlackBuild new file mode 100644 index 0000000000..c63d070fbf --- /dev/null +++ b/libraries/libmigdb/libmigdb.SlackBuild @@ -0,0 +1,86 @@ +#!/bin/sh + +# Slackware build script for libmigdb + +# Copyright 2019, Zhu Qun-Ying +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=libmigdb +VERSION=${VERSION:-0.8.13} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +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 + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM + +make CFLAGS="$SLKCFLAGS -gstabs+3" CXXFLAGS="$SLKCFLAGS -gstabs+3" + +mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} +cp -a src/libmigdb.a $PKG/usr/lib${LIBDIRSUFFIX} + +mkdir -p $PKG/usr/include +cp -a src/mi_gdb.h $PKG/usr/include + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README GPL-license change.log doc/reference.html \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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.${PKGTYPE:-tgz} diff --git a/libraries/libmigdb/libmigdb.info b/libraries/libmigdb/libmigdb.info new file mode 100644 index 0000000000..537b71b2bf --- /dev/null +++ b/libraries/libmigdb/libmigdb.info @@ -0,0 +1,10 @@ +PRGNAM="libmigdb" +VERSION="0.8.13" +HOMEPAGE="https://sourceforge.net/projects/libmigdb/" +DOWNLOAD="https://sourceforge.net/projects/libmigdb/files/libmigdb/0.8.13/libmigdb-0.8.13.tar.bz2" +MD5SUM="e4a59a60296244023b140ec862b5e18e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Zhu Qun-Ying" +EMAIL="zhu.qunying@gmail.com" diff --git a/libraries/libmigdb/slack-desc b/libraries/libmigdb/slack-desc new file mode 100644 index 0000000000..b30a872637 --- /dev/null +++ b/libraries/libmigdb/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +libmigdb: libmigdb (A GDB/MI interface library for C and C++) +libmigdb: +libmigdb: libmigdb implements the GDB/MI (GNU DeBugger/Machine Interface) +libmigdb: protocol as a library so you can create a GDB frontend without +libmigdb: writing the "dialog" with GDB. +libmigdb: +libmigdb: Homepage: https://sourceforge.net/projects/libmigdb/ +libmigdb: +libmigdb: +libmigdb: +libmigdb: |