summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-08-22 06:11:11 +0000
committerdinoex <dinoex@FreeBSD.org>2001-08-22 06:11:11 +0000
commit16712271055f67e09086b68f2dbed5dc7a33c431 (patch)
tree8b3afe112b96eca1ff0ccea3e7b78586651c05ec /graphics
parentbf724df189b88316448c231901225786bc02bd11 (diff)
downloadFreeBSD-ports-16712271055f67e09086b68f2dbed5dc7a33c431.zip
FreeBSD-ports-16712271055f67e09086b68f2dbed5dc7a33c431.tar.gz
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 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/mplayer/Makefile74
-rw-r--r--graphics/mplayer/distinfo1
-rw-r--r--graphics/mplayer/files/install-user38
-rw-r--r--graphics/mplayer/files/patch-ab13
-rw-r--r--graphics/mplayer/files/patch-ac19
-rw-r--r--graphics/mplayer/files/patch-ad104
-rw-r--r--graphics/mplayer/files/patch-ae25
-rw-r--r--graphics/mplayer/pkg-comment1
-rw-r--r--graphics/mplayer/pkg-descr8
-rw-r--r--graphics/mplayer/pkg-message11
-rw-r--r--graphics/mplayer/pkg-plist12
12 files changed, 307 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 037139f..9fea1a7 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -158,6 +158,7 @@
SUBDIR += mpeg_stat
SUBDIR += mpegedit
SUBDIR += mpgtx
+ SUBDIR += mplayer
SUBDIR += mplayer-codecs
SUBDIR += mplayer-fonts
SUBDIR += mplex
diff --git a/graphics/mplayer/Makefile b/graphics/mplayer/Makefile
new file mode 100644
index 0000000..4b60ab7
--- /dev/null
+++ b/graphics/mplayer/Makefile
@@ -0,0 +1,74 @@
+# New ports collection makefile for: mplayer
+# Date created: 10 August 2001
+# Whom: Thomas E. Zander
+# with lots of help from Vladimir Kushnir
+# $FreeBSD$
+#
+
+PORTNAME= mplayer
+PORTVERSION= 0.18
+CATEGORIES= graphics
+MASTER_SITES= http://mp.dev.hu/MPlayer/releases/ \
+ http://www.stud.uni-karlsruhe.de/~uedc/mplayer/
+DISTNAME= MPlayer-${PORTVERSION}pre
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= riggs@rrr.de
+
+ONLY_FOR_ARCHS= i386
+
+WRKSRC= ${WRKDIR}/MPlayer-${PORTVERSION}pre5
+CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+CFLAGS+= -O3 -ffast-math -fomit-frame-pointer
+
+MAN1= mplayer.1
+MANCOMPRESSED= no
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_XLIB= yes
+
+LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png
+RUN_DEPENDS= ${PREFIX}/share/mplayer/fonts:${PORTSDIR}/graphics/mplayer-fonts
+
+CONFIGURE_ARGS+=--disable-esd \
+ --enable-mmx2 \
+ --enable-3dnow \
+ --enable-3dnowex
+
+.if defined(WITH_SDL)
+LIB_DEPENDS+= SDL-1.1.3:${PORTSDIR}/devel/sdl12
+.else
+BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
+.endif
+
+.if defined(USE_AVIFILE_CODECS)
+BUILD_DEPENDS+= ${PREFIX}/lib/win32:${PORTSDIR}/graphics/win32-codecs
+.else
+BUILD_DEPENDS+= ${PREFIX}/lib/mplayer-codecs:${PORTSDIR}/graphics/mplayer-codecs
+CONFIGURE_ARGS+=--with-win32libdir=${LOCALBASE}/lib/mplayer-codecs
+.endif
+
+post-install:
+ @${MKDIR} ${PREFIX}/share/mplayer
+ @${CHMOD} 755 ${PREFIX}/share/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/codecs.conf ${PREFIX}/share/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/example.conf ${PREFIX}/share/mplayer
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/mplayer
+ @${CHMOD} 755 ${PREFIX}/share/doc/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/DGA ${PREFIX}/share/doc/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/FREEBSD ${PREFIX}/share/doc/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/MPlayer-FAQ ${PREFIX}/share/doc/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/OpenDivX ${PREFIX}/share/doc/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/README ${PREFIX}/share/doc/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/SDL ${PREFIX}/share/doc/mplayer
+ @${INSTALL_DATA} ${WRKSRC}/DOCS/VIDEOCARDS ${PREFIX}/share/doc/mplayer
+.endif
+ @${CAT} pkg-message
+
+install-user:
+ @${PERL} ${FILESDIR}/install-user
+
+.include <bsd.port.mk>
diff --git a/graphics/mplayer/distinfo b/graphics/mplayer/distinfo
new file mode 100644
index 0000000..3c2abb0
--- /dev/null
+++ b/graphics/mplayer/distinfo
@@ -0,0 +1 @@
+MD5 (MPlayer-0.18pre.tgz) = cc86cd8cdc61d6aea243c6e539b5df2e
diff --git a/graphics/mplayer/files/install-user b/graphics/mplayer/files/install-user
new file mode 100644
index 0000000..8f0dda4
--- /dev/null
+++ b/graphics/mplayer/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";
diff --git a/graphics/mplayer/files/patch-ab b/graphics/mplayer/files/patch-ab
new file mode 100644
index 0000000..dd5250a
--- /dev/null
+++ b/graphics/mplayer/files/patch-ab
@@ -0,0 +1,13 @@
+*** /home/volodya/usr/ports/graphics/mplayer/work/MPlayer-0.18pre5/DOCS/FREEBSD Thu Jun 21 03:06:40 2001
+--- DOCS/FREEBSD Thu Aug 16 03:54:08 2001
+***************
+*** 6,11 ****
+--- 6,13 ----
+
+ 2. To run mplayer you will need to re-compile the kernel with
+ "options USER_LDT" (unless you are running -CURRENT, where this is default).
++ If you have a CPU with SSE also use "options CPU_ENABLE_SSE" to use it
++ (FreeBSD-STABLE required, or use kernel patches).
+
+ 3. If mplayer complains about "CD-ROM Device '/dev/cdrom' not found!" make a
+ symbolic link : ln -s /dev/<your_cdrom_device> /dev/cdrom
diff --git a/graphics/mplayer/files/patch-ac b/graphics/mplayer/files/patch-ac
new file mode 100644
index 0000000..88ba8cb
--- /dev/null
+++ b/graphics/mplayer/files/patch-ac
@@ -0,0 +1,19 @@
+*** ../MPlayer-0.18pre5.old/loader/config.h Sat Feb 24 22:30:26 2001
+--- loader/config.h Fri Aug 17 10:14:46 2001
+***************
+*** 56,62 ****
+ #define HAVE_LIMITS_H 1
+
+ /* Define if you have the <malloc.h> header file. */
+! #define HAVE_MALLOC_H 1
+
+ /* Define if you have the <sys/ioctl.h> header file. */
+ #define HAVE_SYS_IOCTL_H 1
+--- 56,62 ----
+ #define HAVE_LIMITS_H 1
+
+ /* Define if you have the <malloc.h> header file. */
+! /* #undef HAVE_MALLOC_H */
+
+ /* Define if you have the <sys/ioctl.h> header file. */
+ #define HAVE_SYS_IOCTL_H 1
diff --git a/graphics/mplayer/files/patch-ad b/graphics/mplayer/files/patch-ad
new file mode 100644
index 0000000..941cb9a
--- /dev/null
+++ b/graphics/mplayer/files/patch-ad
@@ -0,0 +1,104 @@
+*** configure.orig Fri Jul 6 23:00:22 2001
+--- configure Sat Aug 18 22:25:58 2001
+***************
+*** 181,187 ****
+
+ system_name=`uname -s 2>&1`
+ if [ "$system_name" = "FreeBSD" ]; then
+! _archlibs="-rdynamic -pthread"
+ else
+ _archlibs="-ldl -lpthread"
+ fi
+--- 181,187 ----
+
+ system_name=`uname -s 2>&1`
+ if [ "$system_name" = "FreeBSD" ]; then
+! _archlibs="-rdynamic ${PTHREAD_LIBS}"
+ else
+ _archlibs="-ldl -lpthread"
+ fi
+***************
+*** 587,593 ****
+ $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lvgagl -lvga > /dev/null 2>&1 && _svga=yes
+
+ if [ "$system_name" = "FreeBSD" ]; then
+! $_cc $TMPC -o $TMPO -pthread > /dev/null 2>&1 || \
+ { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; }
+ else
+ $_cc $TMPC -o $TMPO -lpthread > /dev/null 2>&1 || \
+--- 587,593 ----
+ $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lvgagl -lvga > /dev/null 2>&1 && _svga=yes
+
+ if [ "$system_name" = "FreeBSD" ]; then
+! $_cc $TMPC -o $TMPO ${PTHREAD_LIBS} > /dev/null 2>&1 || \
+ { echo "Lib pthread not found."; rm -f $TMPC $TMPO $TMPS ; exit 1; }
+ else
+ $_cc $TMPC -o $TMPO -lpthread > /dev/null 2>&1 || \
+***************
+*** 669,675 ****
+ $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm $_socklib > /dev/null 2>&1 && _vm=yes
+
+ if [ "$system_name" = "FreeBSD" ]; then
+! $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 && _gl=yes
+ else
+ $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 && _gl=yes
+ fi
+--- 669,675 ----
+ $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm $_socklib > /dev/null 2>&1 && _vm=yes
+
+ if [ "$system_name" = "FreeBSD" ]; then
+! $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL ${PTHREAD_LIBS} $_socklib > /dev/null 2>&1 && _gl=yes
+ else
+ $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 && _gl=yes
+ fi
+***************
+*** 679,685 ****
+ int main( void ) { return 0; }
+ EOF
+ if [ "$system_name" = "FreeBSD" ]; then
+! $_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 || \
+ { _gl=no; echo "GL includes not found!";}
+ else
+ $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 || \
+--- 679,685 ----
+ int main( void ) { return 0; }
+ EOF
+ if [ "$system_name" = "FreeBSD" ]; then
+! $_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL ${PTHREAD_LIBS} $_socklib > /dev/null 2>&1 || \
+ { _gl=no; echo "GL includes not found!";}
+ else
+ $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 || \
+***************
+*** 1162,1168 ****
+ if [ "$system_name" = "FreeBSD" ]; then
+ # Under XFree86 4.x GL port is poorly designed
+ if [ -r /usr/X11R6/bin/XFree86 ]; then
+! _gllib='-lGL -pthread'
+ else
+ _gllib='-lGL'
+ fi
+--- 1162,1168 ----
+ if [ "$system_name" = "FreeBSD" ]; then
+ # Under XFree86 4.x GL port is poorly designed
+ if [ -r /usr/X11R6/bin/XFree86 ]; then
+! _gllib="-lGL ${PTHREAD_LIBS}"
+ else
+ _gllib='-lGL'
+ fi
+***************
+*** 1329,1335 ****
+ # Under FreeBSD (maybe other systems as well?) we have to add to CFLAGS
+ # for MT applications:
+ if [ "$system_name" = "FreeBSD" ]; then
+! CFLAGS="$CFLAGS -D_THREAD_SAFE"
+ fi
+
+ # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak
+--- 1329,1335 ----
+ # Under FreeBSD (maybe other systems as well?) we have to add to CFLAGS
+ # for MT applications:
+ if [ "$system_name" = "FreeBSD" ]; then
+! CFLAGS="$CFLAGS ${PTHREAD_CFLAGS}"
+ fi
+
+ # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak
diff --git a/graphics/mplayer/files/patch-ae b/graphics/mplayer/files/patch-ae
new file mode 100644
index 0000000..38fcf5b
--- /dev/null
+++ b/graphics/mplayer/files/patch-ae
@@ -0,0 +1,25 @@
+--- Makefile Sun Jul 8 02:21:20 2001
++++ Makefile.freebsd Wed Aug 15 19:23:54 2001
+@@ -85,14 +85,14 @@
+ $(PRG_CFG): version.h codec-cfg.c codec-cfg.h
+ $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
+
+-install: $(PRG) $(PRG_FIBMAP)
+- install -D -m 755 -s $(PRG) $(BINDIR)/$(PRG)
+- install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
+- @echo "Following task requires root privs. If it fails don't panic"
+- @echo "however it means you can't use fibmap_mplayer."
+- @echo "Without this (or without running mplayer as root) you won't be"
+- @echo "able to play DVDs."
+- install -D -o root -g root -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
++install: $(PRG)
++ install -C -m 755 -s $(PRG) $(BINDIR)/$(PRG)
++ install -C -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
++# @echo "Following task requires root privs. If it fails don't panic"
++# @echo "however it means you can't use fibmap_mplayer."
++# @echo "Without this (or without running mplayer as root) you won't be"
++# @echo "able to play DVDs."
++# install -D -o root -g root -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
+
+ clean:
+ rm -f *.o *~ $(OBJS)
diff --git a/graphics/mplayer/pkg-comment b/graphics/mplayer/pkg-comment
new file mode 100644
index 0000000..5624b3a
--- /dev/null
+++ b/graphics/mplayer/pkg-comment
@@ -0,0 +1 @@
+High performance media player using win32 codecs
diff --git a/graphics/mplayer/pkg-descr b/graphics/mplayer/pkg-descr
new file mode 100644
index 0000000..bc017a3
--- /dev/null
+++ b/graphics/mplayer/pkg-descr
@@ -0,0 +1,8 @@
+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
diff --git a/graphics/mplayer/pkg-message b/graphics/mplayer/pkg-message
new file mode 100644
index 0000000..d47025a
--- /dev/null
+++ b/graphics/mplayer/pkg-message
@@ -0,0 +1,11 @@
+This port provides a simple and easy to use
+possibility for any user to make mplayer ready
+to run with a working codecs.conf and the
+right font by logging in with the username,
+then cd to the mplayer port directory and
+enter:
+
+make install-user
+
+Please take a look at docs in
+/usr/local/share/doc/mplayer
diff --git a/graphics/mplayer/pkg-plist b/graphics/mplayer/pkg-plist
new file mode 100644
index 0000000..a76f012
--- /dev/null
+++ b/graphics/mplayer/pkg-plist
@@ -0,0 +1,12 @@
+bin/mplayer
+share/doc/mplayer/DGA
+share/doc/mplayer/FREEBSD
+share/doc/mplayer/MPlayer-FAQ
+share/doc/mplayer/OpenDivX
+share/doc/mplayer/README
+share/doc/mplayer/SDL
+share/doc/mplayer/VIDEOCARDS
+share/mplayer/codecs.conf
+share/mplayer/example.conf
+@dirrm share/doc/mplayer
+@dirrm share/mplayer
OpenPOWER on IntegriCloud