summaryrefslogtreecommitdiff
path: root/multimedia/mplayerxp/files/install-user
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2001-08-22 06:11:11 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2001-08-22 06:11:11 +0000
commitf0b0ed72c71f3f7e38e20b02ca52dbc574a7d0a3 (patch)
tree226de23ce10fff1db94c2d353954e621dc033840 /multimedia/mplayerxp/files/install-user
parentNew port: (diff)
New Port:
This is the port of mplayer, a project which has the effort to become a very stable and useful movie player. It is based on the windows codec compilation and provides the ability to play many formats in a very good quality without much CPU comsumption. WWW: http://mplayer.sourceforge.net PR: 29944 Submitted by: riggs@f113.hadiko.de
Diffstat (limited to 'multimedia/mplayerxp/files/install-user')
-rw-r--r--multimedia/mplayerxp/files/install-user38
1 files changed, 38 insertions, 0 deletions
diff --git a/multimedia/mplayerxp/files/install-user b/multimedia/mplayerxp/files/install-user
new file mode 100644
index 000000000000..8f0dda4a6adf
--- /dev/null
+++ b/multimedia/mplayerxp/files/install-user
@@ -0,0 +1,38 @@
+#This perl script links the codec config file
+#and the fonts dir to the user's home dir.
+
+if (-e "$ENV{HOME}/.mplayer/")
+{
+ print "Sorry, you should execute this target without having a .mplayer directory in your homedir.\n";
+ exit 1;
+}
+
+#Determining location of fonts:
+
+@pkg=`pkg_info -Lx mplayer-fonts`;
+print "$prefix[3]";
+$prefix=$pkg[3];
+$prefix=~ s/(.+mplayer).*/$1/;
+chop $prefix;
+
+print "You may choose any of the available language sets:\n\n";
+print "European fonts (e.g. dutch, french, german...) : e\n";
+print "Cyrillic fonts : c\n";
+print "Russian fonts: r\n";
+
+print "Your decision? ";
+chomp ($lang=<STDIN>);
+print "\n";
+
+system "mkdir $ENV{HOME}/.mplayer";
+if ($lang eq "c")
+{
+ system "ln -s $prefix/fonts/cyrillic/ $ENV{HOME}/.mplayer/font";
+}
+elsif ($lang eq "r")
+{
+ system "ln -s $prefix/fonts/koi8r/ $ENV{HOME}/.mplayer/font";
+}
+else {system "ln -s $prefix/fonts/iso/ $ENV{HOME}/.mplayer/font"};
+
+system "ln -s $prefix/codecs.conf $ENV{HOME}/.mplayer/codecs.conf";