summaryrefslogtreecommitdiff
path: root/ham/codec2/Makefile
blob: a5e2589e1a06cbbbe82880e686579dddc1e63509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $NetBSD: Makefile,v 1.6 2020/11/29 23:10:25 dbj Exp $
#

# https://github.com/drowe67/codec2/archive/v0.9.2.tar.gz
DISTNAME=	codec2-0.9.2
CATEGORIES=	ham
MASTER_SITES=	${MASTER_SITE_GITHUB:=drowe67/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	dbj@NetBSD.org
HOMEPAGE=	https://rowetel.com/codec2.html
COMMENT=	Speech codec for between 700 and 3200 bit/s

LICENSE=	gnu-lgpl-v2.1

USE_LANGUAGES=	c

USE_CMAKE=	yes
CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	..
CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release

pre-configure:
	cd ${WRKSRC} && mkdir build

# XXX this creates a circular dependency between
# lpcnetfreedv and codec2 that requires bootstrapping
# and causes problems with pkg tools once created.
#CMAKE_ARGS+=	-DLPCNET=ON
#.include "../../ham/lpcnetfreedv/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"