Monkey's Audio Codec

Postate qui se avete consigli per migliorare i pacchetti disponibili in questo sito o se avete problemi con installazione, funzionamento o altro.

Moderatore: Staff

Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
Avatar utente
syaochan
Linux 3.x
Linux 3.x
Messaggi: 659
Iscritto il: dom 9 mag 2004, 0:00
Nome Cognome: Christian
Slackware: current 64
Kernel: 2.6.38.7
Desktop: KDE 4.5.5
Contatta:

Monkey's Audio Codec

Messaggio da syaochan »

Ciao, una volta nel repository non c'era anche il pacchetto in oggetto?
Comunque, l'ho appena pacchettizzato ma ho un problemino durante l'installazione: il contenuto di slack-desc non viene visualizzato... questo è lo slackbuild

Codice: Seleziona tutto

#!/bin/sh
# Monkey's Audio Codec
# http://members.iinet.net.au/~aidanjm/mac-3.99-u4-b5.tar.gz
# Packager syaochan (syaochan@hotmail.com)
# http://www.slacky.eu

CWD=`pwd`
TMP=${TMP:-/tmp/tgz}
PKG=$TMP/package-mac
NAME=mac
VERSION=3.99-u4-b5
ARCH=${ARCH:-i686}
BUILD=1sy

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O3 -march=i686 -mtune=i686 -pipe"
elif [ "$ARCH" = "athlon64" ]; then
  SLKCFLAGS="-O2 -march=athlon64 -pipe"
elif [ "$ARCH" = "athlonxp" ]; then
  SLKCFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
fi

if [ ! -d $TMP ]; then
 mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
 mkdir -p $PKG
fi

cd $TMP
tar xvzf $CWD/$NAME-$VERSION.tar.gz
cd $NAME-$VERSION
find . -perm 777 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 555 -exec chmod 755 {} \;
find . -perm 666 -exec chmod 644 {} \;
find . -perm 664 -exec chmod 644 {} \;
find . -perm 444 -exec chmod 644 {} \;
chown -R root.root .

CFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
--enable-assembly=yes \
$ARCH-slackware-linux
make || exit
make install DESTDIR=$PKG

cd $TMP/$NAME-$VERSION
mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS INSTALL README TODO \
 $PKG/usr/doc/$NAME-$VERSION
( cd $PKG
  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 -p $PKG/install
cat << EOF | tee $PKG/usr/doc/$NAME-$VERSION/slack-desc > $PKG/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------------------------------------------------|
mac: 
mac: Monkey’s Audio Codec
mac: 
mac: Monkey’s Audio is a fast and easy way to compress digital music.
mac: Unlike traditional methods such as mp3, ogg, or lqt that
mac: permanently discard quality to save space, Monkey’s Audio only 
mac: makes perfect, bit-for-bit copies of your music.  That means it 
mac: always sounds perfect – exactly the same as the original.
mac: 
mac: http://www.monkeysaudio.com/
mac: 
EOF

cd $CWD
cat $NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION
cd $PKG
# requiredbuilder -v -y -s $CWD $PKG
makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz

if [ "$1" = "--cleanup" ]; then
  rm -rf $TMP/$NAME-$VERSION
  rm -rf $PKG
fi
e questo è il file slack-desc risultante

Codice: Seleziona tutto

# 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------------------------------------------------|
mac: 
mac: Monkey’s Audio Codec
mac: 
mac: Monkey’s Audio is a fast and easy way to compress digital music.
mac: Unlike traditional methods such as mp3, ogg, or lqt that
mac: permanently discard quality to save space, Monkey’s Audio only 
mac: makes perfect, bit-for-bit copies of your music.  That means it 
mac: always sounds perfect – exactly the same as the original.
mac: 
mac: http://www.monkeysaudio.com/
mac: 
Cosa sbaglio?

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

Io il titolo la descrizione breve del pacchetto "Monkey’s Audio Codec" in questo caso, la metto subito sotto gli "handy-ruler", poi non so se sia questo il problema. Comunque fai benissimo a pacchettizzarlo. Io stavo usando una versione per la 11.0, per sentire un album in .APE più un plugin per XMMS.

Codice: Seleziona tutto

# 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------------------------------------------------|
mac: Monkey’s Audio Codec
mac:
mac: Monkey’s Audio is a fast and easy way to compress digital music.
mac: Unlike traditional methods such as mp3, ogg, or lqt that
mac: permanently discard quality to save space, Monkey’s Audio only
mac: makes perfect, bit-for-bit copies of your music.  That means it
mac: always sounds perfect – exactly the same as the original.
mac:
mac:
mac: http://www.monkeysaudio.com/
mac: 

Avatar utente
syaochan
Linux 3.x
Linux 3.x
Messaggi: 659
Iscritto il: dom 9 mag 2004, 0:00
Nome Cognome: Christian
Slackware: current 64
Kernel: 2.6.38.7
Desktop: KDE 4.5.5
Contatta:

Messaggio da syaochan »

Niente da fare, non funziona ugualmente

Codice: Seleziona tutto

Installing package mac-3.99-u4-b5-i686-1sy...
PACKAGE DESCRIPTION:
Executing install script for mac-3.99-u4-b5-i686-1sy...
Un vero mistero :?

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

syaochan ha scritto:Niente da fare, non funziona ugualmente

Codice: Seleziona tutto

Installing package mac-3.99-u4-b5-i686-1sy...
PACKAGE DESCRIPTION:
Executing install script for mac-3.99-u4-b5-i686-1sy...
Un vero mistero :?
Ecco l'errore ci sono 5 segni "-". Cambia il nome del pacchetto in

mac-3.99-u4_b5-i686-1sy

Avatar utente
syaochan
Linux 3.x
Linux 3.x
Messaggi: 659
Iscritto il: dom 9 mag 2004, 0:00
Nome Cognome: Christian
Slackware: current 64
Kernel: 2.6.38.7
Desktop: KDE 4.5.5
Contatta:

Messaggio da syaochan »

Grande! Non ci sarei mai arrivato :oops:
Ho dovuto toglierne due però di "-", e chiamare il pacchetto mac-3.99_u4_b5-i686-1sy.tgz
Grazie, mistero risolto! :D

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

Manda il pacchetto a Loris. Non c'è per la 12.0. Visto che ti ci trovi recompila anche XMMS-mac http://www.slacky.eu/index.php?option=c ... 8&Itemid=2
;)

