aboutsummaryrefslogtreecommitdiff
path: root/audio/rawrec/Makefile
blob: b23e6ce4bd20a6db97d7630a8ccfb11bee9ce396 (plain) (blame)
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
36
37
38
39
40
41
42
43
# ex:ts=8
# Ports collection makefile for:	rawrec
# Date created:			May 9, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	rawrec
PORTVERSION=	0.9.97
PORTREVISION=	2
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SUNSITE} \
		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	apps/sound/recorders \
		${PORTNAME}

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

LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt

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

USE_REINPLACE=	yes
USE_GMAKE=	yes
MAKE_ARGS=	CC="${CC}" \
		CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
		LDFLAGS="-lgnugetopt -lm ${PTHREAD_LIBS} -L${LOCALBASE}/lib"

MAN1=	rawrec.1
MLINKS=	rawrec.1 rawplay.1

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

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

.include <bsd.port.mk>