summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libmusicbrainz3/README9
-rw-r--r--libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild69
-rw-r--r--libraries/libmusicbrainz3/libmusicbrainz3.info7
-rw-r--r--libraries/libmusicbrainz3/patches/gcc-4.3.patch10
-rw-r--r--libraries/libmusicbrainz3/patches/pkgconfig-private.patch13
-rw-r--r--libraries/libmusicbrainz3/slack-desc19
6 files changed, 127 insertions, 0 deletions
diff --git a/libraries/libmusicbrainz3/README b/libraries/libmusicbrainz3/README
new file mode 100644
index 0000000000..799867485d
--- /dev/null
+++ b/libraries/libmusicbrainz3/README
@@ -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.
diff --git a/libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild b/libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild
new file mode 100644
index 0000000000..ae29c396b8
--- /dev/null
+++ b/libraries/libmusicbrainz3/libmusicbrainz3.SlackBuild
@@ -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
diff --git a/libraries/libmusicbrainz3/libmusicbrainz3.info b/libraries/libmusicbrainz3/libmusicbrainz3.info
new file mode 100644
index 0000000000..e9e222d8cd
--- /dev/null
+++ b/libraries/libmusicbrainz3/libmusicbrainz3.info
@@ -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" \ No newline at end of file
diff --git a/libraries/libmusicbrainz3/patches/gcc-4.3.patch b/libraries/libmusicbrainz3/patches/gcc-4.3.patch
new file mode 100644
index 0000000000..c13b2e1ada
--- /dev/null
+++ b/libraries/libmusicbrainz3/patches/gcc-4.3.patch
@@ -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>
diff --git a/libraries/libmusicbrainz3/patches/pkgconfig-private.patch b/libraries/libmusicbrainz3/patches/pkgconfig-private.patch
new file mode 100644
index 0000000000..a6307d51d2
--- /dev/null
+++ b/libraries/libmusicbrainz3/patches/pkgconfig-private.patch
@@ -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}
+
diff --git a/libraries/libmusicbrainz3/slack-desc b/libraries/libmusicbrainz3/slack-desc
new file mode 100644
index 0000000000..8bc7acc7a6
--- /dev/null
+++ b/libraries/libmusicbrainz3/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 ':'.
+
+ |-----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: