Opened 13 years ago

Last modified 13 years ago

#29442 new submission

gstreamermm 0.10.9.1 Port

Reported by: arcnorj@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: gstreamermm

Description

Simple gstreamermm port based on pangomm portfile

Attachments (1)

Portfile (1.3 KB) - added by arcnorj@… 13 years ago.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by arcnorj@…

Attachment: Portfile added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Port: gstreamermm added

Some observations:

  • Is bzip2 really a library dependency?
  • Is cairomm-devel really required? Would cairomm not suffice?
  • md5 checksums can be removed; they're being phased out of MacPorts
  • You should reuse the ${branch} variable in the homepage definition instead of hardcoding it there again

Finally, it doesn't build for me; I get this error:

checking for GSTREAMERMM... no
configure: error: Package requirements (giomm-2.4 >= 2.26.0 libxml++-2.6 >= 2.14 gstreamer-0.10 >= 0.10.32 gstreamer-base-0.10 >= 0.10.32 gstreamer-controller-0.10 >= 0.10.32 gstreamer-dataprotocol-0.10 >= 0.10.32 gstreamer-net-0.10 >= 0.10.32 gstreamer-plugins-base-0.10 >= 0.10.32 gstreamer-audio-0.10 >= 0.10.32 gstreamer-cdda-0.10 >= 0.10.32 gstreamer-interfaces-0.10 >= 0.10.32 gstreamer-netbuffer-0.10 >= 0.10.32 gstreamer-rtp-0.10 >= 0.10.32 gstreamer-video-0.10 >= 0.10.32) were not met:

No package 'gstreamer-plugins-base-0.10' found
No package 'gstreamer-audio-0.10' found
No package 'gstreamer-cdda-0.10' found
No package 'gstreamer-interfaces-0.10' found
No package 'gstreamer-netbuffer-0.10' found
No package 'gstreamer-rtp-0.10' found
No package 'gstreamer-video-0.10' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

comment:2 Changed 13 years ago by arcnorj@…

Sorry, this is my first port and didn't have the time to test with an empty Macports installation.

  • I added bzip2 like in the example portfile that adds zlib. I thought it was needed for the extracting of the package (as is a tar.bz2 package, but .tar.gz packages are also provided). Do you mean that I don't have to add the bzip2 dependency if I add the use_bzip2 flag, or that I can simply use the gz packages?
  • I used cairomm-devel because is the most recent version and the one I tried, but I can try to compile it with cairomm to see if it works.
  • I added md5 checksum because other ports and the Macports guide have them.
  • I'll do that

