freebsd-ports/audio/speex-devel/Makefile

42 lines
960 B
Makefile
Raw Normal View History

# ex:ts=8
# Ports collection makefile for: Speex
# Date created: Jul 30, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= speex
2003-02-02 18:49:42 +01:00
PORTVERSION= 1.0.r2
CATEGORIES= audio
MASTER_SITES= http://www.speex.org/download/
2003-02-02 18:49:42 +01:00
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= ogg.4:${PORTSDIR}/audio/libogg
USE_REINPLACE= yes
USE_LIBTOOL= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
CONFIGURE_TARGET= --build=${MACHINE_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
.if !exists(/usr/include/getopt.h)
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
LDFLAGS+= -lgnugetopt
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|doc win32|win32|g ; \
s|^mandir =.*$$|mandir = @mandir@|g'
.include <bsd.port.mk>