[MacPorts] #64083: New port -- m2vrequantiser
MacPorts
noreply at macports.org
Mon Nov 29 18:55:48 UTC 2021
#64083: New port -- m2vrequantiser
-----------------------------+--------------------
Reporter: RobK88 | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: m2vrequantiser |
-----------------------------+--------------------
Description changed by RobK88:
Old description:
> 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 path 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!
New description:
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!
--
--
Ticket URL: <https://trac.macports.org/ticket/64083#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list