ports/135347: New port: audio/liblastfm

Matt Tosto datahead4 at gmail.com
Mon Jun 8 04:00:12 UTC 2009


>Number:         135347
>Category:       ports
>Synopsis:       New port: audio/liblastfm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 08 04:00:11 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Matt Tosto
>Release:        
>Organization:
>Environment:
>Description:
The Amarok development team is working to externalize their last.fm libraries into liblastfm.  It is anticipated that this will become an external build dependency with the next minor Amarok rev to version 2.1.1.

The attached shell archive builds cleanly in a tinderbox on i386, but I have not linked it with any programs to see if it behaves as designed.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.6.3).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `#!/bin/sh' line above, then type `sh FILE'.
#
lock_dir=_sh08350
# Made on 2009-06-07 22:50 CDT by <matt at office-desktop>.
# Source directory was `/home/matt/tmp/amarok2'.
#
# Existing files will *not* be overwritten, unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    184 -rw-r--r-- liblastfm/pkg-descr
#    204 -rw-r--r-- liblastfm/distinfo
#    974 -rw-r--r-- liblastfm/Makefile
#    767 -rw-r--r-- liblastfm/pkg-plist
#    497 -rw-r--r-- liblastfm/files/patch-configure
#    184 -rw-r--r-- liblastfm/pkg-descr
#    204 -rw-r--r-- liblastfm/distinfo
#    974 -rw-r--r-- liblastfm/Makefile
#    767 -rw-r--r-- liblastfm/pkg-plist
#    497 -rw-r--r-- liblastfm/files/patch-configure
#    497 -rw-r--r-- liblastfm/files/patch-configure
#
MD5SUM=${MD5SUM-md5sum}
f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
test -n "${f}" && md5check=true || md5check=false
${md5check} || \
  echo 'Note: not verifying md5sums.  Consider installing GNU coreutils.'
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    case `$dir/gettext --version 2>&1 | sed 1q` in
      *GNU*) gettext_dir=$dir ;;
    esac
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
then if (echo -n test; echo 1,2,3) | grep n >/dev/null
     then shar_n= shar_c='
'
     else shar_n=-n shar_c= ; fi
else shar_n= shar_c='\c' ; fi
f=shar-touch.$$
st1=200112312359.59
st2=123123592001.59
st2tr=123123592001.5 # old SysV 14-char limit
st3=1231235901

if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
   test ! -f ${st1} && test -f ${f}; then
  shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'

elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
   test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'

elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
   test ! -f ${st3} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$2 "$8"'

else
  shar_touch=:
  echo
  ${echo} 'WARNING: not restoring timestamps.  Consider getting and'
  ${echo} 'installing GNU `touch'\'', distributed in GNU coreutils...'
  echo
fi
rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
#
if test ! -d ${lock_dir}
then : ; else ${echo} 'lock directory '${lock_dir}' exists'
  exit 1
fi
if mkdir ${lock_dir}
then ${echo} 'x - created lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to create lock directory `'${lock_dir}\''.'
  exit 1
fi
# ============= liblastfm/pkg-descr ==============
if test ! -d 'liblastfm'; then
  mkdir 'liblastfm'
if test $? -eq 0
then ${echo} 'x - created directory `liblastfm'\''.'
else ${echo} 'x - failed to create directory `liblastfm'\''.'
  exit 1
fi
fi
if test -f 'liblastfm/pkg-descr' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/pkg-descr (file already exists)'
else
${echo} 'x - extracting liblastfm/pkg-descr (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/pkg-descr' &&
liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It depends on Qt 4.4.
X
WWW: http://github.com/mxcl/liblastfm/tree/master
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/pkg-descr'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/pkg-descr'
if test $? -ne 0
then ${echo} 'restore of liblastfm/pkg-descr failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/pkg-descr: MD5 check failed'
       ) << SHAR_EOF
