aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodfall <info@davidwoodfall.co.uk>2010-06-14 00:34:14 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-14 03:18:18 -0500
commitfcb9757f17ad65c0e3d25b4a446d844ed82acb73 (patch)
tree0d94391af8bc215852593191f467ee36c32a272f
parentf8ba736cc26e2b2b494cb2e2ea4af61a4e57615b (diff)
audio/portmidi: Build fixes for x86_64
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--audio/portmidi/doinst.sh10
-rw-r--r--audio/portmidi/portmidi.SlackBuild27
-rw-r--r--audio/portmidi/portmidi.info2
3 files changed, 25 insertions, 14 deletions
diff --git a/audio/portmidi/doinst.sh b/audio/portmidi/doinst.sh
new file mode 100644
index 000000000000..1f8ff67dedb2
--- /dev/null
+++ b/audio/portmidi/doinst.sh
@@ -0,0 +1,10 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/audio/portmidi/portmidi.SlackBuild b/audio/portmidi/portmidi.SlackBuild
index 4398745a2d76..e83e8efce6b5 100644
--- a/audio/portmidi/portmidi.SlackBuild
+++ b/audio/portmidi/portmidi.SlackBuild
@@ -2,8 +2,7 @@
# Slackware build script for portmidi
-# Copyright 2009 David Woodfall <dave@unrealize.co.uk>
-# aka dive in #slackware on freenode.net
+# Copyright 2009 David Woodfall <dave@dawoodfall.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +22,6 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Thanks to Camarade_Tux, Fire|Bird, and Metrofox for their assistance in
-# getting the 64 bit build to work, and for putting up with constant cries
-# for help ;-)
-
PRGNAM=portmidi
VERSION=${VERSION:-200}
BUILD=${BUILD:-1}
@@ -79,7 +74,7 @@ find . \
# Fix the libjvm.so path. This is *really* only needed on x86_64, but fixing
# it on both arches looks prettier :-) --rworkman
-sed "s%@LIBDIR@%/usr/lib${LIBDIRSUFFIX}%" $CWD/fixup_java_path.diff | patch -p1
+sed "s%@LIBDIR@%/usr/lib${LIBDIRSUFFIX}%" $CWD/fixup_java_path.diff | patch --verbose -p1
cmake . \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
@@ -88,15 +83,19 @@ cmake . \
-DCMAKE_CACHEFILE_DIR=$PKG \
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="$PKG/usr/lib$LIBDIRSUFFIX" \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$PKG/usr/lib$LIBDIRSUFFIX" \
- -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PKG/usr/bin
+ -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PKG/usr/bin \
+ -DJAVA_AWT_INCLUDE_PATH="/usr/lib$LIBDIRSUFFIX/java/include" \
+ -DJAVA_INCLUDE_PATH="/usr/lib$LIBDIRSUFFIX/java/include" \
+ -DJAVA_INCLUDE_PATH2="/usr/lib$LIBDIRSUFFIX/java/include/linux" \
+ -DJAVA_JVM_LIBRARY="/usr/lib$LIBDIRSUFFIX/libjvm.so"
-patch -p1 < $CWD/portmidi-shared.diff
+patch --verbose -p1 < $CWD/portmidi-shared.diff
# Fixup for hardcoded usr/local
find . \( -name cmake_install.cmake -o -name CMakeLists.txt -o -name Makefile \) \
-exec sed -i 's%/local%%g' '{}' \;
-make -j1 all CFLAGS="-fPIC" PMFLAGS="-DNEWBUFFER"
+make all CFLAGS="-fPIC" PMFLAGS="-DNEWBUFFER"
make install DESTDIR=$PKG
rm -f $PKG/usr/lib/libportmidi_s.a
@@ -104,12 +103,13 @@ rm -f $PKG/usr/lib/libportmidi_s.a
mv $PKG/usr/bin/test $PKG/usr/bin/portmiditest
# Pinched from fc spec
-install -m 644 pm_common/pmutil.h $PKG/usr/include
+install -m 0644 -D pm_common/pmutil.h $PKG/usr/include
mkdir -p $PKG/usr/share/applications
-install -m 644 $CWD/pmdefaults.desktop $PKG/usr/share/applications
+install -m 0644 -D $CWD/pmdefaults.desktop $PKG/usr/share/applications/pmdefaults.desktop
mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
-install -m 644 pm_java/pmdefaults/pmdefaults-icon.png $PKG/usr/share/icons/hicolor/128x128/apps
+install -m 0644 -D pm_java/pmdefaults/pmdefaults-icon.png \
+ $PKG/usr/share/icons/hicolor/128x128/apps/pmdefaults-icon.png
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -120,6 +120,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/portmidi/portmidi.info b/audio/portmidi/portmidi.info
index 082988d8ebf0..1e6752845a14 100644
--- a/audio/portmidi/portmidi.info
+++ b/audio/portmidi/portmidi.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="David Woodfall"
EMAIL="info@davidwoodfall.co.uk"
-APPROVED="Erik Hanson"
+APPROVED="rworkman"