FreeBSDでPT2/PT3を使う [努力したWiki] からいただいた、FreeBSD版recpt1 2017/05/14を使わせてもらってます。
そのベースのSTZ版 で対応されている周波数変更を取り込みたかったのだけど、毎度手パッチするの面倒なので、git環境を作っとこうかということでメモ。

$ git clone
Cloning into 'recpt1'...
remote: Counting objects: 203, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 203 (delta 9), reused 22 (delta 9), pack-reused 178
Receiving objects: 100% (203/203), 144.01 KiB | 556.00 KiB/s, done.
Resolving deltas: 100% (96/96), done.
$ cd recpt1

recpt1 2017/05/14は「Latest commit 00df64e への差分適用」だそうなので、FreeBSDブランチ作って、その状態を再現。

$ git checkout -b freebsd 00df64e
Switched to a new branch 'freebsd'
$ git branch
 * freebsd
$ tar xzf ../../../work/recpt1/freebsd-019-recpt1_20170514.tar.gz
$ git status
On branch freebsd
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   recpt1/checksignal.c
        modified:   recpt1/pt1_dev.h
        modified:   recpt1/recpt1.c
        modified:   recpt1/recpt1core.c
        modified:   recpt1/recpt1core.h

no changes added to commit (use "git add" and/or "git commit -a")
$ git add -u
$ git commit -m 'apply freebsd patch'
[freebsd 9655703] apply freebsd patch
 5 files changed, 200 insertions(+), 90 deletions(-)

STZ版最新(本日時点で 36a3f40)を取り込み

$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: apply freebsd patch
Using index info to reconstruct a base tree...
M       recpt1/pt1_dev.h
M       recpt1/recpt1.c
M       recpt1/recpt1core.c
M       recpt1/recpt1core.h
.git/rebase-apply/patch:266: trailing whitespace.

warning: 1 line adds whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging recpt1/recpt1core.h
Auto-merging recpt1/recpt1core.c
Auto-merging recpt1/recpt1.c
Auto-merging recpt1/pt1_dev.h


$ ./
Generating configure script and Makefiles for recpt1.
Running aclocal ...
Running autoheader ...
Running autoconf ...
$ LDFLAGS=-L/usr/local/lib ./configure --enable-b25
checking for gcc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for create_arib_std_b25 in -larib25... yes
checking for log10 in -lm... yes
checking for pthread_kill in -lpthread... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
$ gmake CPPFLAGS='-I../driver -I/usr/local/include' LDFLAGS=-L/usr/local/lib
revh="`git rev-list HEAD | wc -l 2> /dev/null`"; \
if [ -n "$revh" ] && [ "$revh" != "0" ] ; then \
        echo "const char *version = \"rev.$revh by stz2012\";" > version.h; \
else \
        echo "const char *version = \""c8688d7d6382_with_http_server_RC4 by stz2012"\";" > version.h; \
cc -MM recpt1.c decoder.c mkpath.c tssplitter_lite.c recpt1core.c recpt1ctl.c recpt1core.c -I../driver -I/usr/local/include > .deps
cc -O2 -g -pthread -I../driver -I/usr/local/include  -c -o recpt1.o recpt1.c
cc -O2 -g -pthread -I../driver -I/usr/local/include  -c -o decoder.o decoder.c
cc -O2 -g -pthread -I../driver -I/usr/local/include  -c -o mkpath.o mkpath.c
cc -O2 -g -pthread -I../driver -I/usr/local/include  -c -o tssplitter_lite.o tssplitter_lite.c
cc -O2 -g -pthread -I../driver -I/usr/local/include  -c -o recpt1core.o recpt1core.c
cc -L/usr/local/lib -o recpt1 recpt1.o decoder.o mkpath.o tssplitter_lite.o recpt1core.o -lpthread -lm -larib25
cc -O2 -g -pthread -I../driver -I/usr/local/include  -c -o recpt1ctl.o recpt1ctl.c
recpt1ctl.c:86:43: warning: format specifies type 'int' but the argument has type 'key_t'
      (aka 'long') [-Wformat]
            fprintf(stderr, "Pid = %d\n", key);
                                   ~~     ^~~
1 warning generated.
cc -L/usr/local/lib -o recpt1ctl recpt1ctl.o recpt1core.o -lm
cc -O2 -g -pthread -I../driver -I/usr/local/include  -c -o checksignal.o checksignal.c
cc -L/usr/local/lib -o checksignal checksignal.o recpt1core.o -lpthread -lm