Browse Source

ap/a2jmidid: Upgraded to a2jmidid-9.

current-20191101
parent
commit
716bd8c925
3 changed files with 20 additions and 44 deletions
  1. +0
    -1
      ap/a2jmidid/a2jmidid-8.tar.bz2.sha1
  2. +1
    -0
      ap/a2jmidid/a2jmidid-9.tar.bz2.sha256
  3. +19
    -43
      ap/a2jmidid/a2jmidid.SlackBuild

+ 0
- 1
ap/a2jmidid/a2jmidid-8.tar.bz2.sha1 View File

@ -1 +0,0 @@
0220fc0dcc2943c9c0df5bf622ec1d4765432ac3 a2jmidid-8.tar.bz2

+ 1
- 0
ap/a2jmidid/a2jmidid-9.tar.bz2.sha256 View File

@ -0,0 +1 @@
2828d283e0c9a65f0683881f09676c8c35c45c97a8a56cf77b43b4ef0231df06 a2jmidid-9.tar.bz2

+ 19
- 43
ap/a2jmidid/a2jmidid.SlackBuild View File

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2011,2012,2013 Damien Goutte-Gattat
# Copyright (C) 2010-2013,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,19 +23,19 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest a2jmidid sourcecode is available at:
# <http://home.gna.org/a2jmidid/>
# <https://github.com/linuxaudio/a2jmidid/>.
#
# Depends: ap/jack
# Source package infos
NAMESRC=${NAMESRC:-a2jmidid}
VERSION=${VERSION:-8}
VERSION=${VERSION:-9}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://download.gna.org/a2jmidid/$ARCHIVE}
WGET=${WGET:-https://github.com/linuxaudio/a2jmidid/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-a2jmidid}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -78,7 +78,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract
@ -86,53 +86,29 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# No way to do something as simple as to modify LDFLAGS with waf...
# Just forget that useless piece of crap and build by hand
cat > config.h <<EOC
#ifndef _CONFIG_H
#define _CONFIG_H
#define HAVE_ALSA 1
#define HAVE_JACK 1
#define HAVE_DBUS_1 1
#define HAVE_GETOPT_H 1
#define A2J_VERSION "8"
#endif
EOC
LDFLAGS="-ldl -ldbus-1 -lasound -ljack -lpthread"
gcc $CFLAGS -c -I. -I/usr/include/dbus-1.0 \
-I/usr/lib$LIBDIRSUFFIX/dbus-1.0/include \
a2jmidid.c log.c port.c port_*.c paths.c jack.c list.c \
dbus.c dbus_*.c sigsegv.c j2amidi_bridge.c a2jmidi_bridge.c
gcc -o a2jmidid a2jmidid.o log.o port.o port_*.o paths.o jack.o \
list.o dbus.o dbus_*.o sigsegv.o $LDFLAGS
gcc -o j2amidi_bridge j2amidi_bridge.o $LDFLAGS
gcc -o a2jmidi_bridge a2jmidi_bridge.o $LDFLAGS
# Install
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
install -s -m 755 a2jmidid j2amidi_bridge a2jmidi_bridge $PKG/usr/bin
install -m 755 a2j a2j_control $PKG/usr/bin
install -m 644 man/*.1 $PKG/usr/man/man1
meson setup \
--prefix /usr \
--mandir /usr/man \
--strip \
build .
ninja -C build -j $JOBS
DESTDIR=$PKG ninja -C build install
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install D-Bus service file
mkdir -p $PKG/usr/share/dbus-1/services
cat > $PKG/usr/share/dbus-1/services/org.gna.home.a2jmidi2.service <<EOS
[D-BUS Service]
Name=org.gna.home.a2jmidid
Exec=/usr/bin/a2jmidid dbus
EOS
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS NEWS README gpl2.txt internals.txt $PKG/usr/doc/$NAME
install -m 644 AUTHORS.rst CHANGELOG.rst LICENSE README.rst $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
jack
EOF
# Package the tree
cd $PKG
mkdir -p $OUT


Loading…
Cancel
Save