From 9e5d3262de6f3a56a979fa73d29d65610ec304e7 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sat, 8 Jun 2002 18:27:34 +0000 Subject: [PATCH] - Support CC properly - Fix pkg-comment format PR: 38993 Submitted by: Ports Fury --- audio/rawrec/Makefile | 19 +++++++++---------- audio/rawrec/pkg-comment | 2 +- 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|||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 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