As per the error, it seems that gstreamer-plugins-? is really needed (but the documentation didn't say anything about it). I'll try to narrow down to the least requirements and repost the portfile.

Thanks for your help!

comment:3 in reply to:  2 ; Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to arcnorj@…:

Sorry, this is my first port and didn't have the time to test with an empty Macports installation.

No problem; we wouldn't expect you to go to that trouble; I know I don't. But that's why I at least try to install submitted ports before committing them, to make sure there's at least two people who were successful in building the port.

  • I added bzip2 like in the example portfile that adds zlib. I thought it was needed for the extracting of the package (as is a tar.bz2 package, but .tar.gz packages are also provided). Do you mean that I don't have to add the bzip2 dependency if I add the use_bzip2 flag, or that I can simply use the gz packages?

If you mean the rrdtool portfile example shown in the guide, then the reason it lists a library dependency on zlib is that the rrdtool software actually uses the libz.dylib library. All the extract options (use_bzip2, use_zip, use_xz, use_7z) automatically add the necessary extraction utilities to depends_extract; you don't have to do anything extra. It's preferred to use the smallest distfile, so since bz2 files are smaller than gz files, use bz2 files when available. Unless xz files are available, which are even smaller. Note that by the way the zlib port is for the libz library, while the utility used to extract .gz files is the gzip program, available in the gzip port.

  • I used cairomm-devel because is the most recent version and the one I tried, but I can try to compile it with cairomm to see if it works.

cairomm-devel is for the most recent development version, while cairomm is for the latest stable version. (Well, it's supposed to be, but actually I see cairomm is a version behind; I've filed #29450 asking for it to be updated.) So yes, please depend on cairomm, if that will function; -devel ports should not be listed as dependencies, unless the software will not work with the latest stable version and actually requires a newer development version. Also, when declaring dependencies on ports which have -devel and non-devel versions, use path:-style (not port:-style) dependencies; see #14540.

  • I added md5 checksum because other ports and the Macports guide have them.

md5 checksums are being removed from other ports as they're updated, if the person updating the port remembers to do so. I'll work on removing references to md5 checksums from the guide.

  • I'll do that


As per the error, it seems that gstreamer-plugins-? is really needed (but the documentation didn't say anything about it). I'll try to narrow down to the least requirements and repost the portfile.

I'll bet some of these ports are needed?

$ port echo name:gst-plugins
gst-plugins-bad                 
gst-plugins-base                
gst-plugins-gl                  
gst-plugins-good                
gst-plugins-ugly       

Thanks for your help!

Thank you!

comment:4 in reply to:  3 Changed 13 years ago by arcnorj@…

Replying to ryandesign@…:

Replying to arcnorj@…:

Sorry, this is my first port and didn't have the time to test with an empty Macports installation.

No problem; we wouldn't expect you to go to that trouble; I know I don't. But that's why I at least try to install submitted ports before committing them, to make sure there's at least two people who were successful in building the port.

  • I added bzip2 like in the example portfile that adds zlib. I thought it was needed for the extracting of the package (as is a tar.bz2 package, but .tar.gz packages are also provided). Do you mean that I don't have to add the bzip2 dependency if I add the use_bzip2 flag, or that I can simply use the gz packages?

If you mean the rrdtool portfile example shown in the guide, then the reason it lists a library dependency on zlib is that the rrdtool software actually uses the libz.dylib library. All the extract options (use_bzip2, use_zip, use_xz, use_7z) automatically add the necessary extraction utilities to depends_extract; you don't have to do anything extra. It's preferred to use the smallest distfile, so since bz2 files are smaller than gz files, use bz2 files when available. Unless xz files are available, which are even smaller. Note that by the way the zlib port is for the libz library, while the utility used to extract .gz files is the gzip program, available in the gzip port.

Yeah, I mean there. I see, I didn't check the exact port and just assumed that was for the extracting part. My mistake. And also, of course I meant the gzip port, silly mistake :P

  • I used cairomm-devel because is the most recent version and the one I tried, but I can try to compile it with cairomm to see if it works.

cairomm-devel is for the most recent development version, while cairomm is for the latest stable version. (Well, it's supposed to be, but actually I see cairomm is a version behind; I've filed #29450 asking for it to be updated.) So yes, please depend on cairomm, if that will function; -devel ports should not be listed as dependencies, unless the software will not work with the latest stable version and actually requires a newer development version. Also, when declaring dependencies on ports which have -devel and non-devel versions, use path:-style (not port:-style) dependencies; see #14540.

  • I added md5 checksum because other ports and the Macports guide have them.

md5 checksums are being removed from other ports as they're updated, if the person updating the port remembers to do so. I'll work on removing references to md5 checksums from the guide.

Ok, removed.

  • I'll do that


As per the error, it seems that gstreamer-plugins-? is really needed (but the documentation didn't say anything about it). I'll try to narrow down to the least requirements and repost the portfile.

I'll bet some of these ports are needed?

$ port echo name:gst-plugins
gst-plugins-bad                 
gst-plugins-base                
gst-plugins-gl                  
gst-plugins-good                
gst-plugins-ugly       

Yes, those are the ports needed, but in theory only gst-plugins-base is really needed. I'll try to uninstall them from my system and check the really needed ones, and try to add the optional ones as variants or something like that.

Thanks for your help!

Thank you!

Note: See TracTickets for help on using tickets.