Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2001 14:18:22 +0700 (NOVST)
From:      oleg dashevskii <od@ns.sphinx-corp.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29976: New port: mplayer - the best video player around
Message-ID:  <200108230718.f7N7IMe32682@ns.sphinx-corp.ru>

next in thread | raw e-mail | index | archive | help

>Number:         29976
>Category:       ports
>Synopsis:       New port: mplayer - the best video player around
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 23 00:20:05 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     oleg dashevskii
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
Sphinx corp.
>Environment:
System: FreeBSD ns.sphinx-corp.ru 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #0: Thu Aug 16 12:55:08 NOVST 2001 od@ns.sphinx-corp.ru:/usr/src/sys/compile/Sphinx i386

>Description:
	 A new port suggested
	 Depends upon mplayer-win32-codecs port being submitted in the next PR

>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mplayer
#	mplayer/Makefile
#	mplayer/pkg-comment
#	mplayer/pkg-descr
#	mplayer/pkg-message
#	mplayer/pkg-plist
#	mplayer/files
#	mplayer/files/patch-configure
#	mplayer/files/patch-libavcodec-makefile
#	mplayer/files/patch-makefile
#	mplayer/distinfo
#
echo c - mplayer
mkdir -p mplayer > /dev/null 2>&1
echo x - mplayer/Makefile
sed 's/^X//' >mplayer/Makefile << 'END-of-mplayer/Makefile'
X# New ports collection makefile for:   mplayer
X# Date created: 	23 August 2001
X# Whom: 		oleg dashevskii
X#
X# $FreeBSD$
X#
X
XPORTNAME=	MPlayer
XPORTVERSION=	0.18
XPORTREVISION=	5
XCATEGORIES=	graphics
XMASTER_SITES=	http://MPlayerHQ.hu/MPlayer/releases/
XDISTNAME=	MPlayer-${PORTVERSION}pre
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	od@iclub.nsu.ru
X
XLIB_DEPENDS=	SDL-1.1.3:${PORTSDIR}/devel/sdl12
X
XHAS_CONFIGURE=	YES
XUSE_XLIB=	yes
XUSE_GMAKE=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}pre${PORTREVISION}
X
XCONFIGURE_ARGS=	--with-win32libdir=${LOCALBASE}/lib/win32/mplayer
X
XCODEC_PORT=	${.CURDIR}/../mplayer-win32-codecs
XCODEC_DETECTION_FILE!=	${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "i386"
XRUN_DEPENDS +=	${CODEC_DETECTION_FILE}:${CODEC_PORT}
X.endif
X
Xpost-install:
X		$(MKDIR) $(PREFIX)/share/doc/MPlayer
X		$(INSTALL) -m 644 $(WRKSRC)/DOCS/codecs.conf $(PREFIX)/share/doc/MPlayer/sample.codecs.conf
X		@$(ECHO)
X		@$(ECHO) You should copy $(PREFIX)/share/doc/MPlayer/sample.codecs.conf to ~/.mplayer/codecs.conf and tune it in order to run mplayer
X
X.include <bsd.port.post.mk>
END-of-mplayer/Makefile
echo x - mplayer/pkg-comment
sed 's/^X//' >mplayer/pkg-comment << 'END-of-mplayer/pkg-comment'
XMPlayer - the movie player supporting numerous video formats
END-of-mplayer/pkg-comment
echo x - mplayer/pkg-descr
sed 's/^X//' >mplayer/pkg-descr << 'END-of-mplayer/pkg-descr'
XMPlayer is a movie player for LINUX (and for FreeBSD as well). It plays most
XMPEG, AVI and ASF files, supported by many native and win32 DLL codecs. You can
Xwatch VCD, DVD and even DivX movies too. The another big feature of mplayer is
Xthe wide range of supported output drivers. It works with X11, Xv, DGA, OpenGL,
XSVGAlib, fbdev, but you can use SDL (and this way all drivers of SDL) and some
Xlowlevel card-specific drivers (for Matrox/3dfx/SiS) too! Most of them supports
Xsoftware or hardware scaling, so you can enjoy movies in fullscreen. And what
Xabout the nice big antialiased shaded subtitles (7 supported types!!!) with
Xhungarian, english, cyrillic, czech, korean fonts, and OSD?
X
XMPlayer works even on non-i386 platforms, though you will need to tune
Xyour ~/mplayer/codecs.conf file.
X
XWWW: http://mplayer.sourceforge.net
END-of-mplayer/pkg-descr
echo x - mplayer/pkg-message
sed 's/^X//' >mplayer/pkg-message << 'END-of-mplayer/pkg-message'
X	ATTENTIONATTENTION:
X
XThis port requires a kernel built with
Xthe directive:
X
Xoptions USER_LDT
X
XPlease, check the FreeBSD Handbook for instructions
Xon building a custom kernel. If you do not know
Xwhere to find it, check the FreeBSD website
Xhttp://www.freebsd.org/
END-of-mplayer/pkg-message
echo x - mplayer/pkg-plist
sed 's/^X//' >mplayer/pkg-plist << 'END-of-mplayer/pkg-plist'
Xbin/mplayer
Xbin/fibmap_mplayer
Xman/man1/mplayer.1
Xshare/doc/MPlayer/sample.codecs.conf
X@dirrm share/doc/MPlayer
END-of-mplayer/pkg-plist
echo c - mplayer/files
mkdir -p mplayer/files > /dev/null 2>&1
echo x - mplayer/files/patch-configure
sed 's/^X//' >mplayer/files/patch-configure << 'END-of-mplayer/files/patch-configure'
Xdiff -ur configure.orig configure
X--- configure.orig	Sat Jul  7 03:00:22 2001
X+++ configure	Thu Aug 23 11:51:44 2001
X@@ -1319,13 +1319,13 @@
X 
X 
X # Checking for CFLAGS
X-if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then
X- CFLAGS="-W -Wall -O2 -march=$proc -mcpu=$proc $_debug $_profile"
X-else
X-if test -z "$CFLAGS"; then
X- CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer"
X-fi
X-fi
X+#if [ "$_profile" != "" ] || [ "$_debug" != "" ]; then
X+# CFLAGS="-W -Wall -O2 -march=$proc -mcpu=$proc $_debug $_profile"
X+#else
X+#if test -z "$CFLAGS"; then
X+# CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer"
X+#fi
X+#fi
X # Under FreeBSD (maybe other systems as well?) we have to add to CFLAGS
X # for MT applications: 
X if [ "$system_name" = "FreeBSD" ]; then
END-of-mplayer/files/patch-configure
echo x - mplayer/files/patch-libavcodec-makefile
sed 's/^X//' >mplayer/files/patch-libavcodec-makefile << 'END-of-mplayer/files/patch-libavcodec-makefile'
Xdiff -ur libavcodec/Makefile.orig libavcodec/Makefile
X--- libavcodec/Makefile.orig	Fri Jul  6 10:32:40 2001
X+++ libavcodec/Makefile	Thu Aug 23 11:59:34 2001
X@@ -42,7 +42,7 @@
X 
X clean: 
X 	rm -f *.o *~ *.a i386/*.o i386/*~ \
X-           apiexample $(TESTS)
X+           apiexample $(TESTS) libavcodec.a
X 
X # api example program
X apiexample: apiexample.c $(LIB)
END-of-mplayer/files/patch-libavcodec-makefile
echo x - mplayer/files/patch-makefile
sed 's/^X//' >mplayer/files/patch-makefile << 'END-of-mplayer/files/patch-makefile'
X--- Makefile.orig	Sun Jul  8 07:21:20 2001
X+++ Makefile	Thu Aug 23 13:29:27 2001
X@@ -13,7 +13,7 @@
X PRG_TV = tvision
X PRG_CFG = codec-cfg
X 
X-#prefix = /usr/local
X+prefix = $(PREFIX)
X BINDIR = ${prefix}/bin
X # BINDIR = /usr/local/bin
X SRCS = find_sub.c aviprint.c dll_init.c dec_audio.c dec_video.c aviwrite.c aviheader.c asfheader.c demux_avi.c demux_asf.c demux_mpg.c demuxer.c stream.c codec-cfg.c subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c mixer.c dvdauth.c spudec.c $(STREAM_SRCS)
X@@ -86,16 +86,15 @@
X 	$(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML
X 
X install: $(PRG) $(PRG_FIBMAP)
X-	install -D -m 755 -s $(PRG) $(BINDIR)/$(PRG)
X-	install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
X+	install -m 755 -s $(PRG) $(BINDIR)/$(PRG)
X+	install -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
X 	@echo "Following task requires root privs. If it fails don't panic"
X 	@echo "however it means you can't use fibmap_mplayer."
X 	@echo "Without this (or without running mplayer as root) you won't be"
X 	@echo "able to play DVDs."
X-	install -D -o root -g root -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
X+	install -o root -g wheel -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
X 
X-clean:
X-	rm -f *.o *~ $(OBJS)
X+clean:	distclean
X 
X distclean:
X 	@for a in mp3lib libac3 libmpeg2 opendivx encore libvo libao2 loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done
END-of-mplayer/files/patch-makefile
echo x - mplayer/distinfo
sed 's/^X//' >mplayer/distinfo << 'END-of-mplayer/distinfo'
XMD5 (MPlayer-0.18pre.tgz) = cc86cd8cdc61d6aea243c6e539b5df2e
END-of-mplayer/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108230718.f7N7IMe32682>