diff options
Diffstat (limited to 'academic/solfege/solfege.SlackBuild')
-rw-r--r-- | academic/solfege/solfege.SlackBuild | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/academic/solfege/solfege.SlackBuild b/academic/solfege/solfege.SlackBuild index 8939aa8926..4f1a9f7e6b 100644 --- a/academic/solfege/solfege.SlackBuild +++ b/academic/solfege/solfege.SlackBuild @@ -4,7 +4,7 @@ # Written by Phillip Warner <pc_warner@yahoo.com> PRGNAM=solfege -VERSION=${VERSION:-3.10.4} +VERSION=${VERSION:-3.14.4} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -16,10 +16,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -37,25 +40,30 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# fix Makefile.in so python scripts will compile correctly -patch -p1 < $CWD/Makefile.in_fix.patch - -# This Makes mpd imports work correctly in case python-mpd is installed -patch -p1 < $CWD/python-mpd_fix.patch +# Fix Makefile.in so it does not require txt2man +# We will copy over our own man page +patch -p1 < $CWD/Makefile.in_fix_${PRGNAM}${VERSION}.patch CFLAGS="$SLKCFLAGS" \ CPPFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --mandir=/usr/man CFLAGS="$SLKCFLAGS" make + +# We either had to install this or txt2man +cat $CWD/solfege.1 > $TMP/$PRGNAM-$VERSION/solfege.1 + make install DESTDIR=$PKG ( 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 + 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 ) ( cd $PKG/usr/man |