Page MenuHomeFreeBSD

audio/virtual_oss_equalizer: New port
ClosedPublic

Authored by christos on Wed, Sep 3, 7:04 PM.
Tags
None
Referenced Files
F130658786: D52366.id.diff
Wed, Oct 1, 3:26 AM
Unknown Object (File)
Tue, Sep 30, 9:01 AM
Unknown Object (File)
Tue, Sep 30, 7:46 AM
Unknown Object (File)
Sun, Sep 28, 8:18 AM
Unknown Object (File)
Sun, Sep 28, 8:18 AM
Unknown Object (File)
Tue, Sep 23, 7:35 AM
Unknown Object (File)
Sat, Sep 20, 6:08 PM
Unknown Object (File)
Thu, Sep 18, 9:29 PM
Subscribers
None

Details

Summary

Although src commit FILLME ("virtual_oss: Port to base") includes the
equalizer utility, we do not hook it to the src build, because it
depends on the third party library fftw3, so we build it as a port
instead.

The port simply builds the files from src, which is not ideal, as this
means that the src repo needs to be present in the system in order for
the port to build, but this way we can avoid version mismatches and
ifdef hell as the project progresses.

Note that this is an extension for the base system virtual_oss, and not
audio/virtual_oss.

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66799
Build 63682: arc lint + arc unit

Event Timeline

christos created this revision.
fuz requested changes to this revision.Wed, Sep 3, 7:19 PM

Please adjust the layout of the Makefile in accordance with Porter's handbook. You can use the portfmt utility for that. Please also check the portlint warning.

Please extend pkg-descr to at least three lines.

This revision now requires changes to proceed.Wed, Sep 3, 7:19 PM

Fix portlint warnings and errors.

The order of variables is still wrong, it would be surprising to me if portlint ate this. You can use portclippy or portfmt to automatically format the Makefile.

The points raised in D52365 also apply to this one. You can omit distinfo if there are no distfiles.

This Makefile would require a lot of fixes before getting in. @christos I can do that for you and commandeer the revision, if you wish.

This Makefile would require a lot of fixes before getting in. @christos I can do that for you and commandeer the revision, if you wish.

I accept the proposition, although I'm curious what else is wrong here since neither portfmt nor portlint complain.

If they don't complain you are using them wrong, e.g. on the wrong directory.

arrowd edited reviewers, added: christos; removed: arrowd.

Here's my take on this port. Apart from making knobs follow the canonical order
I made following important changes:

  • Port building process should only write under ${WRKDIR} and ${WRKSRC} is usually a subdir of ${WRKDIR}. This is not the case for this port, so passing MAKEOBJDIRPREFIX=${WRKDIR} in MAKE_ENV is required
  • Port's version should depend on ${OSVERSION} so that upgrading the base would result in port's rebuild.
  • Whitespace fixes found by portlint

Builds fine. If we agree on that I can update the other port as well based on this.

christos edited reviewers, added: arrowd; removed: christos.

Comandeering again after @arrowd's suggestions. Thank you. :-)

This LGTM (haha, obviosly).

Re-sort audio/Makefile after renaming in D52365.

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Sep 30, 3:41 PM
This revision was automatically updated to reflect the committed changes.