2003-07-13 23:27:09 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2003-07-25 16:59:22 +02:00
|
|
|
. $stdenv/setup || exit 1
|
2003-07-13 23:27:09 +02:00
|
|
|
|
|
|
|
tar xvfz $src || exit 1
|
|
|
|
cd sdf2-* || exit 1
|
2003-07-28 23:15:03 +02:00
|
|
|
./configure --prefix=$out --with-aterm=$aterm || exit 1
|
2003-07-13 23:27:09 +02:00
|
|
|
make || exit 1
|
|
|
|
make install || exit 1
|
2003-08-25 15:24:48 +02:00
|
|
|
|
|
|
|
# Replace the call to getopt in sdf2table with an absolute path (so that the
|
|
|
|
# users of sdf2table don't have to explicitly declare getopt as an input).
|
|
|
|
sdf2table=$out/bin/sdf2table
|
|
|
|
sed s^getopt^$getopt/bin/getopt^ < $sdf2table > $sdf2table.tmp || exit 1
|
|
|
|
mv $sdf2table.tmp $sdf2table || exit 1
|
|
|
|
chmod +x $sdf2table || exit 1
|