Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#18672 closed request (fixed)

RFE: Create a more up to date mplayer port (mplayer-devel)

Reported by: lperry (Perry Lee) Owned by: acho@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: mplayer, mplayer-devel Cc: acho@…
Port: mplayer-devel

Description

MPlayer OS X 1.0rc2 is outdated, and an official release seems unlikely (e.g., refer to http://lists.mplayerhq.hu/pipermail/mplayer-users/2008-June/073524.html).

A new port, mplayer-devel, should be created that uses a more recent checkout from svn.

In the past, there was discussion on macports-users (http://www.nabble.com/MPlayer-Port-Suggestion-to20611389.html#a20611998), but work on it lagged behind.

Hopefully this ticket will help jump-start work on it again ;).

Attachments (4)

Portfile (1.7 KB) - added by lperry (Perry Lee) 15 years ago.
Portfile.2 (2.6 KB) - added by acho@… 15 years ago.
explicitly get externals + additional port deps.
Portfile.3 (7.9 KB) - added by acho@… 15 years ago.
Make portfile more like mplayer stable port. Clean up svn version selection to use variables. Apply fixes to some existing mplayer tickets.
Portfile.4 (8.2 KB) - added by acho@… 15 years ago.
add extra include and link dirs; use more up to date x11

Download all attachments as: .zip

Change History (19)

comment:1 Changed 15 years ago by ecronin (Eric Cronin)

Owner: changed from macports-tickets@… to ecronin@…
Status: newassigned

Perry- I remember there was a Portfile floating around in that e-mail thread, could you attach it to this ticket?

comment:2 in reply to:  1 Changed 15 years ago by lperry (Perry Lee)

Replying to ecronin@…:

Perry- I remember there was a Portfile floating around in that e-mail thread, could you attach it to this ticket?

I just replied to an earlier e-mail we had; unfortunately, I seem to have lost most of our e-mail exchange with Altoine (not sure why...).

I'll try to create a Portfile from scratch during one of my breaks this weekend. Hopefully it won't take too long since I've been running a recent build of mplayer linked against MacPorts' libraries for awhile now.

Changed 15 years ago by lperry (Perry Lee)

Attachment: Portfile added

comment:3 Changed 15 years ago by lperry (Perry Lee)

To get things started, I've attached a far from complete Portfile (hopefully someone with more time can make more headway). It looks like most of the work will be spent filtering out undeclared dependencies.

comment:4 Changed 15 years ago by acho@…

downloading mplayer from svn requires pulling out the correct versions of libav*, libpostproc, and libdvd* or there is a fair chance it won't compile. For example, when I ran this portfile, I pulled down libavcodec svn 18522 dated 2009-04-15 02:23:40 -0400, which did not compile.

I've seen this before in ffmpeg (multimedia/ffmpeg/Portfile r36295) and the fix is to call svn with --ignore-externals, then explicitly fetch the versions you want.

Changed 15 years ago by acho@…

Attachment: Portfile.2 added

explicitly get externals + additional port deps.

comment:5 Changed 15 years ago by acho@…

Cc: acho@… added

Cc Me!

Changed 15 years ago by acho@…

Attachment: Portfile.3 added

Make portfile more like mplayer stable port. Clean up svn version selection to use variables. Apply fixes to some existing mplayer tickets.

comment:6 Changed 15 years ago by acho@…

Owner: changed from ecronin@… to acho@…
Status: assignednew

comment:7 Changed 15 years ago by acho@…

Resolution: fixed
Status: newclosed

Committed port file in r49969. Eric, feel free to co-maintain or take ownership.

comment:8 Changed 15 years ago by jmgregory@…

I got the following errors when attempting to install:

(PowerPC G4, OS X 10.4, Xcode version 2.5)

$ sudo port install mplayer-devel +osd+fribidi+samba+theora+xvid+x264+faac+twolame+dts
--->  Building mplayer-devel
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build
/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mplayer-devel/work/trunk" && make 
all " returned error 2
Command output: /usr/bin/gcc-4.0 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math 
-fomit-frame-pointer -maltivec -mabi=altivec -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE 
-mdynamic-no-pic -falign-loops=16 -shared-libgcc -I.   -I/usr/X11/include -Ilibdvdread4   -c -o libvo/vo_jpeg.o libvo/vo_jpeg.c
libvo/vo_jpeg.c:33:21: error: jpeglib.h: No such file or directory
libvo/vo_jpeg.c: In function 'jpeg_write':
libvo/vo_jpeg.c:183: error: storage size of 'cinfo' isn't known
libvo/vo_jpeg.c:184: error: storage size of 'jerr' isn't known
libvo/vo_jpeg.c:185: error: 'JSAMPROW' undeclared (first use in this function)
libvo/vo_jpeg.c:185: error: (Each undeclared identifier is reported only once
libvo/vo_jpeg.c:185: error: for each function it appears in.)
libvo/vo_jpeg.c:185: error: parse error before 'row_pointer'
libvo/vo_jpeg.c:198: warning: implicit declaration of function 'jpeg_std_error'
libvo/vo_jpeg.c:199: warning: implicit declaration of function 'jpeg_create_compress'
libvo/vo_jpeg.c:200: warning: implicit declaration of function 'jpeg_stdio_dest'
libvo/vo_jpeg.c:205: error: 'JCS_RGB' undeclared (first use in this function)
libvo/vo_jpeg.c:207: warning: implicit declaration of function 'jpeg_set_defaults'
libvo/vo_jpeg.c:209: error: 'TRUE' undeclared (first use in this function)
libvo/vo_jpeg.c:219: warning: implicit declaration of function 'jpeg_set_quality'
libvo/vo_jpeg.c:224: warning: implicit declaration of function 'jpeg_simple_progression'
libvo/vo_jpeg.c:227: warning: implicit declaration of function 'jpeg_start_compress'
libvo/vo_jpeg.c:231: error: 'row_pointer' undeclared (first use in this function)
libvo/vo_jpeg.c:232: warning: implicit declaration of function 'jpeg_write_scanlines'
libvo/vo_jpeg.c:235: warning: implicit declaration of function 'jpeg_finish_compress'
libvo/vo_jpeg.c:237: warning: implicit declaration of function 'jpeg_destroy_compress'
libvo/vo_jpeg.c:184: warning: unused variable 'jerr'
libvo/vo_jpeg.c:183: warning: unused variable 'cinfo'
make: *** [libvo/vo_jpeg.o] Error 1

Error: Status 1 encountered during processing.

I was able to get past it by adding -I/opt/local/include to CFLAGS in config.mak in the build directory. (I added it to CXXFLAGS and OPTFLAGS, too, for good measure). I don't know how to translate that into the Portfile.

comment:9 Changed 15 years ago by jmgregory@…

Update:

I also had to add -L/opt/local/lib/samba3 and -L/opt/local/lib to EXTRA_LIB in config.mak.

comment:10 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Please don't do this crappy XFree86 foo. I'll cleanup the X11 cruft...

Changed 15 years ago by acho@…

Attachment: Portfile.4 added

add extra include and link dirs; use more up to date x11

comment:11 Changed 15 years ago by acho@…

Resolution: fixed
Status: closedreopened

I didn't have the problems you noticed when enabling samba3 and jpeg, but the changes I added to the above portfile should correct it. Please try that out, and I'll commit it if it does help.

comment:12 Changed 15 years ago by jmroot (Joshua Root)

Type: enhancementrequest

comment:13 Changed 15 years ago by (none)

Milestone: Port Requests

Milestone Port Requests deleted

comment:14 Changed 15 years ago by acho@…

Resolution: fixed
Status: reopenedclosed

committed r50040

comment:15 Changed 14 years ago by jens-macports@…

Does not build on Snow Leopard, fresh install, on Macbook Pro June 2009 model:

sudo port install mplayer-devel +binary_codecs +dts +dv +x264 +faac -glx +theora +twolame +xvid

--->  Building mplayer-devel
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mplayer-devel/work/trunk" && /usr/bin/make -j2 all " returned error 2
Command output: libao2/ao_coreaudio.c:1039: warning: 'AudioDeviceGetPropertyInfo' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2338)
libao2/ao_coreaudio.c:1041: warning: 'AudioDeviceGetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2367)
libao2/ao_coreaudio.c:1046: warning: 'AudioDeviceSetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2402)
libao2/ao_coreaudio.c:1056: warning: 'AudioDeviceSetProperty' is deprecated (declared at /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:2402)
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include -c -o libvo/vo_corevideo.o libvo/vo_corevideo.m
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_gif89a.o libvo/vo_gif89a.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_jpeg.o libvo/vo_jpeg.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_md5sum.o libvo/vo_md5sum.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libao2/ao_openal.o libao2/ao_openal.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_png.o libvo/vo_png.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_pnm.o libvo/vo_pnm.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_tga.o libvo/vo_tga.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o libvo/vo_yuv4mpeg.o libvo/vo_yuv4mpeg.c
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o asxparser.o asxparser.c
libvo/vo_corevideo.m: In function 'config':
libvo/vo_corevideo.m:216: warning: 'stringWithCString:' is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:386)
libvo/vo_corevideo.m: In function 'preinit':
libvo/vo_corevideo.m:389: warning: ISO C90 forbids mixed declarations and code
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o codec-cfg.o codec-cfg.c
libvo/vo_corevideo.m: In function '-[MPlayerOpenGLView preinit]':
libvo/vo_corevideo.m:449: warning: class 'MPlayerOpenGLView' does not implement the 'NSWindowDelegate' protocol
/usr/bin/gcc-4.2 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -arch x86_64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o cpudetect.o cpudetect.c
/var/tmp//ccwleouV.s:8:suffix or operands invalid for `pushf'
/var/tmp//ccwleouV.s:13:suffix or operands invalid for `popf'
/var/tmp//ccwleouV.s:14:suffix or operands invalid for `pushf'
make: *** [cpudetect.o] Error 1
make: *** Waiting for unfinished jobs....
codec-cfg.c: In function 'parse_codec_cfg':
codec-cfg.c:513: warning: assignment discards qualifiers from pointer target type
codec-cfg.c:514: warning: assignment discards qualifiers from pointer target type

Error: Status 1 encountered during processing.
Note: See TracTickets for help on using tickets.