summaryrefslogtreecommitdiffstats
path: root/audio/rawrec/Makefile
blob: 7fd2a360feffff8d1c4d34ebfec156461b9b93d9 (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
33
34
35
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=	rawrec
PORTVERSION=	0.9.991
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SUNSITE:S/%SUBDIR%/apps\/sound\/recorders/} \
		SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Utility to record and playback raw audio data

LICENSE=	GPLv2 # or later
LICENSE_FILE=	${WRKDIR}/${DISTNAME}/copyright

WRKSRC=		${WRKDIR}/${DISTNAME}/src

USES=		gmake
MAKE_ARGS=	CC="${CC}" CFLAGS="${CPPFLAGS} ${CFLAGS}" \
		LDFLAGS="${LDFLAGS} -lm -lpthread"

PLIST_FILES=	bin/rawplay bin/rawrec man/man1/rawplay.1.gz man/man1/rawrec.1.gz

post-patch:
	@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
		's|<linux/soundcard.h>|<sys/soundcard.h>|g'

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/rawrec ${STAGEDIR}${PREFIX}/bin
	${LN} -sf rawrec ${STAGEDIR}${PREFIX}/bin/rawplay
	${INSTALL_MAN} ${WRKSRC}/../docs/user/rawrec.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	${LN} -sf rawrec.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/rawplay.1

.include <bsd.port.mk>
OpenPOWER on IntegriCloud