#!/bin/sh # # Script to turn the unix version of the "8hz" mp3 encoder into # a BeOS version with a graphical userinterface. # requirements: # - BeOS (tested on R4 PPC and x86) # - 8hz sourcecode: find the file 8hz-mp3.src.v02b.tar.gz (283000 bytes) # on the internet. # - liblayout library and headerfiles: http://www.xs4all.nl/~marcone/be.html # - the 'patch' command from GeekGadgets (ftp.ninemoons.com). Use version # 2.4, as version 2.5 will crash. 2.4 can be found in the Amiga archives. # - this script and the accompanying "8hz-diff" file. # # installation: # -install liblayout, liblayout headerfiles and the "patch" command # - place "8hz-diff" and "8hz-mp3.src.v02b.tar.gz" in the same # directory as this script, then run this script. # SRC=8hz-mp3.src.v02b.tar.gz if [ $TTYPE != UTF8 ] then echo 'Please set Text encoding to UTF8, and restart your MuTerm' exit fi echo 'liblayout のヘッダファイルの場所を指定してください' echo '(Tracker を使用してこのウィンドウにフォルダをドラッグ&ドロップすることもできます)' read LIBLAYOUTHEADERS if [ ! -f $LIBLAYOUTHEADERS/layout.h ] then echo 'layout.h が見つからないので処理を中止します' exit fi echo liblayout のヘッダファイルは $LIBLAYOUTHEADERS にあります echo LIBLAYOUT=/boot/home/config/liblayout.so if [ ! -f $LIBLAYOUT ] then echo 'リンクする liblayout.so の場所を指定してください' echo '(Tracker を使用してこのウィンドウにフォルダをドラッグ&ドロップすることもできます)' read LIBLAYOUT if [ ! -f $LIBLAYOUT ] then echo liblayout.so が $LIBLAYOUT に見つからないので処理を中止します exit fi fi echo liblayout.so は $LIBLAYOUT にあります echo if [ ! -f $SRC ] then echo $SRC が見つかりません exit fi echo 8hz-archive を展開しています tar zxf $SRC cd 8hz-mp3 mkdir 8hz-src mv *.c *.h 8hz-src rm hg.mp3 patch -p 1 <../8hz-diff cd 8hz-src if [ "$BE_C_COMPILER" = "gcc" ] then make LLHEADERS=$LIBLAYOUTHEADERS LLLINK=$(dirname $LIBLAYOUT) CC=$BE_C_COMPILER LIBFLAGS="-lbe -ltracker -lmedia" else make LLHEADERS=$LIBLAYOUTHEADERS LLLINK=$(dirname $LIBLAYOUT) CC=$BE_C_COMPILER LIBFLAGS="-export pragma" fi /system/Tracker .