ports/audio/codec2/Makefile
Diane Bruce 68aa79e011 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
2017-10-22 14:40:54 +00:00

56 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= codec2
PORTVERSION= 0.7
CATEGORIES= audio hamradio
MASTER_SITES= https://freedv.com/wp-content/uploads/sites/8/2017/10/ \
LOCAL/db
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Low bit rate codec
LICENSE= LGPL21
LIB_DEPENDS= libspeexdsp.so:audio/speexdsp
CONFLICTS= libcodec2-[0-9]*
USES= cmake:outsource pathfix pkgconfig shebangfix tar:xz
USE_LDCONFIG= 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= c2validate create_interleaver de extract fdmdv_mem\
genlsp genres polar2rect\
pre raw2h scalarlsptest speexnoisesup t16_8\
t16_8_short tcohpsk test_cohpsk_ch tfdmdv tfifo\
tnlp tprede vq_train_jvm\
vqtrain
SHEBANG_FILES= ${WRKSRC}/octave/fsk_horus_stream.m\
${WRKSRC}/script/menu.sh
SHEBANG_LANG= octave
octave_OLD_CMD= /usr/bin/octave
octave_CMD= ${LOCALBASE}/bin/octave
TEST_RUN_DEPENDS= octave:math/octave
TEST_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
pre-patch-TEST-on:
${REINPLACE_CMD} 's|%ld|%u|' ${WRKSRC}/unittest/fdmdv_mem.c
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>