aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mplayerxp/files/get-feat
blob: 07deea5e610754eb305a0c83859fc33244f5c028 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#This perl script will determine the supported CPU features
#of this machine, so the build of the correct decode plugins
#will do automatically

@list=`cat /var/run/dmesg.boot|grep Feat`;
@features=("MMX","SSE","3DNow!","DSP");
open (INC,">$ENV{TEMPDIR}/Makefile.inc");
foreach $feature(@features)
{
  foreach $line(@list)
  {
    if ( $line =~ m/$feature/)
    {
      print INC "WITH_$feature = yes\n";
    }
  }
}
close (INC);