diff options
author | dinoex <dinoex@FreeBSD.org> | 2001-08-22 14:11:11 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2001-08-22 14:11:11 +0800 |
commit | 16712271055f67e09086b68f2dbed5dc7a33c431 (patch) | |
tree | 8b3afe112b96eca1ff0ccea3e7b78586651c05ec /multimedia/mplayerxp | |
parent | bf724df189b88316448c231901225786bc02bd11 (diff) | |
download | freebsd-ports-gnome-16712271055f67e09086b68f2dbed5dc7a33c431.tar.gz freebsd-ports-gnome-16712271055f67e09086b68f2dbed5dc7a33c431.tar.zst freebsd-ports-gnome-16712271055f67e09086b68f2dbed5dc7a33c431.zip |
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')
-rw-r--r-- | multimedia/mplayerxp/Makefile | 74 | ||||
-rw-r--r-- | multimedia/mplayerxp/distinfo | 1 | ||||
-rw-r--r-- | multimedia/mplayerxp/files/install-user | 38 | ||||
-rw-r--r-- | multimedia/mplayerxp/files/patch-ab | 13 | ||||
-rw-r--r-- | multimedia/mplayerxp/files/patch-ac | 19 | ||||
-rw-r--r-- | multimedia/mplayerxp/files/patch-ad | 104 | ||||
-rw-r--r-- | multimedia/mplayerxp/files/patch-ae | 25 | ||||
-rw-r--r-- | multimedia/mplayerxp/pkg-comment | 1 | ||||
-rw-r--r-- | multimedia/mplayerxp/pkg-descr | 8 | ||||
-rw-r--r-- | multimedia/mplayerxp/pkg-message | 11 | ||||
-rw-r--r-- | multimedia/mplayerxp/pkg-plist | 12 |
11 files changed, 306 insertions, 0 deletions
diff --git a/multimedia/mplayerxp/Makefile b/multimedia/mplayerxp/Makefile new file mode 100644 index 000000000000..4b60ab7bafc5 --- /dev/null +++ b/multimedia/mplayerxp/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/multimedia/mplayerxp/distinfo b/multimedia/mplayerxp/distinfo new file mode 100644 index 000000000000..3c2abb092929 --- /dev/null +++ b/multimedia/mplayerxp/distinfo @@ -0,0 +1 @@ +MD5 (MPlayer-0.18pre.tgz) = cc86cd8cdc61d6aea243c6e539b5df2e 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"; diff --git a/multimedia/mplayerxp/files/patch-ab b/multimedia/mplayerxp/files/patch-ab new file mode 100644 index 000000000000..dd5250a5197a --- /dev/null +++ b/multimedia/mplayerxp/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/multimedia/mplayerxp/files/patch-ac b/multimedia/mplayerxp/files/patch-ac new file mode 100644 index 000000000000..88ba8cb70b7e --- /dev/null +++ b/multimedia/mplayerxp/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/multimedia/mplayerxp/files/patch-ad b/multimedia/mplayerxp/files/patch-ad new file mode 100644 index 000000000000..941cb9a01492 --- /dev/null +++ b/multimedia/mplayerxp/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/multimedia/mplayerxp/files/patch-ae b/multimedia/mplayerxp/files/patch-ae new file mode 100644 index 000000000000..38fcf5b69e44 --- /dev/null +++ b/multimedia/mplayerxp/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/multimedia/mplayerxp/pkg-comment b/multimedia/mplayerxp/pkg-comment new file mode 100644 index 000000000000..5624b3afc8a0 --- /dev/null +++ b/multimedia/mplayerxp/pkg-comment @@ -0,0 +1 @@ +High performance media player using win32 codecs diff --git a/multimedia/mplayerxp/pkg-descr b/multimedia/mplayerxp/pkg-descr new file mode 100644 index 000000000000..bc017a356b04 --- /dev/null +++ b/multimedia/mplayerxp/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/multimedia/mplayerxp/pkg-message b/multimedia/mplayerxp/pkg-message new file mode 100644 index 000000000000..d47025ad2c16 --- /dev/null +++ b/multimedia/mplayerxp/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/multimedia/mplayerxp/pkg-plist b/multimedia/mplayerxp/pkg-plist new file mode 100644 index 000000000000..a76f0124d73c --- /dev/null +++ b/multimedia/mplayerxp/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 |