2002-07-30 10:52:54 +02:00
|
|
|
# Ports collection makefile for: Speex
|
|
|
|
# Date created: Jul 30, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= speex
|
2008-07-26 21:27:38 +02:00
|
|
|
DISTVERSION= 1.2rc1
|
2008-07-30 01:33:01 +02:00
|
|
|
PORTREVISION= 1
|
2003-11-21 16:50:50 +01:00
|
|
|
PORTEPOCH= 1
|
2002-07-30 10:52:54 +02:00
|
|
|
CATEGORIES= audio
|
2007-02-23 23:50:15 +01:00
|
|
|
MASTER_SITES= http://downloads.us.xiph.org/releases/speex/
|
2002-07-30 10:52:54 +02:00
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= An open-source patent-free voice codec
|
2002-07-30 10:52:54 +02:00
|
|
|
|
2003-12-20 16:22:56 +01:00
|
|
|
LIB_DEPENDS= ogg.5:${PORTSDIR}/audio/libogg
|
2002-07-30 10:52:54 +02:00
|
|
|
|
2006-06-12 08:11:33 +02:00
|
|
|
CONFLICTS= speex-devel-[0-9]*
|
2004-11-11 09:48:30 +01:00
|
|
|
|
2007-02-23 23:50:15 +01:00
|
|
|
USE_GNOME= gnomehack gnometarget ltverhack
|
|
|
|
USE_LDCONFIG= yes
|
2007-02-01 03:42:05 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --with-ogg-dir=${LOCALBASE}
|
2007-02-23 23:50:15 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-07-30 10:52:54 +02:00
|
|
|
|
2002-11-20 13:21:14 +01:00
|
|
|
MAN1= speexdec.1 speexenc.1
|
|
|
|
|
2007-02-23 23:50:15 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${MACHINE_CPU:Msse}!=""
|
|
|
|
CONFIGURE_ARGS+= --enable-sse
|
|
|
|
.endif
|
|
|
|
|
2002-11-20 13:21:14 +01:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|doc win32|win32|g ; \
|
2007-02-23 23:50:15 +01:00
|
|
|
s|^mandir =.*$$|mandir = @mandir@|g'
|
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
|
|
|
|
${WRKSRC}/*/*.h
|
2003-06-11 19:51:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| in -lgnugetopt||g ; \
|
2007-02-23 23:50:15 +01:00
|
|
|
s|LIBS="-lgnugetopt|LIBS="|g' ${WRKSRC}/configure
|
2002-11-20 13:21:14 +01:00
|
|
|
|
2007-02-23 23:50:15 +01:00
|
|
|
.include <bsd.port.post.mk>
|