forked from Lainports/freebsd-ports
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. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
PORTNAME= codec2
|
|
DISTVERSIONPREFIX=v
|
|
DISTVERSION= 1.0.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio hamradio
|
|
|
|
MAINTAINER= hamradio@FreeBSD.org
|
|
COMMENT= Low bit rate codec
|
|
WWW= https://www.rowetel.com/?page_id=452
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libspeexdsp.so:audio/speexdsp
|
|
|
|
USES= cmake pathfix pkgconfig python:3.6+ shebangfix tar:xz
|
|
|
|
GH_ACCOUNT= drowe67
|
|
GH_PROJECT= codec2
|
|
|
|
USE_LDCONFIG= yes
|
|
USE_GITHUB= yes
|
|
|
|
OPTIONS_DEFINE= EXAMPLES TEST
|
|
OPTIONS_SUB= yes
|
|
EXAMPLES_CMAKE_ON= -DINSTALL_EXAMPLES=ON
|
|
TEST_CMAKE_ON= -DUNITTEST=ON
|
|
|
|
TEST_SRCFILES= cohpsk_ch cohpsk_demod cohpsk_get_test_bits cohpsk_mod\
|
|
cohpsk_put_test_bits fdmdv_channel freedv_rx freedv_tx\
|
|
generate_codebook
|
|
TEST_UNITTESTFILES= compare_ints fdmdv_mem ofdm_mem ofdm_stack \
|
|
t16_8 t16_8_short tcohpsk tdeframer tesno_est \
|
|
test_phi0 tfdmdv tfifo tfmfsk tfreedv_2400A_rawdata \
|
|
tfreedv_2400B_rawdata tfreedv_800XA_rawdata \
|
|
tfreedv_data_channel tfsk tfsk_llr thash tnewamp1 \
|
|
tofdm tofdm_acq tqam16 tst_codec2_fft_init tvq_mbest
|
|
|
|
SHEBANG_FILES= ${WRKSRC}/script/separate_all.sh \
|
|
${WRKSRC}/demo/freedv_700d_rx.py \
|
|
${WRKSRC}/script/gen_phi0 \
|
|
${WRKSRC}/script/phi0_plot.py \
|
|
${WRKSRC}/script/subsetvq.sh \
|
|
${WRKSRC}/script/train_700c_quant.sh \
|
|
${WRKSRC}/script/ofdm_stack_use.py \
|
|
${WRKSRC}/script/train_sub_quant.sh \
|
|
${WRKSRC}/unittest/*.sh \
|
|
${WRKSRC}/octave/fsk_demod_BER_test.py \
|
|
${WRKSRC}/octave/fskdemodgui.py \
|
|
${WRKSRC}/octave/plot_fsk_demod_stats.py
|
|
|
|
#TEST_RUN_DEPENDS= octave:math/octave
|
|
#TEST_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
post-install-TEST-on:
|
|
.for a in ${TEST_SRCFILES}
|
|
${INSTALL_PROGRAM} ${WRKDIR}/.build/src/${a} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
.for a in ${TEST_UNITTESTFILES}
|
|
${INSTALL_PROGRAM} ${WRKDIR}/.build/unittest/${a} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|