opustags is designed to be fast and as conservative as possible, to the point
that if you edit tags then edit them again to their previous values, you should
get a bit-perfect copy of the original file. No under-the-cover operation like
writing "edited with opustags" or timestamp tagging will ever be performed.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
audio/opustags: fix build on GCC architectures
GCC doesn't include sys/endian.h by default:
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc: In function
'ot::status ot::parse_tags(const ogg_packet&, ot::opus_tags&)':
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc:58:25: error:
'le32toh' was not declared in this scope
58 | size_t vendor_length = le32toh(*((uint32_t*) (data + pos)));
| ^~~~~~~
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc: In function
'ot::dynamic_ogg_packet ot::render_tags(const ot::opus_tags&)':
/wrkdirs/usr/ports/audio/opustags/work/opustags-1.3.0/src/opus.cc:107:6: error:
'htole32' was not declared in this scope
107 | n = htole32(tags.vendor.size());
| ^~~~~~~
Add compiler:c++14-lang to USES to atttempt to fix on GCC-based systems:
CMake Error in CMakeLists.txt:
Target "opustags" requires the language dialect "CXX14" (with compiler
extensions), but CMake does not know the compile flags to use to enable it.
Unfortunately this is necessary but not sufficient.
Approved by: portmgr (tier-2 blanket)