1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

o SED -> REINPLACE

o s|machine/soundcard.h|sys/soundcard.h|
This commit is contained in:
Chris D. Faulhaber 2002-07-19 17:34:47 +00:00
parent 44f8e7ea91
commit 7a1fcb907a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63254

View File

@ -20,6 +20,7 @@ MAINTAINER= jedgar@FreeBSD.org
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_XPM= yes
USE_REINPLACE= yes
PATCH_ARGS =-p0 -d ${WRKDIR}
@ -39,9 +40,10 @@ WMTUNE_DIFF= wmtune.radiotrack.diff.gz
post-patch:
@${GUNZIP_CMD} -c ${DISTDIR}/${WMTUNE_DIFF} | ${PATCH} ${PATCH_ARGS}
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
@${SED} -e 's|-O2|${CFLAGS}|' -e 's|cc|${CC}|' \
< ${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|' -e 's|cc|${CC}|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' \
${WRKSRC}/src/wmtune.c
do-configure:
@${PERL} -pi.orig -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/src/wmtune.c