freebsd-ports/audio/speex/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

47 lines
1.1 KiB
Makefile

# Ports collection makefile for: Speex
# Date created: Jul 30, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= speex
DISTVERSION= 1.2beta2
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= http://downloads.us.xiph.org/releases/speex/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= An open-source patent-free voice codec
LIB_DEPENDS= ogg.5:${PORTSDIR}/audio/libogg
CONFLICTS= speex-devel-[0-9]*
USE_GNOME= gnomehack gnometarget ltverhack
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool:15
USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ogg-dir=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN1= speexdec.1 speexenc.1
.include <bsd.port.pre.mk>
.if ${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
.include <bsd.port.post.mk>