notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
After the ports freeze to fix some stuff, the freeze is over. I have some work to do before FreshPorts can start processing commits again before it can start processing again. I've created an issue for that.
Port details
codec2 Low bit rate codec
1.2.0 audio on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.0.3_1Version of this port present on the latest quarterly branch.
Maintainer: hamradio@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2015-12-15 05:30:16
Last Update: 2026-08-23 21:36:13
Commit Hash: 6621902
Also Listed In: hamradio
License: LGPL21
WWW:
https://www.rowetel.com/?page_id=452
Description:
Codec 2 is an open source speech codec designed for communications quality speech between 700 and 3200 bit/s. The main application is low bandwidth HF/VHF digital radio. It fills a gap in open source, free-as-in-speech voice codecs beneath 5000 bit/s and is released under the GNU Lesser General Public License (LGPL).
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (25 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/codec2-1.2.0/catalog.mk
  3. /usr/local/share/licenses/codec2-1.2.0/LICENSE
  4. /usr/local/share/licenses/codec2-1.2.0/LGPL21
  5. include/codec2/codec2.h
  6. include/codec2/codec2_cohpsk.h
  7. include/codec2/codec2_fdmdv.h
  8. include/codec2/codec2_fifo.h
  9. include/codec2/codec2_fm.h
  10. include/codec2/codec2_math.h
  11. include/codec2/codec2_ofdm.h
  12. include/codec2/comp.h
  13. include/codec2/freedv_api.h
  14. include/codec2/fsk.h
  15. include/codec2/modem_stats.h
  16. include/codec2/reliable_text.h
  17. include/codec2/version.h
  18. lib/cmake/codec2/codec2-config-release.cmake
  19. lib/cmake/codec2/codec2-config.cmake
  20. lib/libcodec2.so
  21. lib/libcodec2.so.1.2
  22. libdata/pkgconfig/codec2.pc
  23. @owner
  24. @group
  25. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • codec2>0:audio/codec2
To install the port:
cd /usr/ports/audio/codec2/ && make install clean
To add the package, run one of these commands:
  • pkg install audio/codec2
  • pkg install codec2
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: codec2
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1787250108 SHA256 (drowe67-codec2-1.2.0_GH0.tar.gz) = cbccae52b2c2ecc5d2757e407da567eb681241ff8dadce39d779a7219dbcf449 SIZE (drowe67-codec2-1.2.0_GH0.tar.gz) = 7688549

Packages (timestamps in pop-ups are UTC):
codec2
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.0.3_11.0.3_10.8.1_21.0.3_11.0.3_1n/an/an/a
FreeBSD:13:quarterly1.0.3_11.0.3_11.0.3_11.0.3_11.0.3_1n/an/an/a
FreeBSD:14:latest1.0.3_11.2.01.0.3_11.0.3_11.2.01.0.3_1-1.0.3_1
FreeBSD:14:quarterly1.0.3_11.0.3_1-1.0.3_11.0.3_11.0.3_11.0.3_11.0.3_1
FreeBSD:15:latest1.0.3_11.2.0n/a1.0.3_1n/an/a1.0.3_11.0.3_1
FreeBSD:15:quarterly1.0.3_11.0.3_1n/a-n/an/a--
FreeBSD:16:latest1.0.3_11.2.0n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cmake : devel/cmake-core
  2. ninja : devel/ninja
  3. pkgconf>=1.3.0_1 : devel/pkgconf
  4. python3.12 : lang/python312
Test dependencies:
  1. python3.12 : lang/python312
Runtime dependencies:
  1. python3.12 : lang/python312
This port is required by:
for Libraries
  1. audio/baresip
  2. comms/freedv
  3. comms/gnuradio
  4. comms/sdr++
  5. comms/sdrangel

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. net/sems*
  2. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
===> The following configuration options are available for codec2-1.2.0: EXAMPLES=on: Build and/or install examples TEST=off: Build and/or run tests ===> Use 'make config' to modify these settings
Options name:
audio_codec2
USES:
cmake pkgconfig python tar:xz
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/drowe67/codec2/tar.gz/1.2.0?dummy=/
Collapse this list.

Number of commits found: 28

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.2.0
23 Aug 2026 21:36:13
commit hash: 6621902b7ed5b3b2480461d0400baf8fb5fe662acommit hash: 6621902b7ed5b3b2480461d0400baf8fb5fe662acommit hash: 6621902b7ed5b3b2480461d0400baf8fb5fe662acommit hash: 6621902b7ed5b3b2480461d0400baf8fb5fe662a files touched by this commit
Diane Bruce (db) search for other commits by this committer
audio/codec2: Update to 1.2.0

The new version of SDRAngel requires codec2 version 1.2.0, but the ports
currently contain version 1.0.3_1. I contacted the maintainer,
and a search of the bug list yielded no results regarding a codec2 port update.
I propose updating the port; I am attaching the patches.
 Tested FreeBSD 15 amd64

- ran through portlint and cosmetic changes only - db

PR:		297726
Reported by:	res2500@ukr.net
1.0.3_1
23 Jul 2025 11:09:59
commit hash: a542853b79950f9dabd4a8f5e80d8f43315db238commit hash: a542853b79950f9dabd4a8f5e80d8f43315db238commit hash: a542853b79950f9dabd4a8f5e80d8f43315db238commit hash: a542853b79950f9dabd4a8f5e80d8f43315db238 files touched by this commit
Baptiste Daroussin (bapt) search for other commits by this committer
audio/*: remove useless USES=pathfix
1.0.3_1
27 Jun 2023 19:34:34
commit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacbcommit hash: 3d9a815d9c5acbb71f4bb07738bdeab4879feacb files touched by this commit
Rene Ladan (rene) search for other commits by this committer
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
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)
1.0.3_1
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
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 View all of this commit message)
1.0.3_1
04 Jan 2022 23:07:16
commit hash: 07060a51a4f3559cf4fdcb591b73cdb20a94e295commit hash: 07060a51a4f3559cf4fdcb591b73cdb20a94e295commit hash: 07060a51a4f3559cf4fdcb591b73cdb20a94e295commit hash: 07060a51a4f3559cf4fdcb591b73cdb20a94e295 files touched by this commit
Diane Bruce (db) search for other commits by this committer
audio/codec2: missing patch

I thought I did the commit -a
bump the PORTREVISION to make sure this gets rebuilt
1.0.3
04 Jan 2022 14:20:25
commit hash: a8bd0d5cd8d1292780967b8c8a94f5db9f3b3f13commit hash: a8bd0d5cd8d1292780967b8c8a94f5db9f3b3f13commit hash: a8bd0d5cd8d1292780967b8c8a94f5db9f3b3f13commit hash: a8bd0d5cd8d1292780967b8c8a94f5db9f3b3f13 files touched by this commit
Diane Bruce (db) search for other commits by this committer
audio/codec2: Unbreak swig

Numerous tiny changes in the git log for codec2 but
the big one for us is fixing swig.
codec2 exposed a complex type in an interface that swig breaks on.
This impacts other ports such as gnuradio.
upstream moved the interface to private and this unbreaks swig.
N.B. I have patched out the Octave CML testjig for now
since this will take more time to resolve.
Patches welcome.
1.0.1
31 Dec 2021 23:14:46
commit hash: 5cbe3aeb50c65302cf8c5aed8c35f7a8b4dcf804commit hash: 5cbe3aeb50c65302cf8c5aed8c35f7a8b4dcf804commit hash: 5cbe3aeb50c65302cf8c5aed8c35f7a8b4dcf804commit hash: 5cbe3aeb50c65302cf8c5aed8c35f7a8b4dcf804 files touched by this commit
Diane Bruce (db) search for other commits by this committer
audio/codec2: Updated and moved to canonical upstream

- codec2 badly out of date.
- upstream is now on github
- used by freedv
0.8.1_2
29 Oct 2021 09:50:18
commit hash: 819f25b36d45b8ac5593ec8e6f470d9ad454b08acommit hash: 819f25b36d45b8ac5593ec8e6f470d9ad454b08acommit hash: 819f25b36d45b8ac5593ec8e6f470d9ad454b08acommit hash: 819f25b36d45b8ac5593ec8e6f470d9ad454b08a files touched by this commit
Stefan Eßer (se) search for other commits by this committer
*/*: Remove redundant '-[0-9]*' from CONFLICTS

The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
0.8.1_2
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
0.8.1_2
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
0.8.1_2
25 Aug 2020 23:27:40
Revision:546241Original commit files touched by this commit
db search for other commits by this committer
Thanks to Dima Panov <fluffy@FreeBSD.org> for pointing out it was
older compilers not clang 11 failing this. *sigh*

PR:		ports/248894
Submitted by:	vvd@unislabs.com
0.8.1_1
24 Aug 2020 19:10:01
Revision:546107Original commit files touched by this commit
db search for other commits by this committer
- Fix under clang11
0.8.1
25 Dec 2018 20:25:40
Revision:488341Original commit files touched by this commit
tcberner search for other commits by this committer
Change cmake default behaviour to outsource.

Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
0.8.1
04 Sep 2018 06:34:50
Revision:478929Original commit files touched by this commit
yuri search for other commits by this committer
audio/codec2: Update 0.7 -> 0.8.1

Port changes:
* Change MASTER_SITES
* Add LICENSE_FILE
* Move examples to ${EXAMPLESDIR}, add PORTEXAMPLES=*, remove them from
pkg-plist

PR:		228281
Submitted by:	takefu@airport.fm
0.7
22 Oct 2017 14:40:54
Revision:452647Original commit files touched by this commit
db search for other commits by this committer
update MASTER_SITES to fix distfiles

I noticed this port is currently broken:

BROKEN=		no public distfiles

Then I found the public archive at:
https://freedv.com/wp-content/uploads/sites/8/2017/10/codec2-0.7.tar.xz
(the checksum matches)

I think the port can be "fixed" with the attached patch.

Thanks!

Update the LOCAL copy I forgot to add the last time (db)

PR:		ports/223163
Submitted by: 	tj+freebsd_ports@a13.fr
0.7
13 Oct 2017 08:57:46
Revision:451964Original commit files touched by this commit
bapt search for other commits by this committer
Mark as broken a bunch of ports with no public distfiles available
0.7
06 Aug 2017 01:07:22
Revision:447437Original commit files touched by this commit
db search for other commits by this committer
Update to 0.7
1. Make the 700 bit/s codec sound better, to improve speech quality on
   low SNR HF channels (beneath 0dB).
2. Develop a higher quality mode in the 2000 to 3000 bit/s range, that
    can be used on HF channels with modest SNRs (around 10dB)
0.6
19 May 2017 14:57:44
Revision:441226Original commit files touched by this commit
db search for other commits by this committer
Update to latest freedv codec2 0.6
See http://www.rowetel.com/?page_id=452

PR:		ports/219348
Submitted by:	takefu@airport.fm
0.5.1_3
22 Apr 2017 09:25:44
Revision:439143Original commit files touched by this commit
miwi search for other commits by this committer
- Fix shebangs
0.5.1_2
10 Apr 2017 00:27:49
Revision:438123Original commit files touched by this commit
linimon search for other commits by this committer
These ports now build on powerpc64.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
0.5.1_2
01 Apr 2017 15:23:32
Revision:437439Original commit files touched by this commit
gerald search for other commits by this committer
Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
0.5.1_1
20 Nov 2016 09:38:09
Revision:426566Original commit files touched by this commit
gerald search for other commits by this committer
Bump PORTREVISIONS for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

In particular that is ports with USE_GCC=yes, USE_GCC=any, or one of
gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang,
c++11-lang, c++0x, c11 requested via USES=compiler.
0.5.1
24 Oct 2016 10:18:50
Revision:424560Original commit files touched by this commit
mat search for other commits by this committer
OPTIONS_SET/OPTIONS_UNSET are global variables, they cannot be used in ports
Makefiles.

So, replace them with OPTIONS_SLAVE, OPTIONS_EXCLUDE, OPTIONS_DEFAULT,
where appropriate.

The ghostscript ports are doing something nasty that is certainly wrong,
but I don't want to try to understand it.

Sponsored by:	Absolight
0.5.1
03 Oct 2016 13:23:11
Revision:423192Original commit files touched by this commit
db search for other commits by this committer
Note conflict with comms/libcodec2 which is already marked for removal
No binary changes hence no PORTREVISION bump

PR:		ports/210186
Submitted by:	takefu@
0.5.1
28 Sep 2016 15:01:46
Revision:422877Original commit files touched by this commit
db search for other commits by this committer
Update to 0.5.1
Add some examples if requested.
Add some test programs if requested.

N.B. PR is actually against comms/libcodec2 which is a duplicate port.

PR:		ports/210186
Submitted by:	takefu@
0.5
01 Apr 2016 13:29:17
Revision:412344Original commit files touched by this commit
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.

With hat:	portmgr
Sponsored by:	Absolight
0.5
15 Dec 2015 05:30:07
Revision:403762Original commit files touched by this commit
shurd search for other commits by this committer
New port: audio/codec2

Codec2 is an open source low bit rate speech codec designed for
communications quality speech at 2400 bit/s and below. Applications
include low bandwidth HF/VHF digital radio and VOIP trunking. Codec 2
operating at 2400 bit/s can send 26 phone calls using the bandwidth
required for one 64 kbit/s uncompressed phone call. It fills a gap in
open source, free-as-in-speech voice codecs beneath 5000 bit/s and
is released under the GNU Lesser General Public License (LGPL).

WWW: http://www.rowetel.com/blog/?page_id=452

Number of commits found: 28