2002-06-29 03:24:10 -04:00
|
|
|
|
# $OpenBSD: Makefile,v 1.22 2002/06/29 07:24:10 pvalchev Exp $
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
|
2002-05-12 04:16:24 -04:00
|
|
|
|
# May not be hard to add more.
|
2002-05-16 10:00:23 -04:00
|
|
|
|
ONLY_FOR_ARCHS= i386 macppc sparc64
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
|
|
|
|
|
COMMENT= "Movie player"
|
2002-06-27 18:03:49 -04:00
|
|
|
|
DISTNAME= MPlayer-0.90pre5
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
PKGNAME= ${DISTNAME:L}
|
|
|
|
|
CATEGORIES= x11
|
|
|
|
|
NEED_VERSION= 1.527
|
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mplayerhq.hu
|
|
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= "patents"
|
|
|
|
|
PERMIT_PACKAGE_FTP= "patents"
|
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
|
|
MASTER_SITES= http://www2.mplayerhq.hu/MPlayer/releases/
|
2002-05-10 15:40:09 -04:00
|
|
|
|
#MASTER_SITES0= http://www2.mplayerhq.hu/MPlayer/Skin/
|
|
|
|
|
MASTER_SITES0= http://www.sightly.net/mplayer/
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
|
2002-06-27 18:03:49 -04:00
|
|
|
|
MAINTAINER= Bj<42>rn Sandell <biorn@dce.chalmers.se>
|
|
|
|
|
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
SKIN= default
|
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${SKIN}${EXTRACT_SUFX}:0
|
|
|
|
|
|
2002-05-16 22:00:29 -04:00
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
|
|
.if ${ELF_TOOLCHAIN} == "no"
|
2002-06-09 23:14:34 -04:00
|
|
|
|
BUILD_DEPENDS= :binutils->=2.11.2:devel/binutils/stable
|
2002-05-16 10:00:23 -04:00
|
|
|
|
.endif
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
LIB_DEPENDS= png::graphics/png \
|
|
|
|
|
jpeg::graphics/jpeg \
|
2002-05-13 23:10:19 -04:00
|
|
|
|
gtk,gdk::x11/gtk+ \
|
2002-05-15 19:16:59 -04:00
|
|
|
|
dvdread.::devel/libdvdread \
|
|
|
|
|
mp3lame::audio/lame \
|
|
|
|
|
ungif::graphics/libungif
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
|
2002-05-16 22:00:29 -04:00
|
|
|
|
.if ${ELF_TOOLCHAIN} == "no"
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
MAKE_ENV= AR=${LOCALBASE}/${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}/bin/ar
|
2002-05-16 10:00:23 -04:00
|
|
|
|
.endif
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
|
CONFIGURE_ARGS+=--as=${LOCALBASE}/${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}/bin/as \
|
|
|
|
|
--disable-alsa \
|
|
|
|
|
--disable-vorbis \
|
2002-06-07 20:48:26 -04:00
|
|
|
|
--disable-aa \
|
2002-05-12 14:50:46 -04:00
|
|
|
|
--disable-ossaudio \
|
2002-06-27 18:03:49 -04:00
|
|
|
|
--disable-arts \
|
2002-05-09 10:01:42 -04:00
|
|
|
|
--enable-select \
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
--enable-gl \
|
|
|
|
|
--enable-gui \
|
2002-05-12 04:16:24 -04:00
|
|
|
|
--enable-vidix \
|
2002-05-10 15:26:14 -04:00
|
|
|
|
--with-extraincdir="${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
--with-extralibdir=${LOCALBASE}/lib
|
|
|
|
|
|
2002-05-12 04:16:24 -04:00
|
|
|
|
.if ${MACHINE_ARCH:Mpowerpc}
|
|
|
|
|
CONFIGURE_ARGS+=--target=ppc-openbsd
|
|
|
|
|
.endif
|
|
|
|
|
|
2002-06-07 20:48:26 -04:00
|
|
|
|
FLAVORS= sdl ggi debug mad win32 iconv
|
|
|
|
|
FLAVOR?=
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msdl}
|
|
|
|
|
CONFIGURE_ARGS+=--enable-sdl \
|
|
|
|
|
--with-sdl-config=${LOCALBASE}/bin/sdl-config
|
2002-06-29 03:24:10 -04:00
|
|
|
|
LIB_DEPENDS+= SDL:sdl-1.2.4p1,>=1.2.5-*:devel/sdl
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+=--disable-sdl
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mggi}
|
|
|
|
|
CONFIGURE_ARGS+=--enable-ggi
|
|
|
|
|
LIB_DEPENDS+= ggi::graphics/ggi
|
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+=--disable-ggi
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mdebug}
|
|
|
|
|
CONFIGURE_ARGS+=--enable-debug=3
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmad}
|
|
|
|
|
CONFIGURE_ARGS+=--enable-mad
|
|
|
|
|
LIB_DEPENDS+= mad::audio/mad
|
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+=--disable-mad
|
|
|
|
|
.endif
|
|
|
|
|
|
2002-05-16 09:57:49 -04:00
|
|
|
|
.if ${FLAVOR:L:Miconv}
|
|
|
|
|
CONFIGURE_ARGS+=--enable-iconv
|
|
|
|
|
LIB_DEPENDS+= iconv::converters/libiconv
|
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+=--disable-iconv
|
|
|
|
|
.endif
|
|
|
|
|
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
.if ${FLAVOR:L:Mwin32}
|
2002-05-10 15:42:25 -04:00
|
|
|
|
pre-fetch:
|
2002-05-12 04:25:56 -04:00
|
|
|
|
.if ${MACHINE_ARCH} != i386
|
|
|
|
|
@echo
|
|
|
|
|
@echo "Sorry, this CPU does not support Win32 codec DLLs,"
|
2002-06-27 18:03:49 -04:00
|
|
|
|
@echo "and you cannot use the win32 flavor.
|
2002-05-12 04:25:56 -04:00
|
|
|
|
@echo
|
|
|
|
|
@exit 1
|
|
|
|
|
.else
|
|
|
|
|
.if !defined(NO_WARNINGS)
|
2002-05-10 15:42:25 -04:00
|
|
|
|
@echo
|
|
|
|
|
@echo " WARNING: This application requires a kernel compiled with"
|
|
|
|
|
@echo " 'option USER_LDT' for proper operation. The GENERIC"
|
|
|
|
|
@echo " kernel does not have this option enabled by default."
|
|
|
|
|
@echo
|
2002-05-10 15:50:31 -04:00
|
|
|
|
.endif
|
2002-06-09 23:14:34 -04:00
|
|
|
|
RUN_DEPENDS+= win32/divx.dll:win32-codecs-*:graphics/win32-codecs
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
BUILD_DEPENDS+= ${RUN_DEPENDS}
|
|
|
|
|
CONFIGURE_ARGS+=--with-win32libdir=${LOCALBASE}/lib/win32
|
2002-05-12 04:25:56 -04:00
|
|
|
|
.endif
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+=--disable-win32
|
|
|
|
|
.endif
|
|
|
|
|
|
2002-05-16 22:00:29 -04:00
|
|
|
|
.if ${ELF_TOOLCHAIN} == "no"
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
post-patch:
|
|
|
|
|
@ln -s ${LOCALBASE}/${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}/bin/as ${WRKDIR}/bin/as
|
2002-05-16 10:00:23 -04:00
|
|
|
|
.endif
|
Import of mplayer-0.90pre3 - Movie Player
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!).
Submitted by Björn Sandell <biorn@dce.chalmers.se>, work also done by me
Withstanding issues: see how to deal with optimization detection at build
time so that binary packages can be created; check make it work on
platforms other than i386, etc. things can be done in-tree.
2002-05-09 01:19:10 -04:00
|
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mplayer/Skin/${SKIN}
|
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${SKIN}/* ${PREFIX}/share/mplayer/Skin/${SKIN}/
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|