freebsd-ports/audio/speex/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

49 lines
1.2 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: Speex
# Date created: Jul 30, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= speex
PORTVERSION= 1.0.5
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_LOCAL} \
ftp://ftp.osuosl.org/.1/xiph/releases/speex/
MASTER_SITE_SUBDIR= ahze
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
MAINTAINER= ahze@FreeBSD.org
COMMENT= An open-source patent-free voice codec
LIB_DEPENDS= ogg.5:${PORTSDIR}/audio/libogg
CONFLICTS= speex-devel-*
USE_GNOME= gnomehack
USE_GETOPT_LONG=yes
USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
MAN1= speexdec.1 speexenc.1
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|doc win32|win32|g ; \
s|^mandir =.*$$|mandir = ${PREFIX}/man|g'
@${REINPLACE_CMD} -e 's|@SPEEX_VERSION@|${PORTVERSION}|' \
${WRKSRC}/speex.pc.in
@${REINPLACE_CMD} -e 's| in -lgnugetopt||g ; \
s|LIBS="-lgnugetopt|LIBS="|g; \
s|SPEEX_LT_CURRENT=4|SPEEX_LT_CURRENT=3|' \
${WRKSRC}/configure
.include <bsd.port.mk>