54a0b86543
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.
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: Speex
|
|
# Date created: Jul 30, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= speex
|
|
PORTVERSION= 1.1.10
|
|
PORTEPOCH= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://downloads.us.xiph.org/releases/speex/
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
|
COMMENT= An open-source patent-free voice codec
|
|
|
|
LIB_DEPENDS= ogg.5:${PORTSDIR}/audio/libogg
|
|
|
|
CONFLICTS= speex-1.0*
|
|
|
|
USE_GNOME= gnomehack
|
|
USE_GETOPT_LONG= yes
|
|
USE_REINPLACE= yes
|
|
USE_AUTOTOOLS= libtool:15:inc
|
|
USE_GCC= 3.4+
|
|
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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${MACHINE_CPU:Msse}!=""
|
|
CONFIGURE_ARGS+= --enable-sse
|
|
.endif
|
|
|
|
patch-autotools:
|
|
@(cd ${PATCH_WRKSRC}; \
|
|
for file in ${LIBTOOLFILES}; do \
|
|
${CP} $$file $$file.tmp; \
|
|
${SED} -e "/^ltmain=/s^\$$ac_aux_dir/ltmain.sh^${LTMAIN}^g" \
|
|
$$file.tmp > $$file; \
|
|
${RM} $$file.tmp; \
|
|
done);
|
|
|
|
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| in -lgnugetopt||g ; \
|
|
s|LIBS="-lgnugetopt|LIBS="|g' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.post.mk>
|