aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/rawrec/Makefile19
-rw-r--r--audio/rawrec/pkg-comment2
2 files changed, 10 insertions, 11 deletions
diff --git a/audio/rawrec/Makefile b/audio/rawrec/Makefile
index dccd85849b7..5875d3a872e 100644
--- a/audio/rawrec/Makefile
+++ b/audio/rawrec/Makefile
@@ -8,6 +8,7 @@
PORTNAME= rawrec
PORTVERSION= 0.9.97
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
${MASTER_SITE_SOURCEFORGE}
@@ -16,27 +17,25 @@ MASTER_SITE_SUBDIR= apps/sound/recorders \
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
WRKSRC= ${WRKDIR}/${DISTNAME}/src
-CFLAGS+= -I${LOCALBASE}/include
-MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+
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:
- @${PERL} -pi -e "s,^CFLAGS =,CFLAGS+=,g ; \
- s,^LDFLAGS =,LDFLAGS+=,g ; \
- s,-lpthread,${PTHREAD_LIBS},g ; \
- s,/usr/local,${PREFIX},g" ${WRKSRC}/Makefile
- @${GREP} -lR "linux/" ${WRKSRC} | ${XARGS} \
- ${PERL} -pi -e "s,linux/,sys/,g"
+ @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${PERL} -pi -e \
+ 's|<linux/soundcard.h>|<sys/soundcard.h>|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rawrec ${PREFIX}/bin
- ${LN} -fs ${PREFIX}/bin/rawrec ${PREFIX}/bin/rawplay
+ ${LN} -sf rawrec ${PREFIX}/bin/rawplay
${INSTALL_MAN} ${WRKSRC}/../docs/user/rawrec.1 ${MAN1PREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/audio/rawrec/pkg-comment b/audio/rawrec/pkg-comment
index 6a37805c22c..c4c53a323b7 100644
--- a/audio/rawrec/pkg-comment
+++ b/audio/rawrec/pkg-comment
@@ -1 +1 @@
-rawrec/rawplay threaded audio
+A utility to record and playback raw audio data