Opened 3 years ago
Last modified 3 years ago
#64083 closed submission
New port -- m2vrequantiser — at Version 1
Reported by: | RobK88 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | ||
Port: | m2vrequantiser |
Description (last modified by RobK88)
In the past, I often used "tcquant" to requantize MPEG-2 video streams. "tcquant" was part of the transcode port but is now considered obsolete and is no longer found in recent versions of transcode.
I found a replacement -- m2vrequantiser. It does not compile on modern C compiler. I needed to apply patches from Debian plus an additional typedef patch which I created to address types used in the program that do not exist in most modern C compilers. I also needed to patch the Makefile to make Macports work properly.
Attached please find the portfile and the four patch files.
The port does build fine and the resulting binary M2VRequantizer runs fine.
There is ONE big problem with he portfile. The portfile downloads a second file containing the manpage and fails at the extraction stage. The second file is compressed with xz whereas the main source file is compressed with gz.
How do you deal with this situation? I tried using tags (e.g. "use_xz yes:tagtwo") but that did not work.
Please note that the name of the binary and the worksrcdir uses both upper and lower case characters. As a result, I could not use ${name} in many places in the portfile since I used only lowercase letters for the portname (just like Debian did).
P.S. This is my second portfile so any feedback and encouragement would be appreciated!
Change History (6)
Changed 3 years ago by RobK88
comment:1 Changed 3 years ago by RobK88
Description: | modified (diff) |
---|
portfile with bug