freebsd-ports/audio/wavpack/Makefile
Christian Weisgerber f52fcde167 Add an OPTION to enable MMX optimizations on x86.
Not available with GCC3, which suffers an internal compiler error.

PR:		127468
Submitted by:	bf2006a@yahoo.com
2009-01-19 23:31:41 +00:00

37 lines
871 B
Makefile

# New ports collection makefile for: wavpack
# Date created: Fri Jun 24 20:30:04 CEST 2005
# Whom: Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= wavpack
PORTVERSION= 4.50.1
CATEGORIES= audio
MASTER_SITES= http://www.wavpack.com/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Audio codec for lossless, lossy and hybrid compression
USE_BZIP2= yes
USE_GNOME= gnomehack gnometarget pkgconfig
USE_ICONV= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
OPTIONS= MMX "Enable MMX optimizations (x86 only)" Off
.include <bsd.port.pre.mk>
# GCC 3.x fails with internal compiler errror
.if defined(WITH_MMX) && (${ARCH} == "i386" || ${ARCH} == "amd64") && \
(${OSVERSION} >= 700042)
CONFIGURE_ARGS+= --enable-mmx
.else
CONFIGURE_ARGS+= --disable-mmx
.endif
.include <bsd.port.post.mk>