aboutsummaryrefslogtreecommitdiff
path: root/audio/sphinx/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-12-10 22:29:47 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-12-10 22:29:47 +0000
commit72e8535d7a3d85419cc22db44eae481834e69afc (patch)
treeb6cb86094912efd70f4f947b3d2821fb10bad4b8 /audio/sphinx/Makefile
parent5e8cd93f02530b66e591510e850a3a8f3dc45078 (diff)
downloadports-72e8535d7a3d85419cc22db44eae481834e69afc.tar.gz
ports-72e8535d7a3d85419cc22db44eae481834e69afc.zip
Notes
Diffstat (limited to 'audio/sphinx/Makefile')
-rw-r--r--audio/sphinx/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/audio/sphinx/Makefile b/audio/sphinx/Makefile
index 6dacca1dd414..0b5fade4d2e7 100644
--- a/audio/sphinx/Makefile
+++ b/audio/sphinx/Makefile
@@ -17,19 +17,22 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Speech recognition system
DEST= ${WRKSRC}/src/libsphinx2/
-GNU_CONFIGURE= yes
USE_LDCONFIG= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_GMAKE= yes
+USE_AUTOTOOLS=libtool:15
# contains i386 sound code
ONLY_FOR_ARCHS= i386
post-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
+ @${REINPLACE_CMD} -e 's:<malloc.h>:<stdlib.h>:g' \
+ ${WRKSRC}/src/libsphinx2/CM_funcs.c \
+ ${WRKSRC}/src/libsphinx2/hash.c \
+ ${WRKSRC}/src/libsphinx2/list.c \
+ ${WRKSRC}/src/libsphinx2/salloc.c
+ @${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
+ ${WRKSRC}/configure
post-build:
${ECHO_CMD} "*** WARNING ***" > ${PKGMESSAGE}
@@ -40,10 +43,4 @@ post-build:
pre-install:
${CAT} ${PKGMESSAGE}
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>