summaryrefslogtreecommitdiff
path: root/audio/rawrec
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-08 18:27:34 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-08 18:27:34 +0000
commit9e5d3262de6f3a56a979fa73d29d65610ec304e7 (patch)
tree67abbed8fab9b0c940c86b75df9994a2dd77a33c /audio/rawrec
parentBuild linuxthreads version of libstdc++ and libsupc++ under 5.0-CURRENT. (diff)
- Support CC properly
- Fix pkg-comment format PR: 38993 Submitted by: Ports Fury
Diffstat (limited to 'audio/rawrec')
-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 dccd85849b79..5875d3a872ed 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 6a37805c22c2..c4c53a323b7b 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