Avatar utente
syaochan
Linux 3.x
Linux 3.x
Messaggi: 659
Iscritto il: dom 9 mag 2004, 0:00
Nome Cognome: Christian
Slackware: current 64
Kernel: 2.6.38.7
Desktop: KDE 4.5.5
Contatta:

Messaggio da syaochan »

Però su sourceforge i sorgenti di xmms-mac non ci sono più, ho usato quelli che erano qui nel repository.
Intanto posto i link qui, poi li mando anche a Loris:

mac-3.99_u4_b5-i686-1sy.tgz
xmms-mac-0.3.1-i486-1as.tgz

SlackBuild e slack-required sono dentro i pacchetti in usr/doc/...

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

Perfetto adesso li provo e se va tutto bene li mando a Loris. ;)

Avatar utente
syaochan
Linux 3.x
Linux 3.x
Messaggi: 659
Iscritto il: dom 9 mag 2004, 0:00
Nome Cognome: Christian
Slackware: current 64
Kernel: 2.6.38.7
Desktop: KDE 4.5.5
Contatta:

Messaggio da syaochan »

Occhio che mac dipende da yasm (che è nel repository di Slacky) perché l'ho compilato con --enable-assembly=yes

Avatar utente
gohanz
Staff
Staff
Messaggi: 5832
Iscritto il: mar 30 nov 2004, 0:00

Messaggio da gohanz »

A me funziona benissimo anche senza yasm. :oops:

Avatar utente
syaochan
Linux 3.x
Linux 3.x
Messaggi: 659
Iscritto il: dom 9 mag 2004, 0:00
Nome Cognome: Christian
Slackware: current 64
Kernel: 2.6.38.7
Desktop: KDE 4.5.5
Contatta:

Messaggio da syaochan »

Boh, forse serviva solo in compilazione.
Anche se passavo quell'opzione al configure l'assembly era disabilitato, poi ho installato yasm ed è andato.

Avatar utente
syaochan
Linux 3.x
Linux 3.x
Messaggi: 659
Iscritto il: dom 9 mag 2004, 0:00
Nome Cognome: Christian
Slackware: current 64
Kernel: 2.6.38.7
Desktop: KDE 4.5.5
Contatta:

Messaggio da syaochan »

EDIT: Ops post doppio :oops:

Rispondi