summaryrefslogtreecommitdiff
path: root/multimedia/mplayerxp/files/get-feat
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-10-01 14:04:20 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-10-01 14:04:20 +0000
commitce216f3e59f420584434222cf1c86cc826bccbb9 (patch)
tree1dfb775ea779cba0648260ed0d49de560d4b6254 /multimedia/mplayerxp/files/get-feat
parento add the codecs from mplayer-codecs, this port will hold all win32 (diff)
o update to 0.50 pre 1
o add script to "autodetect" some machine features such as 3DNow! o it is no longer limitted to i386 arch (e.g., alpha, hurray :) o make it CFLAGS safe o add several WITH{,OUT} options o depend on win32-codecs as of rev 1.12 win32-codecs/Makefile instead of mplayer-codecs o Makefile style: rearrange the file a bit to make it ports' style compliant (easier to maintain) o simplify targets with for/endfor constructs in post-install o due to new features, update: COMMENT, DESCR, PKGMESSAGE o fix all URI to include a trailing / o support NOPORTDOCS in PLIST Submitted by: MAINTAINER et al
Notes
Notes: svn path=/head/; revision=48312
Diffstat (limited to 'multimedia/mplayerxp/files/get-feat')
-rw-r--r--multimedia/mplayerxp/files/get-feat18
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/mplayerxp/files/get-feat b/multimedia/mplayerxp/files/get-feat
new file mode 100644
index 000000000000..07deea5e6107
--- /dev/null
+++ b/multimedia/mplayerxp/files/get-feat
@@ -0,0 +1,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);