2002-07-30 08:52:54 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: Speex
|
|
|
|
# Date created: Jul 30, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= speex
|
2005-05-08 03:59:05 +00:00
|
|
|
PORTVERSION= 1.0.5
|
2003-11-21 15:50:50 +00:00
|
|
|
PORTEPOCH= 1
|
2002-07-30 08:52:54 +00:00
|
|
|
CATEGORIES= audio
|
2005-05-10 15:53:22 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
ftp://ftp.osuosl.org/.1/xiph/releases/speex/
|
|
|
|
MASTER_SITE_SUBDIR= ahze
|
2003-02-02 17:49:42 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
2002-07-30 08:52:54 +00:00
|
|
|
|
2004-11-08 06:38:31 +00:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= An open-source patent-free voice codec
|
2002-07-30 08:52:54 +00:00
|
|
|
|
2003-12-20 15:22:56 +00:00
|
|
|
LIB_DEPENDS= ogg.5:${PORTSDIR}/audio/libogg
|
2002-07-30 08:52:54 +00:00
|
|
|
|
2004-11-11 08:48:30 +00:00
|
|
|
CONFLICTS= speex-devel-*
|
|
|
|
|
2004-07-23 09:09:54 +00:00
|
|
|
USE_GNOME= gnomehack
|
2005-05-08 03:59:05 +00:00
|
|
|
USE_GETOPT_LONG=yes
|
2002-11-20 12:21:14 +00:00
|
|
|
USE_REINPLACE= yes
|
2005-05-08 03:59:05 +00:00
|
|
|
USE_LIBTOOL_VER=15
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2003-02-02 14:20:18 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2002-07-30 23:32:44 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-07-30 08:52:54 +00:00
|
|
|
|
2002-11-20 12:21:14 +00:00
|
|
|
MAN1= speexdec.1 speexenc.1
|
|
|
|
|
2003-02-08 05:27:23 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2003-02-02 14:20:18 +00:00
|
|
|
|
2002-11-20 12:21:14 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|doc win32|win32|g ; \
|
2003-09-30 05:24:25 +00:00
|
|
|
s|^mandir =.*$$|mandir = @mandir@|g'
|
2004-12-28 22:29:11 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|@SPEEX_VERSION@|${PORTVERSION}|' \
|
|
|
|
${WRKSRC}/speex.pc.in
|
2003-06-11 17:51:34 +00:00
|
|
|
@${REINPLACE_CMD} -e 's| in -lgnugetopt||g ; \
|
2005-05-08 03:59:05 +00:00
|
|
|
s|LIBS="-lgnugetopt|LIBS="|g; \
|
|
|
|
s|SPEEX_LT_CURRENT=4|SPEEX_LT_CURRENT=3|' \
|
|
|
|
${WRKSRC}/configure
|
2002-11-20 12:21:14 +00:00
|
|
|
|
2003-06-11 17:51:34 +00:00
|
|
|
.include <bsd.port.mk>
|