1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/audio/speex/Makefile
Christian Weisgerber ec6ac4e6db Fix typo in r342600.
2014-02-04 22:02:31 +00:00

45 lines
1.1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= speex
DISTVERSION= 1.2rc1
PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= http://downloads.us.xiph.org/releases/speex/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Open-source patent-free voice codec
LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg
USES= pathfix
USE_GNOME= ltverhack
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ogg-dir=${LOCALBASE}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if defined(MACHINE_CPU) && ${MACHINE_CPU:Msse}!=""
CONFIGURE_ARGS+= --enable-sse
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|doc win32|win32|g ; \
s|^mandir =.*$$|mandir = @mandir@|g'
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
${WRKSRC}/*/*.h
@${REINPLACE_CMD} -e 's| in -lgnugetopt||g ; \
s|LIBS="-lgnugetopt|LIBS="|g' ${WRKSRC}/configure
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libspeex.so.1
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libspeexdsp.so.1
.include <bsd.port.post.mk>