74be7447aab4583b66956b1c27bc9346  liblastfm/pkg-descr
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/pkg-descr'` -ne 184 && \
  ${echo} 'restoration warning:  size of liblastfm/pkg-descr is not 184'
  fi
fi
# ============= liblastfm/distinfo ==============
if test ! -d 'liblastfm'; then
  mkdir 'liblastfm'
if test $? -eq 0
then ${echo} 'x - created directory `liblastfm'\''.'
else ${echo} 'x - failed to create directory `liblastfm'\''.'
  exit 1
fi
fi
if test -f 'liblastfm/distinfo' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/distinfo (file already exists)'
else
${echo} 'x - extracting liblastfm/distinfo (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/distinfo' &&
MD5 (liblastfm-0.2.1.tar.bz2) = c849a5122f833090184c1a496350dcbc
SHA256 (liblastfm-0.2.1.tar.bz2) = a8f816c5b1c624052912afd06351bbb29f876339ee216f5f2fec81740f09fdf9
SIZE (liblastfm-0.2.1.tar.bz2) = 86083
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/distinfo'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/distinfo'
if test $? -ne 0
then ${echo} 'restore of liblastfm/distinfo failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/distinfo: MD5 check failed'
       ) << SHAR_EOF
0915cd3f232dde706ca4a73e407a0cd1  liblastfm/distinfo
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/distinfo'` -ne 204 && \
  ${echo} 'restoration warning:  size of liblastfm/distinfo is not 204'
  fi
fi
# ============= liblastfm/Makefile ==============
if test -f 'liblastfm/Makefile' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/Makefile (file already exists)'
else
${echo} 'x - extracting liblastfm/Makefile (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/Makefile' &&
# New ports collection makefile for:	liblastfm
# Date created:				Wed Jan 1 00:48:58 EST 2006
# Whom:					Matt Tosto <datahead4 at gmail.com>
#
# $FreeBSD: ports/audio/liblastfm/Makefile,v 1.18 2008/06/06 13:06:51 edwin Exp $
#
X
PORTNAME=	liblastfm
PORTVERSION=	0.2.1
CATEGORIES=	audio
MASTER_SITES=	http://cdn.last.fm/src/
X
MAINTAINER=	datahead4 at gmail.com
COMMENT=	Collection of libraries to help integrate Last.fm services
X
LIB_DEPENDS=	samplerate.1:${PORTSDIR}/audio/libsamplerate \
X	fftw3f.5:${PORTSDIR}/math/fftw3-float \
X	mad.2:${PORTSDIR}/audio/libmad
BUILD_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
X
USE_BZIP2=	yes
USE_RUBY=	yes
USE_GMAKE=	yes
USE_QT_VER=	4
QT_COMPONENTS=  corelib xml network sql gui qtestlib \
X	qmake_build moc_build rcc_build uic_build
HAS_CONFIGURE=	yes
X
USE_LDCONFIG=	yes
X
post-extract:
X	${FIND} ${WRKSRC}/admin -type f | ${XARGS} \
X		 ${REINPLACE_CMD} -e 's|\#\!\/usr\/bin\/ruby|\#\!\/usr\/local\/bin\/ruby|'
X
X.include <bsd.port.mk>
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/Makefile'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/Makefile'
if test $? -ne 0
then ${echo} 'restore of liblastfm/Makefile failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/Makefile: MD5 check failed'
       ) << SHAR_EOF
d6898fd67d4fde66a84e946910dcdd72  liblastfm/Makefile
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/Makefile'` -ne 974 && \
  ${echo} 'restoration warning:  size of liblastfm/Makefile is not 974'
  fi
