]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
added darkice
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 4 Oct 2006 01:25:54 +0000 (01:25 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 4 Oct 2006 01:25:54 +0000 (01:25 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@306 370017ae-e619-0410-ac65-c121f96126d4

darkice/darkice-0.17.1-x86_64.diff [new file with mode: 0644]
darkice/darkice.SlackBuild [new file with mode: 0755]
darkice/slack-required [new file with mode: 0644]
ssmtp/ssmtp.SlackBuild
wxgtk/wxGTK.SlackBuild

diff --git a/darkice/darkice-0.17.1-x86_64.diff b/darkice/darkice-0.17.1-x86_64.diff
new file mode 100644 (file)
index 0000000..3b183ee
--- /dev/null
@@ -0,0 +1,95 @@
+diff -Naur darkice-0.17.1.orig/configure darkice-0.17.1/configure
+--- darkice-0.17.1.orig/configure      2006-05-19 10:08:33.000000000 -0300
++++ darkice-0.17.1/configure   2006-10-03 22:23:56.000000000 -0300
+@@ -879,23 +879,23 @@
+   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+   --with-lame             use lame for encoding mp3 streams yes
+   --with-lame-prefix=DIR  alternate location for lame /usr
+-                              look for libraries in LAME-PREFIX/lib,
++                              look for libraries in LAME-PREFIX/lib64,
+                               for headers in LAME-PREFIX/include
+   --with-vorbis           use Ogg Vorbis for encoding vorbis streams yes
+   --with-vorbis-prefix=DIR    alternate location for vorbis /usr
+-                              look for libraries in VORBIS-PREFIX/lib,
++                              look for libraries in VORBIS-PREFIX/lib64,
+                               for headers in VORBIS-PREFIX/include
+   --with-faac             use faac for encoding AAC streams yes
+   --with-faac-prefix=DIR  alternate location for faac /usr
+-                              look for libraries in FAAC-PREFIX/lib,
++                              look for libraries in FAAC-PREFIX/lib64,
+                               for headers in FAAC-PREFIX/include
+   --with-twolame             use twolame for encoding MP2 streams yes
+   --with-twolame-prefix=DIR  alternate location for twolame /usr
+-                              look for libraries in TWOLAME-PREFIX/lib,
++                              look for libraries in TWOLAME-PREFIX/lib64,
+                               for headers in TWOLAME-PREFIX/include
+   --with-alsa             use ALSA sound system yes
+   --with-alsa-prefix=DIR      alternate location for ALSA /usr
+-                              look for libraries in ALSA-PREFIX/lib,
++                              look for libraries in ALSA-PREFIX/lib64,
+                               for headers in ALSA-PREFIX/include
+   --with-jack             use JACK audio server yes
+   --with-debug            enable debug mode no
+@@ -5975,7 +5975,7 @@
+   LAME_LIB_LOC=
+     for FILE in libmp3lame.a; do
+-    for DIR in ${CONFIG_LAME_PREFIX} ${CONFIG_LAME_PREFIX}/lib ; do
++    for DIR in ${CONFIG_LAME_PREFIX} ${CONFIG_LAME_PREFIX}/lib64 ; do
+             if test ".LAME_LIB_LOC"="." && test -f "$DIR/$FILE"; then
+         LAME_LIB_LOC=$DIR
+       fi
+@@ -6046,7 +6046,7 @@
+   OGG_LIB_LOC=
+     for FILE in libogg.a; do
+-    for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/lib ; do
++    for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/lib64 ; do
+             if test ".OGG_LIB_LOC"="." && test -f "$DIR/$FILE"; then
+         OGG_LIB_LOC=$DIR
+       fi
+@@ -6072,7 +6072,7 @@
+   VORBIS_LIB_LOC=
+     for FILE in libvorbis.a; do
+-    for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/lib ; do
++    for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/lib64 ; do
+             if test ".VORBIS_LIB_LOC"="." && test -f "$DIR/$FILE"; then
+         VORBIS_LIB_LOC=$DIR
+       fi
+@@ -6098,7 +6098,7 @@
+   VORBISENC_LIB_LOC=
+     for FILE in libvorbisenc.a; do
+-    for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/lib ; do
++    for DIR in ${CONFIG_VORBIS_PREFIX} ${CONFIG_VORBIS_PREFIX}/lib64 ; do
+             if test ".VORBISENC_LIB_LOC"="." && test -f "$DIR/$FILE"; then
+         VORBISENC_LIB_LOC=$DIR
+       fi
+@@ -6173,7 +6173,7 @@
+   FAAC_LIB_LOC=
+     for FILE in libfaac.a; do
+-    for DIR in ${CONFIG_FAAC_PREFIX} ${CONFIG_FAAC_PREFIX}/lib ; do
++    for DIR in ${CONFIG_FAAC_PREFIX} ${CONFIG_FAAC_PREFIX}/lib64 ; do
+             if test ".FAAC_LIB_LOC"="." && test -f "$DIR/$FILE"; then
+         FAAC_LIB_LOC=$DIR
+       fi
+@@ -6244,7 +6244,7 @@
+   TWOLAME_LIB_LOC=
+     for FILE in libtwolame.a; do
+-    for DIR in ${CONFIG_TWOLAME_PREFIX} ${CONFIG_TWOLAME_PREFIX}/lib ; do
++    for DIR in ${CONFIG_TWOLAME_PREFIX} ${CONFIG_TWOLAME_PREFIX}/lib64 ; do
+             if test ".TWOLAME_LIB_LOC"="." && test -f "$DIR/$FILE"; then
+         TWOLAME_LIB_LOC=$DIR
+       fi
+@@ -6325,7 +6325,7 @@
+   ALSA_LIB_LOC=
+     for FILE in libasound.so; do
+-    for DIR in ${CONFIG_ALSA_PREFIX} ${CONFIG_ALSA_PREFIX}/lib ; do
++    for DIR in ${CONFIG_ALSA_PREFIX} ${CONFIG_ALSA_PREFIX}/lib64 ; do
+             if test ".ALSA_LIB_LOC"="." && test -f "$DIR/$FILE"; then
+         ALSA_LIB_LOC=$DIR
+       fi
diff --git a/darkice/darkice.SlackBuild b/darkice/darkice.SlackBuild
new file mode 100755 (executable)
index 0000000..434f29f
--- /dev/null
@@ -0,0 +1,125 @@
+#!/bin/bash
+#
+# slackbuild script for darkice
+# by rhatto at riseup.net
+#
+
+if [ -s "slack-required" ]; then
+  echo Recomended and required packages for building darkice are:
+  cat slack-required | sed -e 's/^/\t/'
+  if [ "$INTERACT" != "no" ]; then
+    echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER.
+    read crap
+  else
+    echo Sleeping 3 seconds...
+    sleep 3
+  fi
+fi
+
+CWD="`pwd`"
+
+if [ -f "/etc/slackbuildrc" ]; then
+  source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+  source ~/.slackbuildrc
+fi
+
+# default settings
+PACKAGE="darkice"
+ARCH=${ARCH:=i486}
+VERSION=${VERSION:=0.17.1}
+BUILD=${BUILD:=1rha}
+SRC_DIR=${SRC:=$CWD}
+TMP=${TMP:=/tmp}
+REPOS=${REPOS:=$TMP}
+
+if [ "$ARCH" == "x86_64" ]; then
+  export LDFLAGS="-L/lib64 -L/usr/lib64"
+  LIBDIR=/usr/lib64
+else
+  LIBDIR=/usr/lib
+fi
+
+RTOOL="wget"
+PACKAGE_EXT="gz"
+SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT"
+URL="http://easynews.dl.sourceforge.net/sourceforge/darkice/$SRC"
+
+SRC_DIR="$SRC_DIR/$PACKAGE"
+mkdir -p $SRC_DIR
+
+if [ "$PACKAGE_EXT" == "bz2" ]; then
+  tarflag="j"
+else
+  tarflag="z"
+fi
+
+if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
+  wget "$URL" -O "$SRC_DIR/$SRC"
+fi
+
+TMP="$TMP/$PACKAGE"
+rm -rf $TMP
+mkdir -p $TMP
+cd $TMP
+
+tar xvf$tarflag $SRC_DIR/$SRC
+cd $PACKAGE-$VERSION
+
+if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then
+  patch -p1 < $CWD/$PACKAGE-$VERSION.diff
+fi
+
+if [ "$ARCH" == "x86_64" ] && [ -f "$CWD/$PACKAGE-$VERSION-x86_64.diff" ]; then
+  patch -p1 < $CWD/$PACKAGE-$VERSION-x86_64.diff
+fi
+
+./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR 
+make
+make DESTDIR=$TMP/package-$PACKAGE install
+
+CWD="`pwd`"
+
+cd $TMP/package-$PACKAGE
+
+find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
+mkdir install
+cat << EOF > install/slack-desc
+# 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-----------------------------------------------------|
+darkice: darkice (an icecast and shoutcast streaming originator)
+darkice:
+darkice: DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer.
+darkice: It takes audio input from a sound card, encodes it into mp3 and/or
+darkice: Ogg Vorbis, and sends the mp3 stream to one or more IceCast and/or
+darkice: ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2
+darkice: servers.
+darkice:
+darkice:
+darkice:
+darkice:
+EOF
+
+# docs
+mkdir -p usr/doc/$PACKAGE-$VERSION
+
+for file in AUTHORS COPYING ChangeLog FAQ INSTALL INSTALL.lame INSTALL.vorbis NEWS README TODO; do
+  cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/
+done
+
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+  rm -rf $TMP
+fi
+
diff --git a/darkice/slack-required b/darkice/slack-required
new file mode 100644 (file)
index 0000000..f45dab3
--- /dev/null
@@ -0,0 +1,2 @@
+lame
+twolame
index 13fec9af8d18ec1fb99eccc3f916d00a90068b71..29d286402714886ed306f93df55274ca694084e1 100755 (executable)
@@ -47,10 +47,10 @@ if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
   wget "$URL" -O "$SRC_DIR/$SRC"
 fi
 
+TMP="$TMP/$PACKAGE"
+rm -rf $TMP
+mkdir -p $TMP/package-$PACKAGE
 cd $TMP
-rm -rf package-$PACKAGE
-mkdir package-$PACKAGE
-cd package-$PACKAGE
 
 tar xvf$tarflag $SRC_DIR/$SRC
 cd $PACKAGE-$VERSION
@@ -59,10 +59,7 @@ make
 
 CWD="`pwd`"
 
-TMP="$TMP/$PACKAGE"
-rm -rf $TMP
-mkdir -p $TMP
-cd $TMP
+cd $TMP/package-$PACKAGE
 
 mkdir -p usr/{sbin,man/man8}
 mkdir -p etc/ssmtp
index 21fa1858cd63382f529a600bcf533136d6299147..4836dac5397c5a81cce4e3d8e72773b1358c9a20 100755 (executable)
@@ -4,9 +4,9 @@
 # by rafael at riseup.net
 #
 
-if [ -s "wxGTK.slack-required" ]; then
+if [ -s "slack-required" ]; then
   echo Recomended and required packages for building wxGTK are:
-  cat wxGTK.slack-required | sed -e 's/^/\t/'
+  cat slack-required | sed -e 's/^/\t/'
   if [ "$INTERACT" != "no" ]; then
     echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER.
     read crap