aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-06-09 02:27:34 +0800
committerijliao <ijliao@FreeBSD.org>2002-06-09 02:27:34 +0800
commit1097a4059027c700414444dad0f1d431ecb87931 (patch)
treec049c36cc92b00a332a5ea2ae4ae1efd6b8db3b1 /audio
parentda7895f093ed04640a977fe0cad17b61227e4d59 (diff)
downloadfreebsd-ports-gnome-1097a4059027c700414444dad0f1d431ecb87931.tar.gz
freebsd-ports-gnome-1097a4059027c700414444dad0f1d431ecb87931.tar.zst
freebsd-ports-gnome-1097a4059027c700414444dad0f1d431ecb87931.zip
- Support CC properly
- Fix pkg-comment format PR: 38993 Submitted by: Ports Fury
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 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