fi
# ============= liblastfm/pkg-plist ==============
if test -f 'liblastfm/pkg-plist' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/pkg-plist (file already exists)'
else
${echo} 'x - extracting liblastfm/pkg-plist (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/pkg-plist' &&
include/lastfm/UrlBuilder
include/lastfm/Fingerprint
include/lastfm/CompleteFingerprint
include/lastfm/RadioStation
include/lastfm/RadioTuner
include/lastfm/Audioscrobbler
include/lastfm/Scrobble
include/lastfm/ScrobblePoint
include/lastfm/Track
include/lastfm/MutableTrack
include/lastfm/Mbid
include/lastfm/Artist
include/lastfm/Album
include/lastfm/FingerprintId
include/lastfm/Playlist
include/lastfm/Tag
include/lastfm/User
include/lastfm/AuthenticatedUser
include/lastfm/Xspf
include/lastfm/WsAccessManager
include/lastfm/WsError
include/lastfm/WsKeys
include/lastfm/WsRequestBuilder
include/lastfm/WsReply
include/lastfm/WsDomElement
include/lastfm/global.h
lib/liblastfm.so
lib/liblastfm.so.0
lib/liblastfm.so.0.2
lib/liblastfm.so.0.2.1
@dirrm include/lastfm
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/pkg-plist'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/pkg-plist'
if test $? -ne 0
then ${echo} 'restore of liblastfm/pkg-plist failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/pkg-plist: MD5 check failed'
       ) << SHAR_EOF
9d61549b1b5dfa9c9f61bfd5cb70db70  liblastfm/pkg-plist
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/pkg-plist'` -ne 767 && \
  ${echo} 'restoration warning:  size of liblastfm/pkg-plist is not 767'
  fi
fi
# ============= liblastfm/files/patch-configure ==============
if test ! -d 'liblastfm/files'; then
  mkdir 'liblastfm/files'
if test $? -eq 0
then ${echo} 'x - created directory `liblastfm/files'\''.'
else ${echo} 'x - failed to create directory `liblastfm/files'\''.'
  exit 1
fi
fi
if test -f 'liblastfm/files/patch-configure' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/files/patch-configure (file already exists)'
else
${echo} 'x - extracting liblastfm/files/patch-configure (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/files/patch-configure' &&
--- configure.orig	2009-04-20 20:20:03.000000000 -0500
+++ configure	2009-04-20 21:12:07.000000000 -0500
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/local/bin/bash
X 
X source admin/utils.bash
X 
@@ -97,7 +97,7 @@
X         case `uname` in
X             Darwin)
X                 [ $STATIC_LINK_3RDPARTIES_ON_MAC ] || other_args="CONFIG -= app_bundle";;
-            Linux)
+            Linux | FreeBSD)
X                 other_args="CONFIG += warn_off";;
X             *) 
X                 #Windows, hopefullly
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/files/patch-configure'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/files/patch-configure'
if test $? -ne 0
then ${echo} 'restore of liblastfm/files/patch-configure failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/files/patch-configure: MD5 check failed'
       ) << SHAR_EOF
482739b865738782698f279bc66fd4dc  liblastfm/files/patch-configure
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/files/patch-configure'` -ne 497 && \
  ${echo} 'restoration warning:  size of liblastfm/files/patch-configure is not 497'
  fi
fi
# ============= liblastfm/pkg-descr ==============
if test -f 'liblastfm/pkg-descr' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/pkg-descr (file already exists)'
else
${echo} 'x - extracting liblastfm/pkg-descr (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/pkg-descr' &&
liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It depends on Qt 4.4.
X
WWW: http://github.com/mxcl/liblastfm/tree/master
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/pkg-descr'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/pkg-descr'
if test $? -ne 0
then ${echo} 'restore of liblastfm/pkg-descr failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/pkg-descr: MD5 check failed'
       ) << SHAR_EOF
74be7447aab4583b66956b1c27bc9346  liblastfm/pkg-descr
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/pkg-descr'` -ne 184 && \
  ${echo} 'restoration warning:  size of liblastfm/pkg-descr is not 184'
  fi
