mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/libmusicbrainz3: Added to 12.2 repository
This commit is contained in:
parent
e7a8c01974
commit
2e3aac9c05
6 changed files with 127 additions and 0 deletions
9
libraries/libmusicbrainz3/README
Normal file
9
libraries/libmusicbrainz3/README
Normal file
|
@ -0,0 +1,9 @@
|
|||
The libmusicbrainz (also known as mb_client or MusicBrainz Client Library)
|
||||
is a development library geared towards developers who wish to add
|
||||
MusicBrainz lookup capabilities to their applications.
|
||||
|
||||
This requires libdiscid, and cppunit is an optional build-time dep.
|
||||
|
||||
Note: This is a new library for libmusicbrainz, which is not backwards
|
||||
compatible with previous versions. It is safe to have version 2.X and
|
||||
version 3.X on the same system as they don't conflict with each other.
|
69
libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild
Normal file
69
libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild
Normal file
|
@ -0,0 +1,69 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for libmusicbrainz3
|
||||
|
||||
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
|
||||
PRGNAM=libmusicbrainz3
|
||||
SRCNAM=libmusicbrainz
|
||||
VERSION=${VERSION:-3.0.2}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
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
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCNAM-$VERSION
|
||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/patches/gcc-4.3.patch
|
||||
patch -p1 < $CWD/patches/pkgconfig-private.patch
|
||||
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
cd -
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a *.txt $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.tgz
|
7
libraries/libmusicbrainz3/libmusicbrainz3.info
Normal file
7
libraries/libmusicbrainz3/libmusicbrainz3.info
Normal file
|
@ -0,0 +1,7 @@
|
|||
PRGNAM="libmusicbrainz3"
|
||||
VERSION="3.0.2"
|
||||
HOMEPAGE="http://musicbrainz.org/doc/libmusicbrainz"
|
||||
DOWNLOAD="ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-3.0.2.tar.gz"
|
||||
MD5SUM="648ecd43f7b80852419aaf73702bc23f"
|
||||
MAINTAINER="Larry Hajali"
|
||||
EMAIL="larryhaja[at]gmail[dot]com"
|
10
libraries/libmusicbrainz3/patches/gcc-4.3.patch
Normal file
10
libraries/libmusicbrainz3/patches/gcc-4.3.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/src/utils_private.cpp~ 2008-11-07 20:07:10.000000000 +0000
|
||||
+++ a/src/utils_private.cpp 2008-11-07 20:07:16.000000000 +0000
|
||||
@@ -20,6 +20,7 @@
|
||||
* $Id: utils_private.cpp 8466 2006-09-05 08:59:44Z luks $
|
||||
*/
|
||||
|
||||
+#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cstdarg>
|
13
libraries/libmusicbrainz3/patches/pkgconfig-private.patch
Normal file
13
libraries/libmusicbrainz3/patches/pkgconfig-private.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: libmusicbrainz-3.0.2/libmusicbrainz3.pc.cmake
|
||||
===================================================================
|
||||
--- libmusicbrainz-3.0.2.orig/libmusicbrainz3.pc.cmake 2008-12-22 21:53:56.000000000 +0000
|
||||
+++ libmusicbrainz-3.0.2/libmusicbrainz3.pc.cmake 2008-12-22 21:54:00.000000000 +0000
|
||||
@@ -7,7 +7,7 @@
|
||||
Description: The Musicbrainz Client Library.
|
||||
URL: http://musicbrainz.org/doc/libmusicbrainz
|
||||
Version: ${PROJECT_VERSION}
|
||||
-Requires: neon >= 0.25, libdiscid
|
||||
+Requires.private: neon >= 0.25, libdiscid
|
||||
Libs: -L${LIB_INSTALL_DIR} -lmusicbrainz3
|
||||
Cflags: -I${INCLUDE_INSTALL_DIR}
|
||||
|
19
libraries/libmusicbrainz3/slack-desc
Normal file
19
libraries/libmusicbrainz3/slack-desc
Normal file
|
@ -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 ':'.
|
||||
|
||||
|-----handy-ruler-------------------------------------------------------|
|
||||
libmusicbrainz3: libmusicbrainz3 (MusicBrainz 3 Library)
|
||||
libmusicbrainz3:
|
||||
libmusicbrainz3: The libmusicbrainz (also known as mb_client or MusicBrainz Client
|
||||
libmusicbrainz3: Library) is a development library geared towards developers who wish
|
||||
libmusicbrainz3: to add MusicBrainz lookup capabilities to their applications.
|
||||
libmusicbrainz3:
|
||||
libmusicbrainz3: Homepage: http://musicbrainz.org/doc/libmusicbrainz
|
||||
libmusicbrainz3:
|
||||
libmusicbrainz3:
|
||||
libmusicbrainz3:
|
||||
libmusicbrainz3:
|
Loading…
Reference in a new issue