- Support CC properly

- Fix pkg-comment format

PR:		38993
Submitted by:	Ports Fury
This commit is contained in:
Ying-Chieh Liao 2002-06-08 18:27:34 +00:00
parent 7c73d7524c
commit 9e5d3262de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60884
2 changed files with 10 additions and 11 deletions

View file

@ -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>

View file

@ -1 +1 @@
rawrec/rawplay threaded audio
A utility to record and playback raw audio data