Pagina 1 di 1

Slackbuild e tgz per athlon

Inviato: mer 25 gen 2006, 1:20
da Harp
Lo so che è la mia ignoranza a suggerire questa domanda, ma che ci volete fare?
Ammazzarmi?!?
Naaaaa! :lol:

Uso molto spesso gli slackbuild presenti in area download e sostituisco le flags inserendo quelle per athlon:
TARGET=i486
...
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=sse,387 -mcpu=athlon-xp"


Però vorrei ottenere un nome pacchetto del tipo
amarok-1.3.8-athlon-xp-Hrp.tgz anzichè amarok-1.3.8-i486-Hrp.tgz

Inviato: mer 25 gen 2006, 1:36
da goldy
fai cosi'

Codice: Seleziona tutto

PKG=$TMP/package-amarok
NAME=amarok
VERSION=1.3.8
ARCH=athlon-xp
TARGET=i486
BUILD=1Hrp

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mcpu=i686"
elif [ "$ARCH" = "celeron" ]; then
  SLCKFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
elif [ "$ARCH" = "pentium3" ]; then
  SLCKFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
elif [ "$ARCH" = "pentium4" ]; then
  SLCKFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
elif [ "$ARCH" = "athlon-xp" ]; then
  SLKCFLAGS="-march=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=sse,387"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "amd64" ]; then
  SLKCFLAGS="-O3 -march=athlon64 -pipe -m64"
fi

..............