aboutsummaryrefslogtreecommitdiff
path: root/audio/sphinx/Makefile
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2003-10-04 14:24:00 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2003-10-04 14:24:00 +0000
commite3f4a94ba259a00df9b726d4f67d16372ef83292 (patch)
tree1d480fc78fa660523b0ec2a5906fde1179a107d6 /audio/sphinx/Makefile
parent2ef4a4203291bf2d376b00ddaf6a420ef147c6d1 (diff)
downloadports-e3f4a94ba259a00df9b726d4f67d16372ef83292.tar.gz
ports-e3f4a94ba259a00df9b726d4f67d16372ef83292.zip
Avoid Perl.
PR: 47651 Submitted by: Simon Schubert of ath.cx
Notes
Notes: svn path=/head/; revision=90246
Diffstat (limited to 'audio/sphinx/Makefile')
-rw-r--r--audio/sphinx/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/audio/sphinx/Makefile b/audio/sphinx/Makefile
index 1c57c3692c37..5af3cb6b7994 100644
--- a/audio/sphinx/Makefile
+++ b/audio/sphinx/Makefile
@@ -15,6 +15,7 @@ DISTNAME= sphinx2-0.4
MAINTAINER= trevor@FreeBSD.org
COMMENT= Speech recognition system
+DEST= ${WRKSRC}/src/libsphinx2/
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
@@ -25,9 +26,11 @@ IGNORE= "audio read error"
# contains i386 sound code
ONLY_FOR_ARCHS= i386
-post-patch:
- ${FIND} ${WRKSRC} -type f -exec ${PERL} -pi -e \
- "s:<malloc.h>:<stdlib.h>:g" {} \;
+do-patch:
+.for ii in CM_funcs.c hash.c linklist.c list.c salloc.c
+ ${MV} ${DEST}${ii} ${DEST}${ii}.orig
+ ${SED} -e "s:<malloc.h>:<stdlib.h>:g" < ${DEST}${ii}.orig > ${DEST}${ii}
+.endfor
post-build:
${ECHO_CMD} "*** WARNING ***" > ${PKGMESSAGE}