File:  [cvs.NetBSD.org] / pkgsrc / ham / lpcnetfreedv / Makefile
Revision 1.3: download - view: text, annotated - select for diffs
Wed Aug 2 16:17:17 2023 UTC (15 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, HEAD
*: Use FORCE_C_STD=c99 for C packages that use for loop initial
declarations without setting -std=c99.

# $NetBSD: Makefile,v 1.3 2023/08/02 16:17:17 nia Exp $

# https://github.com/drowe67/LPCNet/archive/v0.2.tar.gz
# http://rowetel.com/downloads/deep/lpcnet_191005_v1.0.tgz
DISTNAME=	lpcnetfreedv-0.2
CATEGORIES=	ham
NNDISTFILE=	lpcnet_191005_v1.0.tgz
DISTFILES=	${DEFAULT_DISTFILES} ${NNDISTFILE}
SITES.${NNDISTFILE}=	http://rowetel.com/downloads/deep/
MASTER_SITES=	${MASTER_SITE_GITHUB:=drowe67/}
GITHUB_PROJECT=	LPCNet
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	dbj@NetBSD.org
#HOMEPAGE=	https://people.xiph.org/~jm/demo/lpcnet/
HOMEPAGE=	https://github.com/drowe67/LPCNet
COMMENT=	LPCNet library for use by FreeDV
LICENSE=	modified-bsd

USE_TOOLS+=	tar pkg-config

WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}

USE_CMAKE=	yes
CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	..
CMAKE_ARGS+=    -DDISABLE_CPU_OPTIMIZATION=TRUE
#CMAKE_ARGS+=    -DAVX2=1 -DAVX=1
#CMAKE_ARGS+=    -DNEON=1

# error: 'for' loop initial declarations are only allowed in C99 mode
FORCE_C_STD=	c99

pre-configure:
	${MKDIR} ${WRKSRC}/build
	${CP} ${DISTDIR}/${NNDISTFILE} ${WRKSRC}/build/

.include "../../ham/codec2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>