fi
# ============= liblastfm/distinfo ==============
if test -f 'liblastfm/distinfo' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/distinfo (file already exists)'
else
${echo} 'x - extracting liblastfm/distinfo (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/distinfo' &&
MD5 (liblastfm-0.2.1.tar.bz2) = c849a5122f833090184c1a496350dcbc
SHA256 (liblastfm-0.2.1.tar.bz2) = a8f816c5b1c624052912afd06351bbb29f876339ee216f5f2fec81740f09fdf9
SIZE (liblastfm-0.2.1.tar.bz2) = 86083
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/distinfo'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/distinfo'
if test $? -ne 0
then ${echo} 'restore of liblastfm/distinfo failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/distinfo: MD5 check failed'
       ) << SHAR_EOF
0915cd3f232dde706ca4a73e407a0cd1  liblastfm/distinfo
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/distinfo'` -ne 204 && \
  ${echo} 'restoration warning:  size of liblastfm/distinfo is not 204'
  fi
fi
# ============= liblastfm/Makefile ==============
if test -f 'liblastfm/Makefile' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/Makefile (file already exists)'
else
${echo} 'x - extracting liblastfm/Makefile (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/Makefile' &&
# New ports collection makefile for:	liblastfm
# Date created:				Wed Jan 1 00:48:58 EST 2006
# Whom:					Matt Tosto <datahead4 at gmail.com>
#
# $FreeBSD: ports/audio/liblastfm/Makefile,v 1.18 2008/06/06 13:06:51 edwin Exp $
#
X
PORTNAME=	liblastfm
PORTVERSION=	0.2.1
CATEGORIES=	audio
MASTER_SITES=	http://cdn.last.fm/src/
X
MAINTAINER=	datahead4 at gmail.com
COMMENT=	Collection of libraries to help integrate Last.fm services
X
LIB_DEPENDS=	samplerate.1:${PORTSDIR}/audio/libsamplerate \
X	fftw3f.5:${PORTSDIR}/math/fftw3-float \
X	mad.2:${PORTSDIR}/audio/libmad
BUILD_DEPENDS=	${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
X
USE_BZIP2=	yes
USE_RUBY=	yes
USE_GMAKE=	yes
USE_QT_VER=	4
QT_COMPONENTS=  corelib xml network sql gui qtestlib \
X	qmake_build moc_build rcc_build uic_build
HAS_CONFIGURE=	yes
X
USE_LDCONFIG=	yes
X
post-extract:
X	${FIND} ${WRKSRC}/admin -type f | ${XARGS} \
X		 ${REINPLACE_CMD} -e 's|\#\!\/usr\/bin\/ruby|\#\!\/usr\/local\/bin\/ruby|'
X
X.include <bsd.port.mk>
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/Makefile'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/Makefile'
if test $? -ne 0
then ${echo} 'restore of liblastfm/Makefile failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/Makefile: MD5 check failed'
       ) << SHAR_EOF
d6898fd67d4fde66a84e946910dcdd72  liblastfm/Makefile
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/Makefile'` -ne 974 && \
  ${echo} 'restoration warning:  size of liblastfm/Makefile is not 974'
  fi
fi
# ============= liblastfm/pkg-plist ==============
if test -f 'liblastfm/pkg-plist' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/pkg-plist (file already exists)'
else
${echo} 'x - extracting liblastfm/pkg-plist (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/pkg-plist' &&
include/lastfm/UrlBuilder
include/lastfm/Fingerprint
include/lastfm/CompleteFingerprint
include/lastfm/RadioStation
include/lastfm/RadioTuner
include/lastfm/Audioscrobbler
include/lastfm/Scrobble
include/lastfm/ScrobblePoint
include/lastfm/Track
include/lastfm/MutableTrack
include/lastfm/Mbid
include/lastfm/Artist
include/lastfm/Album
include/lastfm/FingerprintId
include/lastfm/Playlist
include/lastfm/Tag
include/lastfm/User
include/lastfm/AuthenticatedUser
include/lastfm/Xspf
include/lastfm/WsAccessManager
include/lastfm/WsError
include/lastfm/WsKeys
include/lastfm/WsRequestBuilder
include/lastfm/WsReply
include/lastfm/WsDomElement
include/lastfm/global.h
lib/liblastfm.so
lib/liblastfm.so.0
lib/liblastfm.so.0.2
lib/liblastfm.so.0.2.1
@dirrm include/lastfm
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/pkg-plist'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/pkg-plist'
if test $? -ne 0
then ${echo} 'restore of liblastfm/pkg-plist failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/pkg-plist: MD5 check failed'
       ) << SHAR_EOF
9d61549b1b5dfa9c9f61bfd5cb70db70  liblastfm/pkg-plist
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/pkg-plist'` -ne 767 && \
  ${echo} 'restoration warning:  size of liblastfm/pkg-plist is not 767'
  fi
fi
# ============= liblastfm/files/patch-configure ==============
if test ! -d 'liblastfm/files'; then
  mkdir 'liblastfm/files'
if test $? -eq 0
then ${echo} 'x - created directory `liblastfm/files'\''.'
else ${echo} 'x - failed to create directory `liblastfm/files'\''.'
  exit 1
fi
fi
if test -f 'liblastfm/files/patch-configure' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/files/patch-configure (file already exists)'
else
${echo} 'x - extracting liblastfm/files/patch-configure (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/files/patch-configure' &&
--- configure.orig	2009-04-20 20:20:03.000000000 -0500
+++ configure	2009-04-20 21:12:07.000000000 -0500
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/local/bin/bash
X 
X source admin/utils.bash
X 
@@ -97,7 +97,7 @@
X         case `uname` in
X             Darwin)
X                 [ $STATIC_LINK_3RDPARTIES_ON_MAC ] || other_args="CONFIG -= app_bundle";;
-            Linux)
+            Linux | FreeBSD)
X                 other_args="CONFIG += warn_off";;
X             *) 
X                 #Windows, hopefullly
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/files/patch-configure'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/files/patch-configure'
if test $? -ne 0
then ${echo} 'restore of liblastfm/files/patch-configure failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/files/patch-configure: MD5 check failed'
       ) << SHAR_EOF
482739b865738782698f279bc66fd4dc  liblastfm/files/patch-configure
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/files/patch-configure'` -ne 497 && \
  ${echo} 'restoration warning:  size of liblastfm/files/patch-configure is not 497'
  fi
fi
# ============= liblastfm/files/patch-configure ==============
if test -f 'liblastfm/files/patch-configure' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING liblastfm/files/patch-configure (file already exists)'
else
${echo} 'x - extracting liblastfm/files/patch-configure (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'liblastfm/files/patch-configure' &&
--- configure.orig	2009-04-20 20:20:03.000000000 -0500
+++ configure	2009-04-20 21:12:07.000000000 -0500
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/local/bin/bash
X 
X source admin/utils.bash
X 
@@ -97,7 +97,7 @@
X         case `uname` in
X             Darwin)
X                 [ $STATIC_LINK_3RDPARTIES_ON_MAC ] || other_args="CONFIG -= app_bundle";;
-            Linux)
+            Linux | FreeBSD)
X                 other_args="CONFIG += warn_off";;
X             *) 
X                 #Windows, hopefullly
SHAR_EOF
  (set 20 09 06 07 22 50 20 'liblastfm/files/patch-configure'; eval "$shar_touch") &&
  chmod 0644 'liblastfm/files/patch-configure'
if test $? -ne 0
then ${echo} 'restore of liblastfm/files/patch-configure failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'liblastfm/files/patch-configure: MD5 check failed'
       ) << SHAR_EOF
482739b865738782698f279bc66fd4dc  liblastfm/files/patch-configure
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'liblastfm/files/patch-configure'` -ne 497 && \
  ${echo} 'restoration warning:  size of liblastfm/files/patch-configure is not 497'
  fi
fi
if rm -fr ${lock_dir}
then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
  exit 1
fi
exit 0


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list